[go: up one dir, main page]

CN116189425A - A method and system for predicting traffic conditions based on Internet of Vehicles big data - Google Patents

A method and system for predicting traffic conditions based on Internet of Vehicles big data Download PDF

Info

Publication number
CN116189425A
CN116189425A CN202211738591.3A CN202211738591A CN116189425A CN 116189425 A CN116189425 A CN 116189425A CN 202211738591 A CN202211738591 A CN 202211738591A CN 116189425 A CN116189425 A CN 116189425A
Authority
CN
China
Prior art keywords
data
traffic
information
tested
vehicles
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
CN202211738591.3A
Other languages
Chinese (zh)
Other versions
CN116189425B (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.)
Tianjin University of Technology and Education China Vocational Training Instructor Training Center
Original Assignee
Tianjin University of Technology and Education China Vocational Training Instructor Training Center
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 Tianjin University of Technology and Education China Vocational Training Instructor Training Center filed Critical Tianjin University of Technology and Education China Vocational Training Instructor Training Center
Priority to CN202211738591.3A priority Critical patent/CN116189425B/en
Publication of CN116189425A publication Critical patent/CN116189425A/en
Application granted granted Critical
Publication of CN116189425B publication Critical patent/CN116189425B/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
    • G08G1/0125Traffic data processing
    • G08G1/0129Traffic data processing for creating historical data or processing based on historical data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2458Special types of queries, e.g. statistical queries, fuzzy queries or distributed queries
    • G06F16/2465Query processing support for facilitating data mining operations in structured databases
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/065Traffic control systems for road vehicles by counting the vehicles in a section of the road or in a parking area, i.e. comparing incoming count with outgoing count
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/10Internal combustion engine [ICE] based vehicles
    • Y02T10/40Engine management systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Tourism & Hospitality (AREA)
  • Strategic Management (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Databases & Information Systems (AREA)
  • Development Economics (AREA)
  • Chemical & Material Sciences (AREA)
  • Quality & Reliability (AREA)
  • General Engineering & Computer Science (AREA)
  • Mathematical Physics (AREA)
  • Game Theory and Decision Science (AREA)
  • Fuzzy Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Probability & Statistics with Applications (AREA)
  • Software Systems (AREA)
  • Operations Research (AREA)
  • Analytical Chemistry (AREA)
  • Computational Linguistics (AREA)
  • Educational Administration (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Traffic Control Systems (AREA)

Abstract

The invention provides a traffic road condition prediction method and a traffic road condition prediction system based on Internet of vehicles big data, which relate to the technical field of intelligent traffic and comprise the steps of obtaining historical track data of an area to be detected in a preset time period before the current moment; respectively acquiring first track data and second track data of traffic road conditions in a region to be detected; processing the first track data and the second track data based on three-dimensional vectors to obtain flow information of all vehicle tracks, and carrying out gray correlation analysis to obtain a correlation value of each flow information and the historical track data; and processing to obtain traffic condition prediction information. The road condition prediction method has the beneficial effects that the road condition prediction accuracy is improved, the traffic jam is effectively reduced, the traveler is facilitated to select a proper traffic route for traveling, the time is saved, the existing road traffic efficiency is improved, the road jam condition is improved, the urban traffic jam phenomenon is slowed down, and the urban road traffic comprehensive management level is improved.

Description

一种基于车联网大数据的交通路况预测方法及系统A traffic condition prediction method and system based on Internet of Vehicles big data

技术领域Technical Field

本发明涉及交通技术领域,具体而言,涉及基于车联网大数据的交通路况预测方法及系统。The present invention relates to the field of traffic technology, and in particular to a method and system for predicting traffic conditions based on Internet of Vehicles big data.

背景技术Background Art

随着社会经济的发展,城市交通路网规模越来越大,为了能够更加科学智能地管理城市交通路网,就需要对城市交通状况进行有效地监控和预测。车联网是战略性新兴产业中物联网和智能化汽车两大领域的重要交集,是城市智慧交通的关键组成部分。车联网的概念源于物联网,是采用传感器、通信网络、系统集成等技术,实现人与车、车与车、车与路之间的网络互联和信息互通,通过人、车、路的智能管控,以实现智能交通管理。With the development of social economy, the scale of urban traffic network is getting larger and larger. In order to manage urban traffic network more scientifically and intelligently, it is necessary to effectively monitor and predict urban traffic conditions. The Internet of Vehicles is an important intersection of the two major fields of the Internet of Things and intelligent vehicles in strategic emerging industries, and is a key component of urban smart transportation. The concept of the Internet of Vehicles originated from the Internet of Things. It uses sensors, communication networks, system integration and other technologies to achieve network interconnection and information exchange between people and cars, cars and cars, and cars and roads, and realizes intelligent traffic management through intelligent control of people, cars and roads.

当前常用的技术手段中,预测输入复杂,难以从日期属性数据上体现交通路况变化规律,并且参考数据相对单一,预测准确性难以得到保证。Among the currently commonly used technical means, the prediction input is complex, it is difficult to reflect the changing patterns of traffic conditions from date attribute data, and the reference data is relatively single, making it difficult to guarantee the accuracy of the prediction.

发明内容Summary of the invention

本发明的目的在于提供一种基于车联网大数据的交通路况预测方法及系统,以改善上述问题。为了实现上述目的,本发明采取的技术方案如下:The purpose of the present invention is to provide a traffic condition prediction method and system based on Internet of Vehicles big data to improve the above problems. In order to achieve the above purpose, the technical solution adopted by the present invention is as follows:

第一方面,本申请提供了一种基于车联网大数据的交通路况预测方法,包括:In a first aspect, the present application provides a method for predicting traffic conditions based on Internet of Vehicles big data, including:

获取所述待测区域在当前时刻之前的预设时间段内的历史轨迹数据;Acquire historical trajectory data of the area to be measured within a preset time period before the current moment;

分别获取待测区域中交通路况的第一轨迹数据和第二轨迹数据,所述第一轨迹数据为在所有车辆轨迹中,车辆前一时刻不在所述待测区域而当前时刻在所述待测区域的总车辆数;所述第二轨迹数据为在所有车辆轨迹中,车辆前一时刻在所述待测区域而当前时刻不在所述待测区域的总车辆数;Respectively obtain first trajectory data and second trajectory data of traffic conditions in the test area, wherein the first trajectory data is the total number of vehicles in all vehicle trajectories whose vehicles were not in the test area at the previous moment but are in the test area at the current moment; the second trajectory data is the total number of vehicles in all vehicle trajectories whose vehicles were in the test area at the previous moment but are not in the test area at the current moment;

基于三维向量对所述第一轨迹数据和所述第二轨迹数据进行处理,得到所有所述待测区域中的每个待测时间点的所有车辆轨迹的流量信息,所述流量信息包括所有车辆之间的相对交通流量、相对交通流量变化率、交通事故的不确定信息和当前道路的环境因素;Processing the first trajectory data and the second trajectory data based on the three-dimensional vector to obtain traffic information of all vehicle trajectories at each time point to be tested in all the areas to be tested, wherein the traffic information includes relative traffic flow between all vehicles, relative traffic flow change rate, uncertainty information of traffic accidents and environmental factors of the current road;

将所述流量信息和所述历史轨迹数据进行灰色关联分析,得到每个所述流量信息和所述历史轨迹数据的关联度值;Performing grey correlation analysis on the flow information and the historical trajectory data to obtain a correlation value between each flow information and the historical trajectory data;

根据预先训练的路况预测模型,对所述关联度值、所述流量信息和所述历史轨迹数据进行处理,得到交通路况预测信息,其中,所述路况预测模型是根据历史时段内所述待测区域中的所述交通路况进行训练得到的。According to a pre-trained traffic condition prediction model, the correlation value, the flow information and the historical trajectory data are processed to obtain traffic condition prediction information, wherein the traffic condition prediction model is trained based on the traffic conditions in the area to be tested within a historical period.

第二方面,本申请还提供了一种基于车联网大数据的交通路况预测系统,包括第一获取模块、第二获取模块、第一处理模块、分析模块和第二处理模块,其中:In a second aspect, the present application also provides a traffic condition prediction system based on Internet of Vehicles big data, comprising a first acquisition module, a second acquisition module, a first processing module, an analysis module, and a second processing module, wherein:

第一获取模块:用于获取所述待测区域在当前时刻之前的预设时间段内的历史轨迹数据;The first acquisition module is used to acquire the historical trajectory data of the area to be measured within a preset time period before the current moment;

第二获取模块:用于分别获取待测区域中交通路况的第一轨迹数据和第二轨迹数据,所述第一轨迹数据为在所有车辆轨迹中,车辆前一时刻不在所述待测区域而当前时刻在所述待测区域的总车辆数;所述第二轨迹数据为在所有车辆轨迹中,车辆前一时刻在所述待测区域而当前时刻不在所述待测区域的总车辆数;The second acquisition module is used to respectively acquire first trajectory data and second trajectory data of traffic conditions in the test area, wherein the first trajectory data is the total number of vehicles in all vehicle trajectories whose vehicles were not in the test area at the previous moment but are currently in the test area; the second trajectory data is the total number of vehicles in all vehicle trajectories whose vehicles were in the test area at the previous moment but are currently not in the test area;

第一处理模块:用于基于三维向量对所述第一轨迹数据和所述第二轨迹数据进行处理,得到所有所述待测区域中的每个待测时间点的所有车辆轨迹的流量信息,所述流量信息包括所有车辆之间的相对交通流量、相对交通流量变化率、交通事故的不确定信息和当前道路的环境因素;A first processing module is used to process the first trajectory data and the second trajectory data based on a three-dimensional vector to obtain traffic information of all vehicle trajectories at each time point to be tested in all the tested areas, wherein the traffic information includes relative traffic flow between all vehicles, relative traffic flow change rate, uncertainty information of traffic accidents and environmental factors of the current road;

分析模块:用于将所述流量信息和所述历史轨迹数据进行灰色关联分析,得到每个所述流量信息和所述历史轨迹数据的关联度值;Analysis module: used for performing grey correlation analysis on the flow information and the historical trajectory data to obtain a correlation value between each flow information and the historical trajectory data;

第二处理模块:用于根据预先训练的路况预测模型,对所述关联度值、所述流量信息和所述历史轨迹数据进行处理,得到交通路况预测信息,其中,所述路况预测模型是根据历史时段内所述待测区域中的所述交通路况进行训练得到的。The second processing module is used to process the correlation value, the flow information and the historical trajectory data according to a pre-trained traffic condition prediction model to obtain traffic condition prediction information, wherein the traffic condition prediction model is trained according to the traffic conditions in the test area within a historical period.

第三方面,本申请还提供了一种基于车联网大数据的交通路况预测设备,包括:In a third aspect, the present application also provides a traffic condition prediction device based on Internet of Vehicles big data, including:

存储器,用于存储计算机程序;Memory for storing computer programs;

处理器,用于执行所述计算机程序时实现所述基于车联网大数据的交通路况预测方法的步骤。A processor is used to implement the steps of the traffic condition prediction method based on Internet of Vehicles big data when executing the computer program.

第四方面,本申请还提供了一种可读存储介质,所述可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述基于车联网大数据的交通路况预测方法的步骤。In a fourth aspect, the present application also provides a readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned traffic condition prediction method based on Internet of Vehicles big data are implemented.

本发明的有益效果为:通过获取历史估计数据、第一轨迹数据和第二轨迹数据,基于三维向量对数据进行处理,并基于层次分析法,确定图像的比重,利用灰色关联分析、神经网络模型对数据进行分析,保持模型的可持续预测优化,并且提高了路况预测的准确度,有效地减少了交通拥堵,预测目标车辆要到达的目标路口的交通状况,为出行者提供城市道路旅行预测,有助于出行者选择合适的交通路线出行,节约时间,避免发生点拥塞,提高现有道路通行效率,改善道路拥堵状况,减缓城市交通拥堵现象,提高城市道路交通综合管理水平。The beneficial effects of the present invention are as follows: by acquiring historical estimation data, first trajectory data and second trajectory data, processing the data based on three-dimensional vectors, determining the proportion of images based on the hierarchical analysis method, and analyzing the data using grey correlation analysis and a neural network model, the sustainable prediction optimization of the model is maintained, and the accuracy of road condition prediction is improved, traffic congestion is effectively reduced, the traffic conditions of the target intersection to be reached by the target vehicle are predicted, and urban road travel predictions are provided for travelers, which helps travelers choose appropriate traffic routes for travel, save time, avoid point congestion, improve the traffic efficiency of existing roads, improve road congestion conditions, alleviate urban traffic congestion, and improve the comprehensive management level of urban road traffic.

本发明的其他特征和优点将在随后的说明书阐述,并且,部分地从说明书中变得显而易见,或者通过实施本发明实施例了解。本发明的目的和其他优点可通过在所写的说明书、权利要求书、以及附图中所特别指出的结构来实现和获得。Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or be understood by implementing the embodiments of the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description, claims, and drawings.

附图说明BRIEF DESCRIPTION OF THE DRAWINGS

为了更清楚地说明本发明实施例的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,应当理解,以下附图仅示出了本发明的某些实施例,因此不应被看作是对范围的限定,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他相关的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

图1为本发明实施例中所述的基于车联网大数据的交通路况预测方法流程示意图;FIG1 is a flow chart of a method for predicting traffic conditions based on Internet of Vehicles big data according to an embodiment of the present invention;

图2为本发明实施例中所述的基于车联网大数据的交通路况预测系统结构示意图;FIG2 is a schematic diagram of the structure of a traffic condition prediction system based on Internet of Vehicles big data according to an embodiment of the present invention;

图3为本发明实施例中所述的基于车联网大数据的交通路况预测设备结构示意图。FIG3 is a schematic diagram of the structure of a traffic condition prediction device based on Internet of Vehicles big data according to an embodiment of the present invention.

图中:701、第一获取模块;702、第二获取模块;7021、获取单元;7022、识别单元;7023、第一确定单元;7024、选取单元;703、第一处理模块;704、分析模块;7041、分析单元;7042、第一处理单元;7043、计算单元;7044、确定单元;705、第二处理模块;7051、分类单元;70511、第二设置单元;70512、清洗单元;70513、变换单元;7052、第一设置单元;7053、优化单元;7054、第二处理单元;7055、对比单元;800、基于车联网大数据的交通路况预测设备;801、处理器;802、存储器;803、多媒体组件;804、I/O接口;805、通信组件。In the figure: 701, first acquisition module; 702, second acquisition module; 7021, acquisition unit; 7022, identification unit; 7023, first determination unit; 7024, selection unit; 703, first processing module; 704, analysis module; 7041, analysis unit; 7042, first processing unit; 7043, calculation unit; 7044, determination unit; 705, second processing module; 7051, classification unit; 70511, second setting unit; 70512, cleaning unit; 70513, transformation unit; 7052, first setting unit; 7053, optimization unit; 7054, second processing unit; 7055, comparison unit; 800, traffic condition prediction device based on Internet of Vehicles big data; 801, processor; 802, memory; 803, multimedia component; 804, I/O interface; 805, communication component.

具体实施方式DETAILED DESCRIPTION

为使本发明实施例的目的、技术方案和优点更加清楚,下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。通常在此处附图中描述和示出的本发明实施例的组件可以以各种不同的配置来布置和设计。因此,以下对在附图中提供的本发明的实施例的详细描述并非旨在限制要求保护的本发明的范围,而是仅仅表示本发明的选定实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. The components of the embodiments of the present invention generally described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.

应注意到:相似的标号和字母在下面的附图中表示类似项,因此,一旦某一项在一个附图中被定义,则在随后的附图中不需要对其进行进一步定义和解释。同时,在本发明的描述中,术语“第一”、“第二”等仅用于区分描述,而不能理解为指示或暗示相对重要性。It should be noted that similar reference numerals and letters represent similar items in the following drawings, so once an item is defined in one drawing, it does not need to be further defined and explained in the subsequent drawings. At the same time, in the description of the present invention, the terms "first", "second", etc. are only used to distinguish the description and cannot be understood as indicating or implying relative importance.

实施例1:Embodiment 1:

本实施例提供了一种基于车联网大数据的交通路况预测方法。This embodiment provides a method for predicting traffic conditions based on Internet of Vehicles big data.

参见图1,图中示出了本方法包括步骤S100、步骤S200、步骤S300、步骤S400和步骤S500。Referring to FIG. 1 , it is shown that the method includes step S100 , step S200 , step S300 , step S400 and step S500 .

S100、获取所述待测区域在当前时刻之前的预设时间段内的历史轨迹数据。S100: Acquire historical trajectory data of the area to be measured within a preset time period before the current moment.

可以理解的是,在本步骤中,是根据现有技术来实现,例如用户的历史轨迹数据可以预先存储在一个数据库中,在使用时,从数据库中根据用户的标识获取其历史轨迹数据,当然,可以以时间或者地域作为限制条件,也可以使用当前较为成熟的路况预测模型,将之前存储的历史轨迹数据输入至预测模型进行一个处理,得到一个相对准确的历史处理结果,记作历史轨迹数据。It can be understood that in this step, it is implemented according to the existing technology. For example, the user's historical trajectory data can be pre-stored in a database. When in use, the historical trajectory data is obtained from the database according to the user's identification. Of course, time or region can be used as a restriction condition, or the current more mature road condition prediction model can be used to input the previously stored historical trajectory data into the prediction model for processing to obtain a relatively accurate historical processing result, which is recorded as historical trajectory data.

S200、分别获取待测区域中交通路况的第一轨迹数据和第二轨迹数据,所述第一轨迹数据为在所有车辆轨迹中,车辆前一时刻不在所述待测区域而当前时刻在所述待测区域的总车辆数;所述第二轨迹数据为在所有车辆轨迹中,车辆前一时刻在所述待测区域而当前时刻不在所述待测区域的总车辆数。S200, respectively obtain first trajectory data and second trajectory data of traffic conditions in the area to be tested, wherein the first trajectory data is the total number of vehicles in all vehicle trajectories whose vehicles were not in the area to be tested at a previous moment but are currently in the area to be tested; and the second trajectory data is the total number of vehicles in all vehicle trajectories whose vehicles were in the area to be tested at a previous moment but are currently not in the area to be tested.

可以理解的是,在本步骤中,是将收集到的GPS数据转换为具有区域特性的流出和流入的形式来计算流量数据。It can be understood that in this step, the collected GPS data is converted into the form of outflow and inflow with regional characteristics to calculate the flow data.

具体地,将待检测区域看成一个整体,假设将整体划分为16*16的小区域,从而根据车辆的出入情况进行一个流量数据的预判。例如对于某个区域(x,y),统计该区域的第一轨迹数据,即在所有车辆轨迹中,车辆前一时刻不在所述待测区域而当前时刻在所述待测区域的总车辆数,可以判断为流入流量;统计该区域的第二轨迹数据,即在所有车辆轨迹中,车辆前一时刻在所述待测区域而当前时刻不在所述待测区域的总车辆数,可以判断为流出流量。以某个区域(x,y)为例,在前一时刻也就是t-1时刻,车辆A和车辆B都不在区域内,只有车辆C在区域内,在t时刻,车辆A和车辆B都在区域内,车辆C不在区域内。由此可得,车辆A和车辆B为流入车辆,车辆C为流出车辆,并可以在区域(x,y)标注出坐标点。按照此形式标注,可以统计出在待检测区域内的流量信息。Specifically, the area to be detected is regarded as a whole, and it is assumed that the whole is divided into small areas of 16*16, so as to make a prediction of the flow data according to the entry and exit of the vehicle. For example, for a certain area (x, y), the first trajectory data of the area is counted, that is, the total number of vehicles in the area to be detected that were not in the area to be detected at the previous moment and are currently in the area to be detected among all vehicle trajectories, which can be judged as the inflow flow; the second trajectory data of the area is counted, that is, the total number of vehicles in the area to be detected that were not in the area to be detected at the previous moment and are currently in the area to be detected among all vehicle trajectories, which can be judged as the outflow flow. Taking a certain area (x, y) as an example, at the previous moment, that is, at the moment t-1, vehicles A and B are not in the area, only vehicle C is in the area, at the moment t, vehicles A and B are in the area, and vehicle C is not in the area. It can be obtained that vehicles A and B are inflow vehicles, and vehicle C is an outflow vehicle, and the coordinate points can be marked in the area (x, y). According to this form of marking, the flow information in the area to be detected can be counted.

S300、基于三维向量对所述第一轨迹数据和所述第二轨迹数据进行处理,得到所有所述待测区域中的每个待测时间点的所有车辆轨迹的流量信息,所述流量信息包括所有车辆之间的相对交通流量、相对交通流量变化率、交通事故的不确定信息和当前道路的环境因素。S300: Process the first trajectory data and the second trajectory data based on the three-dimensional vector to obtain traffic information of all vehicle trajectories at each time point to be tested in all the areas to be tested, wherein the traffic information includes relative traffic flow between all vehicles, relative traffic flow change rate, uncertainty information of traffic accidents, and environmental factors of the current road.

具体地,上述得到的整个区域划分为16*16,那么可以根据三维向量表示出待检测区域的每个时刻数据的三维向量,根据采集的数据周期,可以得到每个待测时间点的所有车辆轨迹的流量信息。Specifically, the entire area obtained above is divided into 16*16, then the three-dimensional vector of the data at each moment in the area to be detected can be represented by the three-dimensional vector, and the flow information of all vehicle trajectories at each time point to be tested can be obtained according to the collected data cycle.

其中,需要说明的是,相对交通流量、相对交通流量变化率、交通事故的不确定信息和当前道路环境因素都是影响交通流量信息的重要因素。Among them, it should be noted that relative traffic flow, relative traffic flow change rate, uncertain information of traffic accidents and current road environment factors are all important factors affecting traffic flow information.

其中相对交通流量为在选定时间段内通过道路某一地点、某一断面或某一车道的交通实体数,是由上述的流入和流出的两种类型数据组成,相对交通流量指的是流入减去流出即得相对交通流量。相对交通流量变化率为当交通道路上发生交通事故的时候,路径会发生变化,例如堵塞、车辆排队等,交通流量的这种变化为相对交通流量变化率,是相对于前一时刻产生的。当前道路环境因素,顾名思义,即当前道路是否拥挤,是否发生交通事故,当前道路的承受能力都有关系。交通事故的不确定信息指的是通过相对交通流量、相对流量变化率和道路承受程度进行处理得到的。The relative traffic flow is the number of traffic entities passing through a certain location, a certain section or a certain lane of the road within the selected time period. It is composed of the two types of data mentioned above, inflow and outflow. The relative traffic flow refers to the inflow minus the outflow, that is, the relative traffic flow. The relative traffic flow change rate is when a traffic accident occurs on the traffic road, the path will change, such as congestion, vehicle queues, etc. This change in traffic flow is the relative traffic flow change rate, which is generated relative to the previous moment. The current road environment factors, as the name implies, are related to whether the current road is congested, whether a traffic accident occurs, and the bearing capacity of the current road. The uncertain information of traffic accidents refers to the information obtained by processing the relative traffic flow, the relative traffic flow change rate and the road bearing capacity.

可以理解的是,在本S300步骤中交通事故的不确定信息的获取过程包括S301、S302、S303和S304,其中:It can be understood that the process of obtaining the uncertain information of the traffic accident in step S300 includes S301, S302, S303 and S304, wherein:

S301、采用摄像装置获取到所述待测区域中每个所述待测时间点的交通路况图像信息;S301, using a camera device to obtain traffic road condition image information at each of the time points to be tested in the area to be tested;

为了掌握到各个交通路口的车辆运行状态,往往将摄像装置架设在交通路口的合适位置,比如道路上方、路中央的隔离带,实时监控各交通路口道路上的车辆运行情况,该车辆运行情况包括车辆排队情况、红绿灯等待情况、停车时间、车辆左右拐等信息。为了使视频处理中心能够通过摄像机拍摄到的各路口的视频图像获取各道路的交通状态,在摄像机拍摄到各交通路口道路上的车辆运行情况的视频图像后,将该视频图像传输到后台视频处理中心,以便使视频处理中心获取该视频图形,并对该视频图像进行分析和处理,最终得到交通路况图像信息。In order to grasp the vehicle operation status at each traffic intersection, the camera device is often set up at a suitable position at the traffic intersection, such as the isolation belt above the road or in the middle of the road, to monitor the vehicle operation status on the roads at each traffic intersection in real time, including vehicle queuing, waiting for traffic lights, parking time, left and right turns of vehicles, etc. In order to enable the video processing center to obtain the traffic status of each road through the video images of each intersection captured by the camera, after the camera captures the video image of the vehicle operation status on the roads at each traffic intersection, the video image is transmitted to the background video processing center so that the video processing center can obtain the video graphics, analyze and process the video image, and finally obtain the traffic road condition image information.

S302、对所述交通路况图像信息进行图像预处理,并基于Yo l ov3网络,对预处理后的所述图像进行识别,得到多组重合图像,多组所述重合图像至少为三组,其中所述重合图像包括至少两个相同转向信息的轨迹划分到同一个图像轨迹集合中;S302, performing image preprocessing on the traffic image information, and recognizing the preprocessed image based on the Yo l ov3 network to obtain multiple groups of overlapping images, the multiple groups of overlapping images are at least three groups, wherein the overlapping images include at least two trajectories of the same turning information divided into the same image trajectory set;

需要说明的是,对图像进行预处理,并基于卷积网络对预处理后的图像进行一个识别,去除一些图像存在的阴影、杂质等不清楚的地方,进行优化和图像对比,通过Yolov3网络标记出来的图像与哪个图像最为相近,即相互重合的图像,重合图像中有很多轨迹,其中任意一条轨迹由多个轨迹点组成。重合图像即为历史热度用于衡量交通路况的热度信息。例如对多组重合图像进行分类,得到多个类别:第一类别、第二类别、第三类别...以此类推,将相同轨迹的图像加入到相应的类别中,即划分到同一个图像轨迹集合中。It should be noted that the image is preprocessed, and the preprocessed image is identified based on the convolutional network to remove the shadows, impurities and other unclear places in some images, and to optimize and compare the images. The image marked by the Yolov3 network is the closest to which image, that is, the overlapping images. There are many trajectories in the overlapping images, and any trajectory is composed of multiple trajectory points. The overlapping image is the historical heat used to measure the heat information of traffic conditions. For example, multiple groups of overlapping images are classified to obtain multiple categories: the first category, the second category, the third category... and so on. The images with the same trajectory are added to the corresponding category, that is, they are divided into the same image trajectory set.

S303、将所有所述重合图像进行层次分析,确定每组重合图像中相同转向图像信息所占的比重;S303, performing hierarchical analysis on all the overlapping images to determine the proportion of the same steering image information in each group of overlapping images;

需要说明的是,基于层次分析法进行比较获得相对重要程度的关系,并做归一化处理得到判别矩阵,如下:It should be noted that the relative importance of the relationship is obtained by comparison based on the hierarchical analysis method, and the discriminant matrix is obtained by normalization, as follows:

A=(aij)n×n A=(a ij ) n×n

其中:A为判别矩阵;aij为当前层级的元素i和元素j对上一层级的重要性比例标度;i和j分别为不同种类的元素;n为层次结构模型的维度,所述元素为方案层中任一元素。Wherein: A is the discriminant matrix; aij is the importance ratio scale of element i and element j of the current level to the previous level; i and j are elements of different types respectively; n is the dimension of the hierarchical model, and the element is any element in the solution layer.

其中,权重计算公式如下所述:The weight calculation formula is as follows:

Figure BDA0004032475410000081
Figure BDA0004032475410000081

其中,W'每个元素的权重系数,Wi为判别矩阵中每一行各标度数据的几何平均数。Among them, W' is the weight coefficient of each element, and Wi is the geometric mean of each scale data in each row of the discriminant matrix.

S304、根据每组重合图像中相同转向图像信息所占的比重,选取所占比重最大的为重合路口,所述重合路口为转向次数最多的路口,即用来衡量所述交通事故的不确定信息。S304, according to the proportion of the same turning image information in each group of overlapping images, select the overlapping intersection with the largest proportion, and the overlapping intersection is the intersection with the most turns, that is, it is used to measure the uncertainty information of the traffic accident.

需要说明的是,根据比重最大的重合路口,也是转向次数最多的路口,进而为预测交通路况提供了依据,是衡量交通事故的重要因素,也提高了交通路况预测的准确性。It should be noted that the intersection with the largest proportion of overlap is also the intersection with the most turns, which provides a basis for predicting traffic conditions. It is an important factor in measuring traffic accidents and also improves the accuracy of traffic condition prediction.

S400、将所述流量信息和所述历史轨迹数据进行灰色关联分析,得到每个所述流量信息和所述历史轨迹数据的关联度值。S400: Perform grey correlation analysis on the flow information and the historical trajectory data to obtain a correlation value between each flow information and the historical trajectory data.

需要说明的是,通过线性插值的方法将系统因素的离散行为观测值转化为分段连续的折线,进而根据折线的几何特征构造测度关联程度的模型。所谓关联程度,实质上是曲线间几何形状的差别程度。因此曲线间差值大小,可作为关联程度的衡量尺度。It should be noted that the discrete behavior observations of system factors are converted into piecewise continuous broken lines through the method of linear interpolation, and then a model for measuring the degree of association is constructed based on the geometric characteristics of the broken lines. The so-called degree of association is essentially the degree of difference in the geometric shapes between the curves. Therefore, the difference between the curves can be used as a measure of the degree of association.

可以理解的是,在S400步骤中包括S401、S402、S403和S404,其中:It can be understood that step S400 includes S401, S402, S403 and S404, wherein:

S401、将所述流量信息和所述历史轨迹数据进行序列分析,得到第一序列数据和第二序列数据,其中将所述历史轨迹数据作为反映交通路况因素的母序列,将所述流量信息作为反映交通路况因素的子序列;S401, performing sequence analysis on the flow information and the historical trajectory data to obtain first sequence data and second sequence data, wherein the historical trajectory data is used as a parent sequence reflecting traffic conditions, and the flow information is used as a subsequence reflecting traffic conditions;

可以理解的是,通过对流量信息和历史轨迹数据进行分析,将反映整体行为发展的交通路况因素作为母序列,将反映影响系统发展的因素组成的数据序列作为子序列。It can be understood that by analyzing the traffic information and historical trajectory data, the traffic road condition factors reflecting the overall behavior development are taken as the parent sequence, and the data sequence reflecting the factors affecting the system development is taken as the child sequence.

S402、将所述第一序列数据和所述第二序列数据进行无纲量化处理,并将处理后的数据进行均值计算,得到第一序列数据的第一均值数据和所述第二序列数据的第二均值数据;S402, performing dimensionless quantization processing on the first sequence data and the second sequence data, and performing mean calculation on the processed data to obtain first mean data of the first sequence data and second mean data of the second sequence data;

需要说明的是,因为第一序列数据和第二序列数据中各因素的物理意义不同,导致数据的量纲也不一定相同,不便于比较,所以都要进行无纲量化处理,将第一序列数据和所述第二序列数据进行无纲量化处理,并进行均值计算,计算如下:It should be noted that, because the physical meanings of the factors in the first and second sequence data are different, the dimensions of the data are not necessarily the same, which is not convenient for comparison. Therefore, dimensionless quantization is performed on both the first and second sequence data, and the mean is calculated as follows:

Figure BDA0004032475410000101
Figure BDA0004032475410000101

其中,xij第i行第j个数据,n为一共有n个数据。Among them, x ij is the jth data in the ith row, and n is the total number of n data.

S403、基于所述第一序列数据、所述第二序列数据、所述第一均值数据和所述第二均值数据进行关联计算,得到所述子序列和母序列之间的关联系数;S403, performing association calculation based on the first sequence data, the second sequence data, the first mean data, and the second mean data to obtain a correlation coefficient between the subsequence and the parent sequence;

可以理解的是上述步骤中的关联系数的计算公式为:It can be understood that the calculation formula of the correlation coefficient in the above steps is:

Figure BDA0004032475410000102
Figure BDA0004032475410000102

其中:γf(k)为所述无量纲化处理后的历史事故数据和历史运行参数信息的关联系数;f为无量纲化处理后的历史事故数据;k无量纲化处理后的历史运行参数信息;y(k)为历史事故发生前的时间序列;xf(k)为历史事故发生后的时间序列;ρ为分辨系数,取0-1。Wherein: γ f (k) is the correlation coefficient between the historical accident data and the historical operating parameter information after dimensionless processing; f is the historical accident data after dimensionless processing; k is the historical operating parameter information after dimensionless processing; y(k) is the time series before the historical accident occurred; x f (k) is the time series after the historical accident occurred; ρ is the resolution coefficient, which is 0-1.

S404、基于所述关联系数,确定每个所述流量信息和所述历史轨迹数据的关联度值。S404: Determine a correlation value between each flow information and the historical trajectory data based on the correlation coefficient.

可以理解的是,关联度值计算公式如下:It can be understood that the calculation formula of the correlation value is as follows:

Figure BDA0004032475410000103
Figure BDA0004032475410000103

其中:εt为自变量t对应的关联度;t为母序列的数据种类;h为子序列的数据种类;m为子序列数据的样本总数量;γf(h)为子序列数据f相对于因变量h的关系系数。Among them: ε t is the correlation degree corresponding to the independent variable t; t is the data type of the parent sequence; h is the data type of the subsequence; m is the total number of samples of the subsequence data; γ f (h) is the relationship coefficient of the subsequence data f with respect to the dependent variable h.

S500、根据预先训练的路况预测模型,对所述关联度值、所述流量信息和所述历史轨迹数据进行处理,得到交通路况预测信息,其中,所述路况预测模型是根据历史时段内所述待测区域中的所述交通路况进行训练得到的。S500. According to a pre-trained traffic condition prediction model, the correlation value, the flow information and the historical trajectory data are processed to obtain traffic condition prediction information, wherein the traffic condition prediction model is trained based on the traffic conditions in the area to be tested within a historical period.

可以理解的是,在S500步骤中包括S501、S502、S503、S504和S505,其中:It can be understood that step S500 includes S501, S502, S503, S504 and S505, wherein:

S501、将所述关联度值、所述流量信息和所述历史轨迹数据进行分类,得到训练集和预测集,分别对所述训练集的数据和所述预测集的数据进行标准化处理,得到第一标准化处理结果和第二标准化处理结果;S501, classifying the association value, the traffic information, and the historical trajectory data to obtain a training set and a prediction set, and performing standardization processing on the data of the training set and the data of the prediction set respectively to obtain a first standardization processing result and a second standardization processing result;

S502、设置LSTM神经网络模型的层数以及每层神经元的个数,并基于深度学习库和网格搜索参数优化方法,选取出适合设置完成后的所述LSTM神经网络模型的激活函数和优化器,所述激活函数和所述优化器用于更新所述LSTM神经网络模型的参数;S502, setting the number of layers of the LSTM neural network model and the number of neurons in each layer, and based on the deep learning library and the grid search parameter optimization method, selecting an activation function and an optimizer suitable for the LSTM neural network model after the setting is completed, and the activation function and the optimizer are used to update the parameters of the LSTM neural network model;

需要说明的是,设置DNN模型网络结构的层数,以及每层神经元的个数,通过Keras库中sc i kit-l earn网络搜索功能,选出合适该模型的激活函数和优化器,并选取均方误差(MSE)为损失函数来度量训练样本的输出损失,优化器为“Adam”用于更新模型参数,在每个训练周期后,优化损失函数求最小化的极值;设置迭代步长和训练次数,训练模型,用训练好的模型对路况进行预测,提高了交通路况预测准确度。It should be noted that the number of layers of the DNN model network structure and the number of neurons in each layer are set. The sc i kit-l earn network search function in the Keras library is used to select the activation function and optimizer suitable for the model, and the mean square error (MSE) is selected as the loss function to measure the output loss of the training samples. The optimizer is "Adam" for updating the model parameters. After each training cycle, the loss function is optimized to minimize the extreme value; the iteration step size and the number of training times are set, the model is trained, and the trained model is used to predict the road conditions, which improves the accuracy of traffic condition prediction.

S503、根据损失函数,对更新后的所述LSTM神经网络模型进行优化,得到优化后的LSTM神经网络模型;S503, optimizing the updated LSTM neural network model according to the loss function to obtain an optimized LSTM neural network model;

需要说明的是,通过优化模型参数算法,损失函数的值会逐渐减少,使得神经网络对训练数据的预测的错误率不断减小。假设训练集为T=(x1,y1),(x2,y2),…,(xn,yn),其中xn代表第n个输入的向量,每个向量的特征是xn,yn是每个数据的正确的分类。假设神经网络的输出是a,并给出损失函数,计算公式如下:It should be noted that by optimizing the model parameter algorithm, the value of the loss function will gradually decrease, so that the error rate of the neural network's prediction of the training data continues to decrease. Assume that the training set is T = (x 1 , y 1 ), (x 2 , y 2 ), ..., (x n , yn ), where x n represents the vector of the nth input, the feature of each vector is x n , and yn is the correct classification of each data. Assume that the output of the neural network is a, and give the loss function, the calculation formula is as follows:

Figure BDA0004032475410000111
Figure BDA0004032475410000111

其中,w和b代表模型参数,n是训练集合中样本的数据,实际上,损失函数描述了优化后的LSTM神经网络模型的预测和样本标注之间的均方误差。Among them, w and b represent model parameters, n is the data of samples in the training set. In fact, the loss function describes the mean square error between the prediction of the optimized LSTM neural network model and the sample annotation.

S504、将第一标准化处理结果发送至优化后的所述LSTM神经网络模型进行处理,其中对所述第一标准化处理结果内的数据以30分钟为单位进行分段,并将不同时段的所述第一标准化处理结果输入至更优化后的所述LSTM神经网络模型进行处理,得到不同时段的输出数据,所述输出数据为不同时间段的流量信息;S504, sending the first standardized processing result to the optimized LSTM neural network model for processing, wherein the data in the first standardized processing result is segmented in units of 30 minutes, and the first standardized processing results of different time periods are input into the more optimized LSTM neural network model for processing to obtain output data of different time periods, wherein the output data is flow information of different time periods;

需要理解的是,通过采用自编码器对每个图像进行编码,确定每个图像在不同时间段的图像序列。It should be understood that by encoding each image using an autoencoder, an image sequence of each image at different time periods is determined.

在本S504步骤中包括S5041、S5042和S5043,其中:The step S504 includes S5041, S5042 and S5043, wherein:

S5041、根据采集到的所述流量信息的数据,以30分钟为时间周期对所有所述待测区域中的每个待测时间点对应每天的所述待测时间段进行设置,得到预处理后的数据;S5041. According to the collected data of the flow information, set the time period of each day corresponding to each time point of each test area in all the test areas with a time period of 30 minutes to obtain preprocessed data;

需要说明的是,以30分钟为时间周期进行设置,有利于避免冗杂,提高处理效率。It should be noted that setting the time period to 30 minutes is helpful to avoid redundancy and improve processing efficiency.

S5042、对所述预处理后的所述数据进行数据清洗,其中包括对预处理后的所述数据进行解析、去重、遗漏、噪音和异常处理;S5042, performing data cleaning on the preprocessed data, including parsing, removing duplication, omission, noise and exception processing on the preprocessed data;

具体地,将所述数据进行解析、去重、遗漏、噪音和异常处理,可以提高判断精度,有益于路况的准确判断,为标准化做好准备。Specifically, parsing, removing duplication, omissions, noise and exceptions from the data can improve judgment accuracy, facilitate accurate judgment of road conditions, and prepare for standardization.

S5043、将清洗后的数据进行线性变换,得到交通流数据,将所述交通流数据记作所述第一标准化处理结果。S5043. Perform a linear transformation on the cleaned data to obtain traffic flow data, and record the traffic flow data as the first standardized processing result.

需要说明的是,采用线性变换交通流数据,将数据映射到[-1,1]的范围内,得到交通流数据。It should be noted that the traffic flow data is obtained by linearly transforming the traffic flow data and mapping the data to the range of [-1, 1].

S505、将所述第二标准化处理结果与所述输出数据进行对比,得到对比结果;若所述对比结果为所述第二标准化处理结果与所述输出数据不一致,则采用网格搜索参数优化方法不断调节参数,直至所述对比结果为所述第二标准化处理结果与所述输出数据一致,其中所述参数为所述STM神经网络模型的输入特征维数、隐藏层维数和输入层数据。S505. Compare the second standardized processing result with the output data to obtain a comparison result; if the comparison result is that the second standardized processing result is inconsistent with the output data, use a grid search parameter optimization method to continuously adjust parameters until the comparison result is that the second standardized processing result is consistent with the output data, wherein the parameters are the input feature dimension, hidden layer dimension and input layer data of the STM neural network model.

可以理解的是,本步骤通过对LSTM神经网络模型进行训练,预测不同时间段的数据结果,进而调整预测的准确率,达到高效快速的目的。It can be understood that this step trains the LSTM neural network model to predict data results in different time periods, and then adjusts the prediction accuracy to achieve the purpose of high efficiency and speed.

实施例2:Embodiment 2:

如图2所示,本实施例提供了一种基于车联网大数据的交通路况预测系统,参见图2所述系统包括第一获取模块701、第二获取模块702、第一处理模块703、分析模块704和第二处理模块705,其中:As shown in FIG. 2 , this embodiment provides a traffic condition prediction system based on Internet of Vehicles big data. Referring to FIG. 2 , the system includes a first acquisition module 701, a second acquisition module 702, a first processing module 703, an analysis module 704, and a second processing module 705, wherein:

第一获取模块701:用于获取所述待测区域在当前时刻之前的预设时间段内的历史轨迹数据;The first acquisition module 701 is used to acquire the historical trajectory data of the area to be measured within a preset time period before the current moment;

第二获取模块702:用于分别获取待测区域中交通路况的第一轨迹数据和第二轨迹数据,所述第一轨迹数据为在所有车辆轨迹中,车辆前一时刻不在所述待测区域而当前时刻在所述待测区域的总车辆数;所述第二轨迹数据为在所有车辆轨迹中,车辆前一时刻在所述待测区域而当前时刻不在所述待测区域的总车辆数;The second acquisition module 702 is used to respectively acquire first trajectory data and second trajectory data of traffic conditions in the test area, wherein the first trajectory data is the total number of vehicles in all vehicle trajectories whose vehicles were not in the test area at the previous moment but are currently in the test area; the second trajectory data is the total number of vehicles in all vehicle trajectories whose vehicles were in the test area at the previous moment but are currently not in the test area;

第一处理模块703:用于基于三维向量对所述第一轨迹数据和所述第二轨迹数据进行处理,得到所有所述待测区域中的每个待测时间点的所有车辆轨迹的流量信息,所述流量信息包括所有车辆之间的相对交通流量、相对交通流量变化率、交通事故的不确定信息和当前道路的环境因素;The first processing module 703 is used to process the first trajectory data and the second trajectory data based on the three-dimensional vector to obtain the traffic information of all vehicle trajectories at each time point to be tested in all the tested areas, wherein the traffic information includes the relative traffic flow between all vehicles, the relative traffic flow change rate, the uncertainty information of traffic accidents and the environmental factors of the current road;

分析模块704:用于将所述流量信息和所述历史轨迹数据进行灰色关联分析,得到每个所述流量信息和所述历史轨迹数据的关联度值;Analysis module 704: used for performing grey correlation analysis on the flow information and the historical trajectory data to obtain a correlation value between each flow information and the historical trajectory data;

第二处理模块705:用于根据预先训练的路况预测模型,对所述关联度值、所述流量信息和所述历史轨迹数据进行处理,得到交通路况预测信息,其中,所述路况预测模型是根据历史时段内所述待测区域中的所述交通路况进行训练得到的。The second processing module 705 is used to process the correlation value, the flow information and the historical trajectory data according to a pre-trained traffic condition prediction model to obtain traffic condition prediction information, wherein the traffic condition prediction model is trained according to the traffic conditions in the test area within a historical period.

具体地,所述第一处理模块703中的交通事故的不确定信息的获取过程包括获取单元7021、识别单元7022、第一确定单元7023和选取单元7024,其中:Specifically, the process of acquiring the uncertain information of the traffic accident in the first processing module 703 includes an acquiring unit 7021, an identifying unit 7022, a first determining unit 7023 and a selecting unit 7024, wherein:

获取单元7021:用于采用摄像装置获取到所述待测区域中每个所述待测时间点的交通路况图像信息;The acquisition unit 7021 is used to acquire the traffic road condition image information at each time point to be tested in the test area by using a camera device;

识别单元7022:用于对所述交通路况图像信息进行图像预处理,并基于Yo l ov3网络,对预处理后的所述图像进行识别,得到多组重合图像,多组所述重合图像至少为三组,其中所述重合图像包括至少两个相同转向信息的轨迹划分到同一个图像轨迹集合中;The recognition unit 7022 is used to perform image preprocessing on the traffic road condition image information, and recognize the preprocessed image based on the Yo l ov3 network to obtain multiple groups of overlapping images, where the multiple groups of overlapping images are at least three groups, wherein the overlapping images include at least two trajectories of the same turning information divided into the same image trajectory set;

第一确定单元7023:用于将所有所述重合图像进行层次分析,确定每组重合图像中相同转向图像信息所占的比重;The first determining unit 7023 is used to perform hierarchical analysis on all the overlapping images to determine the proportion of the same steering image information in each group of overlapping images;

选取单元7024:用于根据每组重合图像中相同转向图像信息所占的比重,选取所占比重最大的为重合路口,所述重合路口为转向次数最多的路口,即用来衡量所述交通事故的不确定信息。Selection unit 7024: used to select the overlapped intersection with the largest proportion of the same turn image information in each group of overlapped images, and the overlapped intersection is the intersection with the most turns, that is, it is used to measure the uncertainty information of the traffic accident.

具体地,所述分析模块704,包括分析单元7041、第一处理单元7042、计算单元7043和确定单元7044,其中:Specifically, the analysis module 704 includes an analysis unit 7041, a first processing unit 7042, a calculation unit 7043 and a determination unit 7044, wherein:

分析单元7041:用于将所述流量信息和所述历史轨迹数据进行序列分析,得到第一序列数据和第二序列数据,其中将所述历史轨迹数据作为反映交通路况因素的母序列,将所述流量信息作为反映交通路况因素的子序列;The analyzing unit 7041 is used to perform sequence analysis on the flow information and the historical trajectory data to obtain a first sequence data and a second sequence data, wherein the historical trajectory data is used as a parent sequence reflecting traffic road condition factors, and the flow information is used as a subsequence reflecting traffic road condition factors;

第一处理单元7042:用于将所述第一序列数据和所述第二序列数据进行无纲量化处理,并将处理后的数据进行均值计算,得到第一序列数据的第一均值数据和所述第二序列数据的第二均值数据;The first processing unit 7042 is used to perform dimensionless quantization processing on the first sequence data and the second sequence data, and perform mean calculation on the processed data to obtain first mean data of the first sequence data and second mean data of the second sequence data;

计算单元7043:用于基于所述第一序列数据、所述第二序列数据、所述第一均值数据和所述第二均值数据进行关联计算,得到所述子序列和母序列之间的关联系数;A calculation unit 7043 is used to perform association calculation based on the first sequence data, the second sequence data, the first mean data and the second mean data to obtain a correlation coefficient between the subsequence and the parent sequence;

确定单元7044:用于基于所述关联系数,确定每个所述流量信息和所述历史轨迹数据的关联度值。The determination unit 7044 is used to determine the correlation value between each flow information and the historical trajectory data based on the correlation coefficient.

具体地,所述第二处理模块705,包括分类单元7051、第一设置单元7052、优化单元7053、第二处理单元7054和对比单元7055,其中:Specifically, the second processing module 705 includes a classification unit 7051, a first setting unit 7052, an optimization unit 7053, a second processing unit 7054 and a comparison unit 7055, wherein:

分类单元7051:用于将所述关联度值、所述流量信息和所述历史轨迹数据进行分类,得到训练集和预测集,分别对所述训练集的数据和所述预测集的数据进行标准化处理,得到第一标准化处理结果和第二标准化处理结果;The classification unit 7051 is used to classify the association value, the traffic information and the historical trajectory data to obtain a training set and a prediction set, and perform standardization processing on the data of the training set and the data of the prediction set to obtain a first standardization processing result and a second standardization processing result;

第一设置单元7052:用于设置LSTM神经网络模型的层数以及每层神经元的个数,并基于深度学习库和网格搜索参数优化方法,选取出适合设置完成后的所述LSTM神经网络模型的激活函数和优化器,所述激活函数和所述优化器用于更新所述LSTM神经网络模型的参数;The first setting unit 7052 is used to set the number of layers of the LSTM neural network model and the number of neurons in each layer, and based on the deep learning library and the grid search parameter optimization method, select an activation function and an optimizer suitable for the LSTM neural network model after the setting is completed, and the activation function and the optimizer are used to update the parameters of the LSTM neural network model;

优化单元7053:用于根据损失函数,对更新后的所述LSTM神经网络模型进行优化,得到优化后的LSTM神经网络模型;Optimizing unit 7053: used to optimize the updated LSTM neural network model according to the loss function to obtain an optimized LSTM neural network model;

第二处理单元7054:用于将第一标准化处理结果发送至优化后的所述LSTM神经网络模型进行处理,其中对所述第一标准化处理结果内的数据以30分钟为单位进行分段,并将不同时段的所述第一标准化处理结果输入至更优化后的所述LSTM神经网络模型进行处理,得到不同时段的输出数据,所述输出数据为不同时间段的流量信息;The second processing unit 7054 is used to send the first standardized processing result to the optimized LSTM neural network model for processing, wherein the data in the first standardized processing result is segmented in units of 30 minutes, and the first standardized processing results of different time periods are input into the more optimized LSTM neural network model for processing to obtain output data of different time periods, and the output data is the traffic information of different time periods;

对比单元7055:用于将所述第二标准化处理结果与所述输出数据进行对比,得到对比结果;若所述对比结果为所述第二标准化处理结果与所述输出数据不一致,则采用网格搜索参数优化方法不断调节参数,直至所述对比结果为所述第二标准化处理结果与所述输出数据一致,其中所述参数为所述STM神经网络模型的输入特征维数、隐藏层维数和输入层数据。Comparison unit 7055: used to compare the second standardized processing result with the output data to obtain a comparison result; if the comparison result is that the second standardized processing result is inconsistent with the output data, a grid search parameter optimization method is used to continuously adjust the parameters until the comparison result is that the second standardized processing result is consistent with the output data, wherein the parameters are the input feature dimension, hidden layer dimension and input layer data of the STM neural network model.

具体地,所述分类单元7051,包括第二设置单元70511、清洗单元70512和变换单元70513,其中:Specifically, the classification unit 7051 includes a second setting unit 70511, a cleaning unit 70512 and a transformation unit 70513, wherein:

第二设置单元70511:用于根据采集到的所述流量信息的数据,以30分钟为时间周期对所有所述待测区域中的每个待测时间点对应每天的所述待测时间段进行设置,得到预处理后的数据;The second setting unit 70511 is used to set the test time period of each test time point in all the test areas corresponding to the test time period of each day with 30 minutes as the time period according to the collected data of the flow information, so as to obtain pre-processed data;

清洗单元70512:用于对所述预处理后的所述数据进行数据清洗,其中包括对预处理后的所述数据进行解析、去重、遗漏、噪音和异常处理;Cleaning unit 70512: used for performing data cleaning on the pre-processed data, including parsing, removing duplication, omission, noise and exception processing on the pre-processed data;

变换单元70513:用于将清洗后的数据进行线性变换,得到交通流数据,将所述交通流数据记作所述第一标准化处理结果。Transformation unit 70513: used to perform linear transformation on the cleaned data to obtain traffic flow data, and record the traffic flow data as the first standardized processing result.

需要说明的是,关于上述实施例中的系统,其中各个模块执行操作的具体方式已经在有关该方法的实施例中进行了详细描述,此处将不做详细阐述说明。It should be noted that, regarding the system in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.

实施例3:Embodiment 3:

相应于上面的方法实施例,本实施例中还提供了一种基于车联网大数据的交通路况预测设备,下文描述的一种基于车联网大数据的交通路况预测设备与上文描述的一种基于车联网大数据的交通路况预测可相互对应参照。Corresponding to the above method embodiment, this embodiment also provides a traffic condition prediction device based on the big data of the Internet of Vehicles. The traffic condition prediction device based on the big data of the Internet of Vehicles described below and the traffic condition prediction based on the big data of the Internet of Vehicles described above can be referred to each other.

图3是根据示例性实施例示出的一种基于车联网大数据的交通路况预测设备800的框图。如图3所示,该基于车联网大数据的交通路况预测设备800可以包括:处理器801,存储器802。该基于车联网大数据的交通路况预测设备800还可以包括多媒体组件803,I/O接口804,以及通信组件805中的一者或多者。FIG3 is a block diagram of a traffic condition prediction device 800 based on Internet of Vehicles big data according to an exemplary embodiment. As shown in FIG3 , the traffic condition prediction device 800 based on Internet of Vehicles big data may include: a processor 801, a memory 802. The traffic condition prediction device 800 based on Internet of Vehicles big data may also include one or more of a multimedia component 803, an I/O interface 804, and a communication component 805.

其中,处理器801用于控制该基于车联网大数据的交通路况预测设备800的整体操作,以完成上述的基于车联网大数据的交通路况预测方法中的全部或部分步骤。存储器802用于存储各种类型的数据以支持在该基于车联网大数据的交通路况预测设备800的操作,这些数据例如可以包括用于在该基于车联网大数据的交通路况预测设备800上操作的任何应用程序或方法的指令,以及应用程序相关的数据,例如联系人数据、收发的消息、图片、音频、视频等等。该存储器802可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,例如静态随机存取存储器(Stat i c Random Access Memory,简称SRAM),电可擦除可编程只读存储器(E l ectr i ca l l y Erasab l e Programmab l e Read-On l yMemory,简称EEPROM),可擦除可编程只读存储器(Erasab l e Programmab l e Read-On ly Memory,简称EPROM),可编程只读存储器(Programmab l e Read-On l y Memory,简称PROM),只读存储器(Read-On l y Memory,简称ROM),磁存储器,快闪存储器,磁盘或光盘。多媒体组件803可以包括屏幕和音频组件。其中屏幕例如可以是触摸屏,音频组件用于输出和/或输入音频信号。例如,音频组件可以包括一个麦克风,麦克风用于接收外部音频信号。所接收的音频信号可以被进一步存储在存储器802或通过通信组件805发送。音频组件还包括至少一个扬声器,用于输出音频信号。I/O接口804为处理器801和其他接口模块之间提供接口,上述其他接口模块可以是键盘,鼠标,按钮等。这些按钮可以是虚拟按钮或者实体按钮。通信组件805用于该基于车联网大数据的交通路况预测设备800与其他设备之间进行有线或无线通信。无线通信,例如Wi-F i,蓝牙,近场通信(Near F i e l dCommun i cat ion,简称NFC),2G、3G或4G,或它们中的一种或几种的组合,因此相应的该通信组件805可以包括:Wi-F i模块,蓝牙模块,NFC模块。The processor 801 is used to control the overall operation of the traffic condition prediction device 800 based on the big data of the Internet of Vehicles, so as to complete all or part of the steps in the above-mentioned traffic condition prediction method based on the big data of the Internet of Vehicles. The memory 802 is used to store various types of data to support the operation of the traffic condition prediction device 800 based on the big data of the Internet of Vehicles, and these data may include, for example, instructions for any application or method operating on the traffic condition prediction device 800 based on the big data of the Internet of Vehicles, and application-related data, such as contact data, sent and received messages, pictures, audio, video, etc. The memory 802 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, disk or optical disk. The multimedia component 803 can include a screen and an audio component. The screen can be, for example, a touch screen, and the audio component is used to output and/or input audio signals. For example, the audio component can include a microphone, and the microphone is used to receive external audio signals. The received audio signal can be further stored in the memory 802 or sent through the communication component 805. The audio component also includes at least one speaker for outputting audio signals. The I/O interface 804 provides an interface between the processor 801 and other interface modules, and the above-mentioned other interface modules can be keyboards, mice, buttons, etc. These buttons can be virtual buttons or physical buttons. The communication component 805 is used for wired or wireless communication between the traffic condition prediction device 800 based on the Internet of Vehicles big data and other devices. Wireless communication, such as Wi-Fi, Bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so the corresponding communication component 805 can include: Wi-Fi module, Bluetooth module, NFC module.

在一示例性实施例中,基于车联网大数据的交通路况预测设备800可以被一个或多个应用专用集成电路(App l i cat i on Spec i f i c I ntegrated C i rcu i t,简称AS I C)、数字信号处理器(D i g i ta l S i gna l Processor,简称DSP)、数字信号处理设备(D i g i ta l S i gna l Process i ng Dev i ce,简称DSPD)、可编程逻辑器件(Programmab l e Log i c Dev i ce,简称PLD)、现场可编程门阵列(F i e l dProgrammab l e Gate Array,简称FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述的基于车联网大数据的交通路况预测方法。In an exemplary embodiment, the traffic condition prediction device 800 based on the big data of the Internet of Vehicles can be implemented by one or more application-specific integrated circuits (ASIC), digital signal processors (DSP), digital signal processing devices (DSPD), programmable logic devices (PLD), field programmable gate arrays (FPGA), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned traffic condition prediction method based on the big data of the Internet of Vehicles.

在另一示例性实施例中,还提供了一种包括程序指令的计算机可读存储介质,该程序指令被处理器执行时实现上述的基于车联网大数据的交通路况预测方法的步骤。例如,该计算机可读存储介质可以为上述包括程序指令的存储器802,上述程序指令可由基于车联网大数据的交通路况预测设备800的处理器801执行以完成上述的基于车联网大数据的交通路况预测方法。In another exemplary embodiment, a computer-readable storage medium including program instructions is also provided, and when the program instructions are executed by a processor, the steps of the above-mentioned traffic condition prediction method based on Internet of Vehicles big data are implemented. For example, the computer-readable storage medium can be the above-mentioned memory 802 including program instructions, and the above-mentioned program instructions can be executed by the processor 801 of the traffic condition prediction device 800 based on Internet of Vehicles big data to complete the above-mentioned traffic condition prediction method based on Internet of Vehicles big data.

实施例4:Embodiment 4:

相应于上面的方法实施例,本实施例中还提供了一种可读存储介质,下文描述的一种可读存储介质与上文描述的一种基于车联网大数据的交通路况预测可相互对应参照。Corresponding to the above method embodiment, a readable storage medium is also provided in this embodiment. The readable storage medium described below and the traffic condition prediction based on Internet of Vehicles big data described above can correspond to each other.

一种可读存储介质,可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述方法实施例的基于车联网大数据的交通路况预测方法的步骤。A readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the traffic condition prediction method based on Internet of Vehicles big data of the above-mentioned method embodiment.

该可读存储介质具体可以为U盘、移动硬盘、只读存储器(Read-On l y Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等各种可存储程序代码的可读存储介质。The readable storage medium may specifically be a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or other readable storage medium that can store program codes.

以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (10)

1.一种基于车联网大数据的交通路况预测方法,其特征在于,包括:1. A traffic road condition prediction method based on Internet of Vehicles big data, is characterized in that, comprises: 获取所述待测区域在当前时刻之前的预设时间段内的历史轨迹数据;Obtain historical trajectory data of the area to be tested within a preset time period before the current moment; 分别获取待测区域中交通路况的第一轨迹数据和第二轨迹数据,所述第一轨迹数据为在所有车辆轨迹中,车辆前一时刻不在所述待测区域而当前时刻在所述待测区域的总车辆数;所述第二轨迹数据为在所有车辆轨迹中,车辆前一时刻在所述待测区域而当前时刻不在所述待测区域的总车辆数;Obtain the first trajectory data and the second trajectory data of the traffic road conditions in the area to be tested respectively, the first trajectory data is that among all vehicle trajectories, the vehicle was not in the area to be tested at the previous moment and is in the area to be tested at the current moment The total number of vehicles in the area; the second trajectory data is the total number of vehicles in all vehicle trajectories that were in the area to be tested at the previous moment and not in the area to be tested at the current moment; 基于三维向量对所述第一轨迹数据和所述第二轨迹数据进行处理,得到所有所述待测区域中的每个待测时间点的所有车辆轨迹的流量信息,所述流量信息包括所有车辆之间的相对交通流量、相对交通流量变化率、交通事故的不确定信息和当前道路的环境因素;Process the first trajectory data and the second trajectory data based on the three-dimensional vector to obtain flow information of all vehicle trajectories at each time point to be measured in all the regions to be measured, the flow information including all vehicles The relative traffic flow, the relative traffic flow rate of change, the uncertain information of traffic accidents and the environmental factors of the current road; 将所述流量信息和所述历史轨迹数据进行灰色关联分析,得到每个所述流量信息和所述历史轨迹数据的关联度值;performing gray relational analysis on the traffic information and the historical track data to obtain a correlation value between each of the traffic information and the historical track data; 根据预先训练的路况预测模型,对所述关联度值、所述流量信息和所述历史轨迹数据进行处理,得到交通路况预测信息,其中,所述路况预测模型是根据历史时段内所述待测区域中的所述交通路况进行训练得到的。According to the pre-trained road condition prediction model, the correlation degree value, the traffic information and the historical trajectory data are processed to obtain traffic road condition prediction information, wherein the traffic condition prediction model is based on the The traffic conditions in the area are obtained through training. 2.根据权利要求1所述的基于车联网大数据的交通路况预测方法,其特征在于,所述流量信息包括所有车辆之间的相对交通流量、相对交通流量变化率、交通事故的不确定信息和当前道路的环境因素,其中交通事故的不确定信息的获取过程包括:2. The traffic road condition prediction method based on the Internet of Vehicles big data according to claim 1, wherein the traffic information includes relative traffic flow between all vehicles, relative traffic flow rate of change, uncertain information of traffic accidents and the environmental factors of the current road, the acquisition process of uncertain information of traffic accidents includes: 采用摄像装置获取到所述待测区域中每个所述待测时间点的交通路况图像信息;Obtaining image information of traffic conditions at each time point to be tested in the area to be tested by using a camera device; 对所述交通路况图像信息进行图像预处理,并基于Yolov3网络,对预处理后的所述图像进行识别,得到多组重合图像,多组所述重合图像至少为三组,其中所述重合图像包括至少两个相同转向信息的轨迹划分到同一个图像轨迹集合中;Image preprocessing is performed on the traffic road condition image information, and based on the Yolov3 network, the preprocessed image is identified to obtain multiple groups of overlapping images, and the multiple groups of overlapping images are at least three groups, wherein the overlapping images The trajectories including at least two identical steering information are divided into the same set of image trajectories; 将所有所述重合图像进行层次分析,确定每组重合图像中相同转向图像信息所占的比重;Perform hierarchical analysis on all the overlapping images, and determine the proportion of the same steering image information in each group of overlapping images; 根据每组重合图像中相同转向图像信息所占的比重,选取所占比重最大的为重合路口,所述重合路口为转向次数最多的路口,即用来衡量所述交通事故的不确定信息。According to the proportion of the same turning image information in each group of overlapping images, the one with the largest proportion is selected as the overlapping intersection, and the overlapping intersection is the intersection with the most turning times, which is used to measure the uncertain information of the traffic accident. 3.根据权利要求1所述的基于车联网大数据的交通路况预测方法,其特征在于,将所述流量信息和所述历史轨迹数据进行灰色关联分析,得到每个所述流量信息和所述历史轨迹数据的关联度值,其中包括:3. the traffic road condition prediction method based on Internet of Vehicles big data according to claim 1, it is characterized in that, carry out gray correlation analysis with described traffic information and described historical track data, obtain each described traffic information and described The correlation value of historical trajectory data, including: 将所述流量信息和所述历史轨迹数据进行序列分析,得到第一序列数据和第二序列数据,其中将所述历史轨迹数据作为反映交通路况因素的母序列,将所述流量信息作为反映交通路况因素的子序列;Sequence analysis is performed on the flow information and the historical trajectory data to obtain first sequence data and second sequence data, wherein the historical trajectory data is used as the parent sequence reflecting traffic conditions, and the flow information is used as the parent sequence reflecting traffic conditions. A subsequence of road condition factors; 将所述第一序列数据和所述第二序列数据进行无纲量化处理,并将处理后的数据进行均值计算,得到第一序列数据的第一均值数据和所述第二序列数据的第二均值数据;performing dimensionless quantization processing on the first sequence data and the second sequence data, and performing average value calculation on the processed data to obtain the first average value data of the first sequence data and the second average value data of the second sequence data mean data; 基于所述第一序列数据、所述第二序列数据、所述第一均值数据和所述第二均值数据进行关联计算,得到所述子序列和母序列之间的关联系数;performing correlation calculations based on the first sequence data, the second sequence data, the first mean data, and the second mean value data to obtain a correlation coefficient between the sub-sequence and the parent sequence; 基于所述关联系数,确定每个所述流量信息和所述历史轨迹数据的关联度值。Based on the correlation coefficient, a correlation degree value between each of the flow information and the historical trajectory data is determined. 4.根据权利要求1所述的基于车联网大数据的交通路况预测方法,其特征在于,所述根据预先训练的路况预测模型,对所述关联度值、所述流量信息和所述历史轨迹数据进行处理,得到交通路况预测信息,其中包括:4. The traffic road condition prediction method based on the Internet of Vehicles big data according to claim 1, characterized in that, according to the pre-trained road condition prediction model, the degree of association value, the flow information and the historical track The data is processed to obtain traffic forecast information, including: 将所述关联度值、所述流量信息和所述历史轨迹数据进行分类,得到训练集和预测集,分别对所述训练集的数据和所述预测集的数据进行标准化处理,得到第一标准化处理结果和第二标准化处理结果;Classify the correlation degree value, the flow information and the historical trajectory data to obtain a training set and a prediction set, and standardize the data in the training set and the data in the prediction set respectively to obtain a first standardized the processing result and the second normalized processing result; 设置LSTM神经网络模型的层数以及每层神经元的个数,并基于深度学习库和网格搜索参数优化方法,选取出适合设置完成后的所述LSTM神经网络模型的激活函数和优化器,所述激活函数和所述优化器用于更新所述LSTM神经网络模型的参数;The number of layers of the LSTM neural network model and the number of neurons in each layer are set, and based on the deep learning library and the grid search parameter optimization method, an activation function and an optimizer suitable for the described LSTM neural network model after setting is selected, The activation function and the optimizer are used to update the parameters of the LSTM neural network model; 根据损失函数,对更新后的所述LSTM神经网络模型进行优化,得到优化后的LSTM神经网络模型;According to the loss function, the LSTM neural network model after the update is optimized to obtain the optimized LSTM neural network model; 将第一标准化处理结果发送至优化后的所述LSTM神经网络模型进行处理,其中对所述第一标准化处理结果内的数据以30分钟为单位进行分段,并将不同时段的所述第一标准化处理结果输入至更优化后的所述LSTM神经网络模型进行处理,得到不同时段的输出数据,所述输出数据为不同时间段的流量信息;Send the first normalized processing result to the optimized LSTM neural network model for processing, wherein the data in the first normalized processing result is segmented in units of 30 minutes, and the first The normalized processing results are input to the more optimized LSTM neural network model for processing to obtain output data of different time periods, the output data being traffic information of different time periods; 将所述第二标准化处理结果与所述输出数据进行对比,得到对比结果;若所述对比结果为所述第二标准化处理结果与所述输出数据不一致,则采用网格搜索参数优化方法不断调节参数,直至所述对比结果为所述第二标准化处理结果与所述输出数据一致,其中所述参数为所述STM神经网络模型的输入特征维数、隐藏层维数和输入层数据。Comparing the second normalization processing result with the output data to obtain a comparison result; if the comparison result is that the second normalization processing result is inconsistent with the output data, then using a grid search parameter optimization method to continuously adjust parameters, until the comparison result is that the second normalization processing result is consistent with the output data, wherein the parameters are the input feature dimension, hidden layer dimension and input layer data of the STM neural network model. 5.根据权利要求4所述的基于车联网大数据的交通路况预测方法,其特征在于,所述得到第一标准化处理结果,其中包括:5. The traffic road condition forecasting method based on Internet of Vehicles big data according to claim 4, is characterized in that, described obtains the first standardized processing result, comprises: 根据采集到的所述流量信息的数据,以30分钟为时间周期对所有所述待测区域中的每个待测时间点对应每天的所述待测时间段进行设置,得到预处理后的数据;According to the collected data of the flow information, each time point to be tested in all the areas to be tested is set to correspond to the time period to be tested every day with a time period of 30 minutes, and the preprocessed data is obtained. ; 对所述预处理后的所述数据进行数据清洗,其中包括对预处理后的所述数据进行解析、去重、遗漏、噪音和异常处理;Performing data cleaning on the preprocessed data, including parsing, deduplication, omission, noise and exception processing on the preprocessed data; 将清洗后的数据进行线性变换,得到交通流数据,将所述交通流数据记作所述第一标准化处理结果。Perform linear transformation on the cleaned data to obtain traffic flow data, and record the traffic flow data as the first normalization processing result. 6.一种基于车联网大数据的交通路况预测系统,其特征在于,包括:6. A traffic road condition prediction system based on the big data of the Internet of Vehicles, characterized in that it comprises: 第一获取模块:用于获取所述待测区域在当前时刻之前的预设时间段内的历史轨迹数据;The first acquisition module: used to acquire the historical trajectory data of the area to be tested within a preset time period before the current moment; 第二获取模块:用于分别获取待测区域中交通路况的第一轨迹数据和第二轨迹数据,所述第一轨迹数据为在所有车辆轨迹中,车辆前一时刻不在所述待测区域而当前时刻在所述待测区域的总车辆数;所述第二轨迹数据为在所有车辆轨迹中,车辆前一时刻在所述待测区域而当前时刻不在所述待测区域的总车辆数;The second acquisition module: used to obtain the first trajectory data and the second trajectory data of the traffic conditions in the area to be tested respectively, the first trajectory data is that in all vehicle trajectories, the vehicle was not in the area to be measured at the previous moment The total number of vehicles in the area to be tested at the current moment; the second track data is the total number of vehicles that were in the area to be tested at the previous moment and not in the area to be tested at the current moment among all vehicle trajectories; 第一处理模块:用于基于三维向量对所述第一轨迹数据和所述第二轨迹数据进行处理,得到所有所述待测区域中的每个待测时间点的所有车辆轨迹的流量信息,所述流量信息包括所有车辆之间的相对交通流量、相对交通流量变化率、交通事故的不确定信息和当前道路的环境因素;The first processing module: for processing the first trajectory data and the second trajectory data based on a three-dimensional vector, to obtain flow information of all vehicle trajectories at each time point to be measured in all the regions to be measured, The flow information includes relative traffic flow among all vehicles, relative traffic flow rate of change, uncertain information of traffic accidents and environmental factors of the current road; 分析模块:用于将所述流量信息和所述历史轨迹数据进行灰色关联分析,得到每个所述流量信息和所述历史轨迹数据的关联度值;An analysis module: for performing gray relational analysis on the traffic information and the historical track data, to obtain a correlation value between each of the traffic information and the historical track data; 第二处理模块:用于根据预先训练的路况预测模型,对所述关联度值、所述流量信息和所述历史轨迹数据进行处理,得到交通路况预测信息,其中,所述路况预测模型是根据历史时段内所述待测区域中的所述交通路况进行训练得到的。The second processing module: used to process the correlation value, the traffic information and the historical trajectory data according to the pre-trained road condition prediction model to obtain traffic road condition prediction information, wherein the road condition prediction model is based on The traffic conditions in the area to be tested are obtained through training in the historical period. 7.根据权利要求6所述的基于车联网大数据的交通路况预测系统,其特征在于,所述第一处理模块中的交通事故的不确定信息的获取过程包括:7. The traffic road condition prediction system based on the Internet of Vehicles big data according to claim 6, wherein the acquisition process of the uncertain information of the traffic accident in the first processing module comprises: 获取单元:用于采用摄像装置获取到所述待测区域中每个所述待测时间点的交通路况图像信息;An acquisition unit: used for acquiring traffic image information at each time point to be tested in the area to be tested by using a camera device; 识别单元:用于对所述交通路况图像信息进行图像预处理,并基于Yolov3网络,对预处理后的所述图像进行识别,得到多组重合图像,多组所述重合图像至少为三组,其中所述重合图像包括至少两个相同转向信息的轨迹划分到同一个图像轨迹集合中;Recognition unit: used to perform image preprocessing on the traffic road condition image information, and based on the Yolov3 network, identify the preprocessed image to obtain multiple groups of overlapping images, and the multiple groups of overlapping images are at least three groups, Wherein the overlapping images include at least two trajectories with the same steering information divided into the same set of image trajectories; 第一确定单元:用于将所有所述重合图像进行层次分析,确定每组重合图像中相同转向图像信息所占的比重;The first determining unit: for performing hierarchical analysis on all the overlapping images, and determining the proportion of the same steering image information in each group of overlapping images; 选取单元:用于根据每组重合图像中相同转向图像信息所占的比重,选取所占比重最大的为重合路口,所述重合路口为转向次数最多的路口,即用来衡量所述交通事故的不确定信息。Selecting unit: used to select the overlapping intersection with the largest proportion according to the proportion of the same steering image information in each group of overlapping images, and the overlapping intersection is the intersection with the most turning times, which is used to measure the traffic accident. Not sure about the information. 8.根据权利要求6所述的基于车联网大数据的交通路况预测系统,其特征在于,所述分析模块,其中包括:8. The traffic road condition prediction system based on the Internet of Vehicles big data according to claim 6, wherein the analysis module includes: 分析单元:用于将所述流量信息和所述历史轨迹数据进行序列分析,得到第一序列数据和第二序列数据,其中将所述历史轨迹数据作为反映交通路况因素的母序列,将所述流量信息作为反映交通路况因素的子序列;Analysis unit: for performing sequence analysis on the flow information and the historical trajectory data to obtain the first sequence data and the second sequence data, wherein the historical trajectory data is used as a parent sequence reflecting traffic condition factors, and the Flow information as a subsequence reflecting traffic conditions; 第一处理单元:用于将所述第一序列数据和所述第二序列数据进行无纲量化处理,并将处理后的数据进行均值计算,得到第一序列数据的第一均值数据和所述第二序列数据的第二均值数据;The first processing unit: for performing dimensionless quantization processing on the first sequence data and the second sequence data, and performing mean value calculation on the processed data to obtain the first mean value data and the first sequence data of the first sequence data The second average value data of the second sequence data; 计算单元:用于基于所述第一序列数据、所述第二序列数据、所述第一均值数据和所述第二均值数据进行关联计算,得到所述子序列和母序列之间的关联系数;Calculation unit: used to perform correlation calculation based on the first sequence data, the second sequence data, the first mean data and the second mean value data to obtain the correlation coefficient between the sub-sequence and the parent sequence ; 确定单元:用于基于所述关联系数,确定每个所述流量信息和所述历史轨迹数据的关联度值。A determining unit: configured to determine, based on the correlation coefficient, a correlation value between each of the traffic information and the historical trajectory data. 9.根据权利要求6所述的基于车联网大数据的交通路况预测系统,其特征在于,所述第二处理模块,其中包括:9. The traffic road condition prediction system based on the Internet of Vehicles big data according to claim 6, wherein the second processing module includes: 分类单元:用于将所述关联度值、所述流量信息和所述历史轨迹数据进行分类,得到训练集和预测集,分别对所述训练集的数据和所述预测集的数据进行标准化处理,得到第一标准化处理结果和第二标准化处理结果;Classification unit: used to classify the association degree value, the flow information and the historical trajectory data to obtain a training set and a prediction set, and standardize the data of the training set and the data of the prediction set respectively , to obtain the first normalization processing result and the second normalization processing result; 第一设置单元:用于设置LSTM神经网络模型的层数以及每层神经元的个数,并基于深度学习库和网格搜索参数优化方法,选取出适合设置完成后的所述LSTM神经网络模型的激活函数和优化器,所述激活函数和所述优化器用于更新所述LSTM神经网络模型的参数;The first setting unit: used to set the number of layers of the LSTM neural network model and the number of neurons in each layer, and based on the deep learning library and the grid search parameter optimization method, select the LSTM neural network model suitable for the setting. An activation function and an optimizer, the activation function and the optimizer are used to update the parameters of the LSTM neural network model; 优化单元:用于根据损失函数,对更新后的所述LSTM神经网络模型进行优化,得到优化后的LSTM神经网络模型;An optimization unit: used to optimize the updated LSTM neural network model according to the loss function to obtain the optimized LSTM neural network model; 第二处理单元:用于将第一标准化处理结果发送至优化后的所述LSTM神经网络模型进行处理,其中对所述第一标准化处理结果内的数据以30分钟为单位进行分段,并将不同时段的所述第一标准化处理结果输入至更优化后的所述LSTM神经网络模型进行处理,得到不同时段的输出数据,所述输出数据为不同时间段的流量信息;The second processing unit: used to send the first normalized processing result to the optimized LSTM neural network model for processing, wherein the data in the first normalized processing result is segmented in units of 30 minutes, and The first standardized processing results in different time periods are input to the more optimized LSTM neural network model for processing to obtain output data in different time periods, the output data being traffic information in different time periods; 对比单元:用于将所述第二标准化处理结果与所述输出数据进行对比,得到对比结果;若所述对比结果为所述第二标准化处理结果与所述输出数据不一致,则采用网格搜索参数优化方法不断调节参数,直至所述对比结果为所述第二标准化处理结果与所述输出数据一致,其中所述参数为所述STM神经网络模型的输入特征维数、隐藏层维数和输入层数据。Comparison unit: used to compare the second normalization processing result with the output data to obtain a comparison result; if the comparison result is that the second normalization processing result is inconsistent with the output data, a grid search is used The parameter optimization method continuously adjusts parameters until the comparison result is that the second standardized processing result is consistent with the output data, wherein the parameters are the input feature dimension, hidden layer dimension and input of the STM neural network model. layer data. 10.根据权利要求9所述的基于车联网大数据的交通路况预测系统,其特征在于,所述分类单元,其中包括:10. The traffic road condition prediction system based on the Internet of Vehicles big data according to claim 9, wherein the classification unit includes: 第二设置单元:用于根据采集到的所述流量信息的数据,以30分钟为时间周期对所有所述待测区域中的每个待测时间点对应每天的所述待测时间段进行设置,得到预处理后的数据;The second setting unit: used to set the time period to be tested corresponding to each time point to be tested in each of the areas to be tested in a time period of 30 minutes according to the collected data of the flow information , to get the preprocessed data; 清洗单元:用于对所述预处理后的所述数据进行数据清洗,其中包括对预处理后的所述数据进行解析、去重、遗漏、噪音和异常处理;Cleaning unit: used for data cleaning of the preprocessed data, including parsing, deduplication, omission, noise and abnormal processing of the preprocessed data; 变换单元:用于将清洗后的数据进行线性变换,得到交通流数据,将所述交通流数据记作所述第一标准化处理结果。Transformation unit: used to linearly transform the cleaned data to obtain traffic flow data, and record the traffic flow data as the first normalized processing result.
CN202211738591.3A 2022-12-30 2022-12-30 Traffic road condition prediction method and system based on Internet of vehicles big data Active CN116189425B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211738591.3A CN116189425B (en) 2022-12-30 2022-12-30 Traffic road condition prediction method and system based on Internet of vehicles big data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211738591.3A CN116189425B (en) 2022-12-30 2022-12-30 Traffic road condition prediction method and system based on Internet of vehicles big data

Publications (2)

Publication Number Publication Date
CN116189425A true CN116189425A (en) 2023-05-30
CN116189425B CN116189425B (en) 2024-10-01

Family

ID=86445488

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211738591.3A Active CN116189425B (en) 2022-12-30 2022-12-30 Traffic road condition prediction method and system based on Internet of vehicles big data

Country Status (1)

Country Link
CN (1) CN116189425B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118015857A (en) * 2024-04-08 2024-05-10 北京悦知未来科技有限公司 Road traffic planning method
CN118627701A (en) * 2024-08-14 2024-09-10 杭州路过网络有限公司 A method and system for predicting pedestrian flow on urban roads

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200042799A1 (en) * 2018-07-31 2020-02-06 Didi Research America, Llc System and method for point-to-point traffic prediction
CN113160570A (en) * 2021-05-27 2021-07-23 长春理工大学 Traffic jam prediction method and system
WO2022241802A1 (en) * 2021-05-19 2022-11-24 广州广电运通金融电子股份有限公司 Short-term traffic flow prediction method under complex road network, storage medium, and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20200042799A1 (en) * 2018-07-31 2020-02-06 Didi Research America, Llc System and method for point-to-point traffic prediction
WO2022241802A1 (en) * 2021-05-19 2022-11-24 广州广电运通金融电子股份有限公司 Short-term traffic flow prediction method under complex road network, storage medium, and system
CN113160570A (en) * 2021-05-27 2021-07-23 长春理工大学 Traffic jam prediction method and system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
秦瑶;李勇;王世民;: "改进RNN的城市交通拥堵预测模型研究", 电子世界, no. 06, 23 March 2018 (2018-03-23) *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118015857A (en) * 2024-04-08 2024-05-10 北京悦知未来科技有限公司 Road traffic planning method
CN118015857B (en) * 2024-04-08 2024-06-07 北京悦知未来科技有限公司 Road traffic planning method
CN118627701A (en) * 2024-08-14 2024-09-10 杭州路过网络有限公司 A method and system for predicting pedestrian flow on urban roads

Also Published As

Publication number Publication date
CN116189425B (en) 2024-10-01

Similar Documents

Publication Publication Date Title
CN112470199B (en) System and method for point-to-point traffic prediction
CN116189425B (en) Traffic road condition prediction method and system based on Internet of vehicles big data
CN113570867B (en) Urban traffic state prediction method, device, equipment and readable storage medium
Chen et al. A multiscale-grid-based stacked bidirectional GRU neural network model for predicting traffic speeds of urban expressways
CN111915104A (en) Method and device for predicting outgoing position
Xiao et al. Parking prediction in smart cities: A survey
CN113159403B (en) Intersection pedestrian track prediction method and device
CN114287023B (en) Multi-sensor learning system for traffic prediction
CN115600833A (en) Smart city restriction scheme determination method, internet of things system, device and medium
CN110459056A (en) A Bus Arrival Time Prediction Method Based on LSTM Neural Network
CN111815075B (en) Prediction method for transportation travel demand under major public health incident
Yang et al. Short-term prediction of airway congestion index using machine learning methods
Lin et al. Path travel time estimation using attribute-related hybrid trajectories network
CN118447687A (en) Urban road traffic flow state prediction method and system based on big data
CN112101132B (en) Traffic condition prediction method based on graph embedding model and metric learning
CN112541621B (en) A kind of movement prediction method, intelligent terminal and storage medium
CN117132958B (en) Road element identification method and related device
Xia et al. An ASM-CF model for anomalous trajectory detection with mobile trajectory big data
CN113938817B (en) A method for predicting the travel location of a vehicle owner based on vehicle location information
Kumar et al. Traffic congestion prediction using feature series LSTM neural network and a new congestion index
CN115790635A (en) Block chain-based unmanned transport vehicle driving route planning method and device
Rasaizadi et al. The ensemble learning process for short-term prediction of traffic state on rural roads
Chu et al. Spatial-temporal feature extraction and evaluation network for citywide traffic condition prediction
Li A deep learning approach for real-time crash risk prediction at urban arterials
Goswami et al. A transformative deep learning framework for traffic modelling using sensors-based multi-resolution traffic data

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