The present invention belongs to the technical field of model calculation, and particularly relates to an urban-region road network vehicle-passage flow prediction method and system based on a ConvLSTM and BILSTM hybrid deep learning model.
In medium- and large-sized cities, a growth rate of the number of vehicles is much higher than the construction progress of transportation facilities, so the construction of urban transportation infrastructure cannot meet the increasing traffic demand, resulting in an imbalance between supply and demand of urban transportation, and the contradiction has become increasingly acute, causing such social problems as economic losses, casualties, and deterioration of ecological environment. Traffic congestion has become one of the important reasons hindering urban development. An important means to cope with urban traffic congestion is to accurately determine the traffic operation status based on real-time traffic information on the road network, and take scientific and reasonable traffic control measures to guide the traffic. Therefore, it is necessary to realize real-time and accurate traffic flow prediction, identify the traffic operation status of road network and predict road traffic operation status in advance, providing effective data support for real-time traffic control. The field of intelligent transportation research has become a hotspot.
With the rapid development of traffic electronic equipment, there are increasingly abundant road traffic survey methods, the accuracy of indicators is improved, and the indicator system is expanded. Traffic electronic equipment capable of collecting comprehensive information from large samples is widely used. A road high-definition camera checkpoint monitoring system is one of such traffic electronic equipment. Vehicle-passage flow data of the checkpoint can accurately identify the information of each vehicle passing through the checkpoint, and can accurately calculate traffic flow. It has the advantages of easy maintenance and strong applicability, has become an important data source for urban intelligent transportation and has been widely used in traffic state identification, playing an important role in traffic flow prediction. The existing main methods for traffic flow prediction and traffic state recognition on the basis of vehicle-passage flow data of the checkpoint have the shortcomings of insufficient data feature analysis and only applicable to a single road condition scenario.
Therefore, a new technical solution is needed to solve these problems.
An objective of the present invention: in order to overcome the problems of insufficient data feature analysis and only applicable to a single road condition scenario, the present invention provides an urban-region road network vehicle-passage flow prediction method and system based on a ConvLSTM and BILSTM hybrid deep learning model, so as to realize the prediction of traffic congestion.
Technical solution: in order to achieve the above objective, the present invention provides an urban-region road network vehicle-passage flow prediction method and system based on a hybrid deep learning model, including the following steps:
Further, the step S1 specifically includes: making statistics of vehicle-passage flow data of a checkpoint of each intersection during each period of time on different time scales, and calculating real-time vehicle-passage flow and cumulative vehicle-passage flow by using the traffic flow statistics module;
Further, the step S1 specifically includes:
Further, the spatial and temporal distribution feature analysis in the step S2 includes the temporal distribution periodic feature analysis, temporal distribution trend feature analysis, temporal distribution continuous feature analysis and spatial distribution correlation feature analysis.
Further, in the spatial and temporal distribution feature analysis in the step S2, the power spectral method is adopted to analyze the temporal distribution periodic feature of vehicle-passage flow data of the checkpoint; the DBEST model is adopted to analyze the temporal distribution trend feature of vehicle-passage flow data of the checkpoint; a time headway is calculated to analyze the temporal distribution continuous feature of vehicle-passage flow data of the checkpoint; and the correlation matrix method is adopted to analyze the spatial distribution correlation feature of vehicle-passage flow data of the checkpoint.
Further, the method for “constructing and training a ConvLSTM and BiLSTM hybrid deep learning model” in the step S3 includes the following steps:
Further, the prediction loss functions in the step S4 of the present embodiment are specifically:
Evaluation indicators include absolute mean error, root mean square error and mean absolute error percentage.
Further, the step S5 specifically includes:
The present invention further provides an urban-region road network vehicle-passage flow prediction system based on a ConvLSTM and BILSTM hybrid deep learning model, including a traffic flow statistics module, a checkpoint vehicle-passage flow data spatial-temporal distribution feature analysis module, a training module of an urban-region road network vehicle-passage flow prediction model, a prediction module of an urban-region road network vehicle-passage flow prediction model, and an urban-region road network traffic state pre-determination module; where the traffic flow statistics module is used for making statistics of vehicle-passage flow data of a checkpoint of each intersection during each period of time and calculating real-time vehicle-passage flow and cumulative vehicle-passage flow; the checkpoint vehicle-passage flow data spatial-temporal distribution feature analysis module is used for making visual analysis of temporal distribution periodic feature, trend feature, continuous feature and spatial distribution correlation feature of vehicle-passage flow data at the checkpoint; the training module of an urban-region road network vehicle-passage flow prediction model is used for constructing a ConvLSTM and BiLSTM hybrid deep learning model and training input data to form a stable and highly-fitting urban-region road network vehicle-passage flow prediction model; the prediction module of an urban-region road network vehicle-passage flow prediction model is used for inputting historical data related to the urban-region road network vehicle-passage flow that needs to be predicted, and bringing them into the model for prediction; and the urban-region road network traffic state pre-determination module is used for calculating a traffic flow variation degree, and identifying traffic state, so as to realize traffic state pre-determination.
Beneficial effects: compared with the prior art, the present invention explores the temporal and spatial correlation feature of different traffic checkpoints by analyzing the temporal and spatial feature of vehicle-passage data of the checkpoint, constructs a checkpoint traffic flow prediction model based on various checkpoints in a city, researches on the traffic state identification method, and converts the predicted traffic flow data into traffic state, thereby realizing the prediction of traffic congestion and overcoming the problems of insufficient data feature analysis and only applicable to a single road condition scenario, such that traffic management departments can be helped to perform dynamic management and scheduling on urban roads, perform optimal management on urban road networks on a global scale, and formulate management policies and management schemes, thereby providing effective data support for traffic managers and decision makers.
The present invention will be further described below in conjunction with accompanying drawings and specific embodiments. It should be understood that these embodiments are only intended to illustrate the present invention but not to limit the scope of the present invention. Various modifications in equivalent forms made by those skilled in the art after reading through the present invention should fall within the scope defined by the appended claims of the present invention.
The present invention provides an urban-region road network vehicle-passage flow prediction system based on a ConvLSTM and BiLSTM hybrid deep learning model, including a traffic flow statistics module, a checkpoint vehicle-passage flow data spatial-temporal distribution feature analysis module, a training module of an urban-region road network vehicle-passage flow prediction model, a prediction module of an urban-region road network vehicle-passage flow prediction model, and an urban-region road network traffic state pre-determination module; where the traffic flow statistics module is used for making statistics of vehicle-passage flow data of a checkpoint of each intersection during each period of time and calculating real-time vehicle-passage flow and cumulative vehicle-passage flow; the checkpoint vehicle-passage flow data spatial-temporal distribution feature analysis module is used for making visual analysis of temporal distribution periodic feature, trend feature, continuous feature and spatial distribution correlation feature of vehicle-passage flow data at the checkpoint; the training module of an urban-region road network vehicle-passage flow prediction model is used for constructing a ConvLSTM and BiLSTM hybrid deep learning model and training input data to form a stable and highly-fitting urban-region road network vehicle-passage flow prediction model; the prediction module of an urban-region road network vehicle-passage flow prediction model is used for inputting historical data related to the urban-region road network vehicle-passage flow that needs to be predicted, and bringing them into the model for prediction; and the urban-region road network traffic state pre-determination module is used for calculating a traffic flow variation degree, and identifying traffic state, so as to realize traffic state pre-determination.
Based on the above prediction system, the present invention provides an urban-region road network vehicle-passage flow prediction method based on a hybrid deep learning model, as shown in
In the present embodiment, the step S1 specifically includes the following steps:
The spatial and temporal distribution feature analysis in the step S2 of the present embodiment includes the temporal distribution periodic feature analysis, temporal distribution trend feature analysis, temporal distribution continuous feature analysis and spatial distribution correlation feature analysis.
In the spatial and temporal distribution feature analysis, the power spectral method is adopted to analyze the temporal distribution periodic feature of vehicle-passage flow data of the checkpoint, with the calculation formula as follows:
The DBEST model is adopted to analyze the temporal distribution trend feature of vehicle-passage flow data of the checkpoint, with the calculation formula as follows:
A time headway is calculated to analyze the temporal distribution continuous feature of vehicle-passage flow data of the checkpoint, where the time headway is the time interval between front ends of two consecutive vehicles passing through a certain section in a queue of vehicles traveling on the same lane. In the present embodiment, the time headway refers to the time interval between two vehicle passing events in each lane recorded at the checkpoint, with the calculation formula as follows:
The correlation matrix method is adopted to analyze the spatial distribution correlation feature of vehicle-passage flow data of the checkpoint.
In the step S3 of the present embodiment, relevant influence factor is selected in combination with the spatial and temporal distribution feature in the step S2, and a spearman coefficient between the vehicle-passage flow data of the checkpoint and the spatial and temporal influence factor is then calculated, with the calculation formula as follows:
In the step S3 of the present embodiment, the method for “constructing and training a ConvLSTM and BILSTM hybrid deep learning model” includes the following steps:
The prediction loss functions in the step S4 of the present embodiment are specifically:
In the present embodiment, the step S5 specifically includes the following steps:
The present embodiment further provides a computer storage medium having stored thereon computer program which, when being executed by a processor, implement the above method. The computer storage medium can be considered tangible and non-transitory. Non-limiting examples of the non-transitory tangible computer-readable medium include non-volatile memory circuits (such as flash memory circuits, erasable programmable read-only memory circuits, or masked read-only memory circuits), volatile memory circuits (such as static random access memory circuits or dynamic random access memory circuits), magnetic storage media (such as analog or digital magnetic tapes or hard disk drives), and optical storage media (such as CDs, DVDs, or Blu-ray discs), and the like. The computer program includes processor-executable instructions stored on at least one non-transitory tangible computer-readable medium. The computer program may further include or rely on stored data. The computer program may include a basic input/output system (BIOS) that interacts with the hardware of a special-purpose computer, device drivers that interacts with specific devices of the special-purpose computer, one or more operating systems, user applications, background services, background applications, and the like.
Those skilled in the art should understand that the examples of the present application may be provided as methods, systems, or computer program products, and therefore, the present application may employ full hardware examples, full software examples, or software and hardware combined examples. Moreover, the present application may take the form of a computer program product implemented on one or more computer usable storage media (including, but not limited to, disk memories, CD-ROM, optical memories, and the like) containing computer usable program codes.
The present invention is described with reference to flowcharts and/or block diagrams of methods, devices (systems), and computer program products according to the examples hereof. It should be understood that each flow and/or block in the flow diagrams and/or block diagrams and combinations of the flows and/or blocks in the flowcharts and/or block diagrams may be implemented by computer program instructions. These computer program instructions may be provided for a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing devices to produce a machine, such that instructions executed by the processor of the computer or other programmable data processing devices produce an apparatus used for implementing functions specified in one or more flows of the flowcharts and/or one or more blocks of the block diagrams.
These computer program instructions may also be stored in a computer readable memory that may guide a computer or other programmable data processing devices to work in a specific manner, such that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, and the instruction device implements functions specified in one or more flows of the flowcharts and/or one or more blocks of the block diagrams.
These computer program instructions may be loaded onto a computer or another programmable data processing device, such that a series of operations and steps are performed on the computer or other programmable device, thereby generating computer-implemented processing. Therefore, the instructions executed on the computer or other programmable device provide steps for implementing a specific function in one or more flows of the flowcharts and/or in one or more blocks of the block diagrams.
In the present embodiment, a comparative test is conducted between the above solution and the traditional solution. Taking an administrative district of a coastal city subjected to heavy congestion as an example, the present embodiment makes a prediction through the urban-region road network vehicle-passage flow prediction system based on a ConvLSTM and BiLSTM hybrid deep learning model in a scenario of synchronous prediction of complex road networks in the urban areas, and obtains the evaluation indicators as follows: the absolute average error of 26.3, the root mean square error of 34.7, the average absolute error percentage of 0.1, and the prediction accuracy up to 90%. However, when traditional statistical methods and traditional machine learning methods are used to predict the vehicle-passage flow prediction model of the urban-region road network, it is unable to give effective consideration to the temporal and spatial correlation among traffic flow monitoring points, in which case, the evaluation indicators are as follows: the absolute average error of 47.4, the root mean square error of 65.5, the average absolute error percentage of 0.18, and the prediction accuracy of 82% only. The comparison of various indicators and prediction accuracy fully demonstrates the effect of the present invention. By considering the temporal and spatial correlation feature of different checkpoints and synchronous prediction of multiple checkpoints, the present invention realizes real-time and efficient prediction of traffic flow of the urban-region road network.
Number | Date | Country | Kind |
---|---|---|---|
202110588265.8 | May 2021 | CN | national |
Filing Document | Filing Date | Country | Kind |
---|---|---|---|
PCT/CN2022/093053 | 5/16/2022 | WO |