Traffic flow short-term prediction method

By constructing a short-term traffic flow prediction model based on long short-term memory network and classifier, and combining a variety of data factors, the problem of insufficient traffic flow prediction accuracy and real-time performance in the existing technology is solved, and more accurate and timely traffic flow is achieved. Congestion risk assessment and display significantly improves the efficiency of traffic management.

CN118609344AInactive Publication Date: 2024-09-06HUAIHUA UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410390511.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-02
Publication Date
2024-09-06
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing short-term traffic flow prediction methods are difficult to fully consider multiple influencing factors when processing complex traffic flow data, resulting in insufficient accuracy and real-time prediction results, and cannot meet actual traffic management needs.

Method used

A short-term traffic flow prediction model based on long short-term memory network and classifier is used, combined with historical traffic data and climate data, and through data cleaning and standardization processing, traffic jam risks are predicted in real time, and the results are displayed on the map with color markings.

Benefits of technology

It improves the accuracy and real-time response capabilities of traffic flow prediction, can reflect changes in traffic conditions in a timely manner, reduces the probability of traffic jams, and significantly improves the efficiency and accuracy of traffic management.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118609344A
    Figure CN118609344A
Patent Text Reader

Abstract

The invention discloses a traffic flow short-time prediction method, and relates to the technical field of intelligent traffic. The method comprises the following steps: acquiring a target area map and traffic related data in a set time period; selecting a predicted intersection in the target area map, and inputting the traffic related data into a traffic flow short-time prediction model to obtain a current jam risk assessment result; the traffic flow short-term prediction model is constructed according to a long and short-term memory network and a classifier; the jam risk assessment result comprises smoothness, congestion and jam; displaying the current jam risk assessment result on the target area map in a set color; the set colors comprise green, yellow and red. According to the invention, the current traffic road condition can be predicted in time, and the traffic jam probability is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of intelligent transportation technology, and in particular to a short-term prediction method for traffic flow. Background Art

[0002] Existing prediction methods are often based on a single mathematical model or statistical method. When dealing with complex traffic flow data, these models are difficult to fully consider multiple influencing factors, such as weather, holidays, changes in road conditions, etc. Therefore, the accuracy of the prediction results is often limited and cannot meet the needs of actual traffic management.

[0003] Moreover, the existing short-term traffic flow prediction technology is insufficient in terms of real-time performance. Due to the dynamic characteristics of traffic flow, the prediction model needs to be able to respond quickly to changes in traffic conditions and update the prediction results in a timely manner. However, the existing prediction models are often complex in calculation and slow in processing, making it difficult to reflect changes in traffic flow in real time.

[0004] Therefore, the existing short-term traffic flow prediction technology has obvious deficiencies in prediction accuracy and real-time performance. Summary of the invention

[0005] The purpose of the present invention is to provide a method for short-term prediction of traffic flow, which can timely predict the current traffic conditions and reduce the probability of traffic jam.

[0006] To achieve the above object, the present invention provides the following solutions:

[0007] A traffic flow short-term prediction method, comprising:

[0008] Obtain target area map and traffic related data within a set time period;

[0009] A predicted intersection is selected in the target area map, and the traffic-related data is input into a short-term traffic flow prediction model to obtain a current congestion risk assessment result; the short-term traffic flow prediction model is constructed based on a long short-term memory network and a classifier; the congestion risk assessment result includes smooth, crowded and blocked;

[0010] The current congestion risk assessment result is displayed at the selected intersection on the target area map in a set color; the set color includes green, yellow and red.

[0011] Optionally, the traffic-related data includes historical traffic data and climate data of the target intersection; the historical traffic data includes traffic flow, speed and density; the climate data includes temperature, humidity, wind speed, precipitation, sunny days, cloudy days and holidays.

[0012] Optionally, the training process of the traffic flow short-term prediction model includes:

[0013] Acquire training data; the training data includes training maps, traffic training data and corresponding congestion risk assessment results;

[0014] Build an initial prediction model;

[0015] The training data is input into the initial prediction model, training is performed with the goal of minimizing the loss between the model output result and the congestion risk assessment result in the training data, and the trained model is determined as the traffic flow short-term prediction model.

[0016] Optionally, the loss function in the training process adopts Huber loss.

[0017] Optionally, before inputting the traffic-related data into the traffic flow short-term prediction model, the method further includes: sequentially performing data cleaning and data standardization processing on the traffic-related data.

[0018] Optionally, the data cleaning specifically includes: removing outliers and missing values, smoothing the data, and eliminating noise interference; the data standardization specifically includes: standardizing the data to eliminate the influence of different dimensions on the model.

[0019] Optionally, a predicted intersection is selected in the target area map, and the traffic-related data is input into a traffic flow short-term prediction model to obtain a current congestion risk assessment result, including:

[0020] A predicted intersection is selected in the target area map, and the traffic-related data is input into a short-term traffic flow prediction model. The traffic flow at the current intersection is first determined through a long short-term memory network, and then the traffic flow is classified using a classifier to obtain a current congestion risk assessment result.

[0021] Optionally, displaying the current congestion risk assessment result at a selected intersection on the target area map in a set color specifically includes:

[0022] When the output of the congestion risk assessment result is smooth, the selected intersection and the roads connected to the intersection are marked in green;

[0023] When the output of the congestion risk assessment result is congestion, a yellow mark is used for the selected intersection and the roads connected to the intersection;

[0024] When the output of the congestion risk assessment result is congestion, the selected intersection and the roads connected to the intersection are marked in red.

[0025] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:

[0026] The present invention discloses a method for short-term prediction of traffic flow, which includes obtaining a target area map and traffic-related data within a set time period; selecting a predicted intersection in the target area map, inputting the traffic-related data into a short-term prediction model for traffic flow, and obtaining a current congestion risk assessment result; the short-term prediction model for traffic flow is constructed based on a long short-term memory network and a classifier; the congestion risk assessment result includes smooth, crowded and congested; the current congestion risk assessment result is displayed on the target area map in a set color; the set color includes green, yellow and red. The present invention can timely predict the current traffic conditions and reduce the probability of traffic congestion. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0028] Figure 1 It is a schematic diagram of the flow chart of the short-term traffic flow prediction method of the present invention. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0030] The purpose of the present invention is to provide a method for short-term prediction of traffic flow, which can timely predict the current traffic conditions and reduce the probability of traffic jam.

[0031] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0032] like Figure 1 As shown, the present invention provides a method for short-term traffic flow prediction, comprising:

[0033] Step 100: Obtain a map of the target area and traffic-related data within a set time period. The traffic-related data includes historical traffic data and climate data of the target intersection; the historical traffic data includes traffic flow, speed and density; the climate data includes temperature, humidity, wind speed, precipitation, sunny days, cloudy days and holidays.

[0034] Step 200: Select a predicted intersection in the target area map, input the traffic-related data into a short-term traffic flow prediction model, and obtain a current congestion risk assessment result; the short-term traffic flow prediction model is constructed based on a long short-term memory network and a classifier; the congestion risk assessment result includes smooth, congested and blocked.

[0035] The training process of the traffic flow short-term prediction model includes:

[0036] Acquire training data; the training data includes training maps, traffic training data and corresponding congestion risk assessment results; construct an initial prediction model; input the training data into the initial prediction model, train with the goal of minimizing the loss between the model output result and the congestion risk assessment result in the training data, and determine the trained model as a traffic flow short-term prediction model. In this embodiment, the loss function in the specific training process adopts Huber loss.

[0037] As a specific implementation method, before the traffic-related data is input into the traffic flow short-term prediction model, it also includes: performing data cleaning and data standardization processing on the traffic-related data in sequence. The data cleaning specifically includes: removing abnormal values ​​and missing values, smoothing the data, and eliminating noise interference; the data standardization processing specifically includes: standardizing the data to eliminate the influence of different dimensions on the model.

[0038] Furthermore, after preprocessing the data according to the above method, the process of inputting the data into the model is as follows: selecting a predicted intersection in the target area map, and inputting the traffic-related data into the short-term traffic flow prediction model, first determining the traffic flow at the current intersection through a long short-term memory network, and then using a classifier to classify the traffic flow to obtain the current congestion risk assessment result.

[0039] Step 300: Display the current congestion risk assessment result at the selected intersection on the target area map in a set color; the set color includes green, yellow and red.

[0040] The judgment process is:

[0041] When the output of the congestion risk assessment result is smooth, green is used to mark the selected intersection and the roads connected to the intersection; when the output of the congestion risk assessment result is congested, yellow is used to mark the selected intersection and the roads connected to the intersection; when the output of the congestion risk assessment result is congested, red is used to mark the selected intersection and the roads connected to the intersection.

[0042] Based on the above technical solution, the following specific implementation steps are provided.

[0043] This solution aims to achieve short-term traffic flow prediction. By collecting historical traffic flow data and using machine learning algorithms to build a prediction model, it can accurately predict future traffic flow conditions. The prediction results can be used in traffic management, road condition optimization, etc., to improve traffic operation efficiency and alleviate traffic congestion.

[0044] First, data collection and processing:

[0045] Data source: Collect historical traffic flow data on major roads in the city, including traffic volume, speed, density, etc., as well as weather, holidays and other related data.

[0046] Data cleaning: remove outliers and missing values, smooth the data, and eliminate noise interference.

[0047] Data standardization: Standardize traffic flow data to eliminate the impact of different dimensions on the data model and improve prediction accuracy.

[0048] Secondly, feature selection and extraction are performed:

[0049] Time characteristics: Extract the time characteristics of hours, days, and weeks to obtain the periodic change patterns of traffic flow.

[0050] Weather characteristics: Consider the impact of weather factors such as temperature, humidity, wind speed, and precipitation on traffic flow.

[0051] Holiday characteristics: mark whether it is a holiday and consider the special impact of holidays on traffic flow.

[0052] Traffic flow characteristics: Extract historical traffic flow, speed, density and other characteristics as important inputs to the prediction model.

[0053] Then, implement model building and training:

[0054] Model selection: Long short-term memory network (LSTM) and classifier are used to build the prediction model because LSTM can capture long-term dependencies in time series data and is suitable for traffic flow prediction.

[0055] Model construction: A traffic flow prediction model is built based on LSTM. The input includes time characteristics, weather characteristics, holiday characteristics and traffic flow characteristics, and the output is the predicted traffic flow data.

[0056] Model training: Use historical data to train the LSTM model, adjust model parameters, and optimize prediction performance.

[0057] Model evaluation: Use methods such as cross-validation to evaluate the predictive performance of the model to ensure the accuracy and stability of the model.

[0058] Finally, get the prediction and result output:

[0059] Real-time prediction: Use the trained LSTM model to make real-time predictions of traffic flow in the future.

[0060] Result output: The forecast results are output in the form of charts or reports to show the traffic flow conditions in the future, including key indicators such as traffic flow and speed.

[0061] Result analysis: Conduct in-depth analysis of the forecast results to discover the changing patterns and trends of traffic flow and provide decision support for traffic management departments.

[0062] In specific applications, the solution can also be implemented and optimized, mainly including: Implementation plan: clarify the implementation steps and time nodes of the solution to ensure that the solution is carried out as planned. Model optimization: according to the prediction results and actual conditions, the LSTM model is continuously optimized to improve the prediction accuracy and stability. Data update: regularly collect new traffic flow data and update the model training data to adapt to changes in traffic flow. Extended application: apply this solution to more cities and roads to realize the application of short-term traffic flow prediction.

[0063] As another specific implementation, taking a specific application process as an example, the following content is provided:

[0064] In order to improve the efficiency and accuracy of traffic flow management in the urban traffic management center, it was decided to introduce a traffic flow short-term prediction method based on long short-term memory network and classifier. The implementation process of this method is as follows:

[0065] First, the data collection team of the Traffic Management Center obtained a detailed map of the target area (such as the city center) and collected traffic-related data at each intersection in the area for the past month. These data not only include historical traffic data such as traffic flow, speed and density at each intersection, but also climate data for the same period, such as temperature, humidity, wind speed, precipitation, as well as daily weather conditions (sunny, cloudy) and holiday information.

[0066] Next, the data preprocessing team carefully processed the raw data. They first removed outliers and missing values ​​in the data to ensure the quality of the data input into the model. Then, they processed the data using a smoothing algorithm to eliminate noise interference. Finally, they standardized the data so that data of different dimensions could be compared and analyzed on the same scale.

[0067] After completing the data preprocessing, the construction and training of the short-term traffic flow prediction model began. The technical team of the Traffic Management Center first built an initial prediction model based on the basic principles of long short-term memory networks and classifiers. Then, they used the collected training data (including training maps, traffic training data, and corresponding congestion risk assessment results) to train the model. During the training process, they used the Huber loss function as the optimization target, and through continuous iteration and adjustment of model parameters, the loss between the output results of the model and the congestion risk assessment results in the training data was minimized.

[0068] After the model training was completed, the Traffic Management Center began to use the model for real-time short-term traffic flow prediction. Whenever they need to predict the traffic conditions at a certain intersection, they only need to select the intersection on the target area map and input the relevant traffic data into the prediction model. The model will first determine the traffic flow at the current intersection through the long short-term memory network, then use the classifier to classify the traffic flow, and finally output a congestion risk assessment result.

[0069] Finally, the traffic management center displays the prediction results on the map in the set color. If the prediction result is smooth, the selected intersection and the roads connected to the intersection will be marked in green; if the prediction result is congestion, it will be marked in yellow; if the prediction result is blocked, it will be marked in red. In this way, the staff of the traffic management center can intuitively understand the current and future traffic conditions, so as to formulate more effective traffic management strategies.

[0070] By implementing this short-term traffic flow prediction method based on long short-term memory networks and classifiers, the large city traffic management center has significantly improved the efficiency and accuracy of traffic management, effectively alleviated traffic congestion problems, and improved citizens' travel experience.

[0071] Therefore, this embodiment can achieve the following beneficial effects:

[0072] First, this method significantly improves the accuracy and reliability of traffic flow prediction. By introducing long short-term memory networks and classifiers to build a prediction model, we can comprehensively consider multiple factors such as historical traffic data and climate data, and deeply explore the changing patterns of traffic flow. This makes our prediction results closer to the actual traffic conditions and can provide more accurate information support for traffic management departments.

[0073] Secondly, this method has real-time response capabilities and can quickly adapt to changes in traffic conditions. Traditional prediction methods are often complex in calculation and slow in processing, making it difficult to reflect changes in traffic flow in real time. This method uses efficient algorithms and model structures to complete data processing and prediction calculations in a short time, ensuring the real-time and effectiveness of the prediction results.

[0074] In addition, this method can also conduct in-depth mining and analysis of traffic flow data. By learning and training a large amount of historical data, our prediction model can automatically extract valuable information from traffic flow data and discover the laws and trends hidden behind the data. This provides more decision-making basis for traffic management departments and helps to formulate more scientific and reasonable traffic management strategies.

[0075] Finally, the implementation of this method is simple and convenient, and it has wide applicability. We only need to obtain the map of the target area and the traffic-related data within the set time period to perform the prediction calculation. At the same time, our prediction results are displayed on the map in an intuitive color-coded manner, which makes it easy for traffic management departments to quickly understand the traffic conditions and take corresponding management measures. This makes this method not only suitable for traffic management centers in large cities, but also widely used in the field of traffic management in small and medium-sized cities, towns and other areas.

[0076] In summary, this short-term traffic flow prediction method provides strong technical support for traffic management departments by improving prediction accuracy, achieving real-time response, deeply mining data value, and simplifying implementation processes. It helps to optimize traffic flow, improve road use efficiency, and reduce traffic congestion, thereby creating a smoother and safer travel environment for the general public.

[0077] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0078] This article uses specific examples to illustrate the principles and implementation methods of the present invention. The above examples are only used to help understand the core idea of ​​the present invention. At the same time, for those skilled in the art, according to the idea of ​​the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.

Claims

1. A method for short-term traffic flow prediction, characterized in that: include: Obtain target area map and traffic related data within a set time period; A predicted intersection is selected in the target area map, and the traffic-related data is input into a short-term traffic flow prediction model to obtain a current congestion risk assessment result; the short-term traffic flow prediction model is constructed based on a long short-term memory network and a classifier; the congestion risk assessment result includes smooth, crowded and blocked; The current congestion risk assessment result is displayed at the selected intersection on the target area map in a set color; the set color includes green, yellow and red.

2. The method for short-term traffic flow prediction according to claim 1, characterized in that: The traffic-related data include historical traffic data and climate data of the target intersection; the historical traffic data include traffic flow, speed and density; the climate data include temperature, humidity, wind speed, precipitation, sunny days, cloudy days and holidays.

3. The method for short-term traffic flow prediction according to claim 1, characterized in that: The training process of the traffic flow short-term prediction model includes: Acquire training data; the training data includes training maps, traffic training data and corresponding congestion risk assessment results; Build an initial prediction model; The training data is input into the initial prediction model, training is performed with the goal of minimizing the loss between the model output result and the congestion risk assessment result in the training data, and the trained model is determined as the traffic flow short-term prediction model.

4. The method for short-term traffic flow prediction according to claim 3, characterized in that: The loss function in the training process adopts Huber loss.

5. The method for short-term traffic flow prediction according to claim 1, characterized in that: Before the traffic-related data is input into the traffic flow short-term prediction model, the method further includes: sequentially performing data cleaning and data standardization processing on the traffic-related data.

6. The method for short-term traffic flow prediction according to claim 5, characterized in that: The data cleaning specifically includes: removing outliers and missing values, smoothing the data, and eliminating noise interference; the data standardization specifically includes: standardizing the data to eliminate the influence of different dimensions on the model.

7. The method for short-term traffic flow prediction according to claim 1, characterized in that: Select a predicted intersection in the target area map, input the traffic-related data into the traffic flow short-term prediction model, and obtain the current congestion risk assessment result, including: A predicted intersection is selected in the target area map, and the traffic-related data is input into a short-term traffic flow prediction model. The traffic flow at the current intersection is first determined through a long short-term memory network, and then the traffic flow is classified using a classifier to obtain a current congestion risk assessment result.

8. The method for short-term traffic flow prediction according to claim 1, characterized in that: The current congestion risk assessment result is displayed at the selected intersection on the target area map in a set color, specifically including: When the output of the congestion risk assessment result is smooth, the selected intersection and the roads connected to the intersection are marked in green; When the output of the congestion risk assessment result is congestion, a yellow mark is used for the selected intersection and the roads connected to the intersection; When the output of the congestion risk assessment result is congestion, the selected intersection and the roads connected to the intersection are marked in red.