A short-term traffic flow parameter prediction method integrating the impact of traffic events
By extracting traffic event impact features and using graph attention network in short-term traffic flow prediction, it solves the problem that existing technology cannot effectively consider the impact of traffic events, and achieves high-precision and simple traffic flow prediction, which is better than traditional methods. .
Patent Information
- Application Number
- CN202111167006.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-01
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2041-10-01
AI Technical Summary
Existing short-term traffic flow prediction methods fail to effectively consider the impact of various traffic events, resulting in prediction complexity and uncertainty, and difficulty in operation. Most methods need to record actual traffic events, which affects the accuracy of predictions. .
By obtaining traffic flow parameter data, we determine whether there are temporal and spatial changes that exceed the threshold, extract the feature of "whether it is affected by traffic events", and use the graph attention network (GAT) to make predictions, taking into account the impact of the road network structure on traffic flow. Construct a short-term traffic flow parameter prediction model containing traffic event impact labels.
It improves the prediction accuracy and can accurately identify all events that affect traffic flow, including small events, improves the simplicity of operation, avoids dependence on actual event records, and the prediction effect is better than traditional methods.
Smart Images

Figure CN114037115B
Abstract
Description
Technical Field
[0001] The invention relates to a short-term traffic flow parameter prediction method integrating the influence of traffic events, and belongs to the field of intelligent transportation. Background Art
[0002] Traffic flow prediction is an important issue in intelligent transportation, and has a research history of more than 20 years. In short-term traffic flow parameter prediction, traffic flow parameters (flow rate, speed) are predicted. Traffic flow from a few seconds to a few hours can be used as a prediction target. Short-term prediction of traffic flow parameters helps traffic management agencies to guide and control traffic flow in a timely manner with appropriate plans, and can also serve as a technical basis for vehicle navigation.
[0003] Existing research on traffic flow prediction focuses on short-term prediction. There are a considerable number of literatures on short-term traffic flow prediction. In recent years, scholars have conducted a lot of research in the field of short-term traffic flow prediction. At present, the widely used models include regression prediction method, neural network prediction method, Kalman filter method, historical mean method, time series method, etc. However, these prediction methods do not consider the impact of various traffic events separately, and under different traffic events, traffic flow will show different complexity and uncertainty. Therefore, it is not easy to make accurate predictions.
[0004] In addition, there are not many existing short-term traffic flow studies that consider the impact of traffic events alone, and most of them need to record the actual occurrence of traffic events (and often only record major traffic accidents, etc.), including the location of the occurrence, the time of occurrence, the time when the event is handled, etc. Not only has a set of specific and standardized processes not been formed, but the actual operation is difficult. Summary of the invention
[0005] In order to solve the problems existing in the background technology, the present invention proposes a short-term traffic flow parameter prediction method that integrates the influence of traffic events. The basic idea of this method is to obtain the data of traffic flow parameters, and by judging whether the traffic flow parameters have changed beyond the threshold in time and space, extract the feature of "whether it is affected by traffic events" from the traffic flow parameter data itself, and on this basis, use the graph attention network (GAT) to make predictions to consider the influence of the road network structure on the traffic flow parameters.
[0006] This is achieved using the following technical solutions:
[0007] A method for predicting short-term traffic flow parameters integrating the impact of traffic events comprises the following steps:
[0008] c1. Collect traffic flow parameter data;
[0009] c2. Obtaining the collection location information of traffic flow parameter data;
[0010] c3. Defining whether the traffic flow parameter data is "affected by traffic events" is to determine whether the occupancy data of each data collection device at each time interval has changed beyond the threshold in time and space, under the premise of selecting the traffic flow parameter as occupancy;
[0011] c4. Mark the traffic incident impact label;
[0012] c5. Using the traffic flow parameter data including the traffic event impact labels as input, a short-term traffic flow parameter prediction model is constructed;
[0013] c6. Use the constructed model to predict short-term traffic flow parameters.
[0014] In the above technical solution, further, in step c1:
[0015] The traffic flow parameters are flow, speed, and occupancy rate, and the data needs to be data for N consecutive days for two months or more;
[0016] The method for collecting traffic flow parameter data is: recording the vehicle flow, average speed and occupancy rate at the data collection location at a certain time interval, and the time interval is 5-30 minutes.
[0017] Furthermore, in step c2, the acquisition position information is the distance between every two data acquisition devices having a connection relationship, which is obtained through the stake number information of the data acquisition devices.
[0018] Furthermore, in step c3, the traffic flow parameter data "whether it is affected by the traffic event" is defined as follows:
[0019] Referring to the California algorithm, for the occupancy data of any time interval of any data collection device, in terms of time, compare the occupancy of the time interval with the occupancy of the previous time interval of the same data collection device; in terms of space, compare the occupancy of the time interval with the occupancy of the upstream and downstream data collection devices in the time interval, and set thresholds in both time and space dimensions;
[0020] For each data collection device at each time interval, if the changes in its occupancy data in time and space exceed the threshold, it is considered that the corresponding traffic flow parameter data is the result of the traffic event, that is, it is affected by the traffic event; conversely, if the changes in its occupancy data in time or space do not exceed the threshold, it is considered that the corresponding traffic flow parameter data is not affected by the traffic event.
[0021] Furthermore, the step c4 is specifically as follows:
[0022] c41. Let the time interval serial number [1,2,3,...,t,...,m] and the data collection device serial number [1,2,3,...,i,…,n], then the occupancy data in the traffic flow parameters of any time interval of any data collection device can be expressed as OCC(i,t);
[0023] c42. In space, by comparing with the upstream data acquisition device, we can obtain the absolute difference between the target data acquisition device and the upstream data acquisition device, OCCDF1, and the ratio of this absolute difference to the data acquisition device's occupancy rate, OCCRDF1:
[0024] OCCDF1=|OCC(i,t)-OCC(i-1,t)|
[0025]
[0026] If the target data acquisition device is connected to multiple upstream data acquisition devices, change OCC(i-1,t) to the sum of the occupancy rates of the multiple upstream data acquisition devices in time interval t;
[0027] c43. In space, compare with the downstream data acquisition device to obtain the absolute difference OCCDF2 between the target data acquisition device and the downstream data acquisition device occupancy rate, as well as the ratio of this absolute difference to the occupancy rate of the data acquisition device OCCRDF2:
[0028] OCCDF2=|OCC(i,t)-OCC(i+1,t)|
[0029]
[0030] If the target data acquisition device is connected to multiple downstream data acquisition devices, change OCC(i+1,t) to the sum of the occupancy rates of the multiple downstream data acquisition devices in time interval t;
[0031] c44. In terms of time, compared with the previous time interval, the ratio of the absolute difference between the target time interval and the previous time interval occupancy rate to the previous time interval occupancy rate DOCCTD is obtained:
[0032]
[0033] c45. Set thresholds K1, K2, K3, K4, K5;
[0034] c46. If the five conditions of OCCDF1≥K1, OCCRDF1≥K2, OCCDF3≥K3, OCCRDF2≥K4, and DOCCTD≥K5 are met at the same time, it is determined that the traffic flow parameter data of the target collection device at the target time interval is affected by the traffic event. On the contrary, if any of the five conditions is not met, it is determined that the traffic flow parameter data of the target collection device at the target time interval is not affected by the traffic event.
[0035] c47. Add a traffic event impact label, mark each time interval for each data collection device, and mark the time intervals not affected by traffic events and those affected by traffic events as 0 and 1 respectively in the label.
[0036] Furthermore, step c5 is specifically as follows:
[0037] c51. Construct a short-term traffic flow parameter prediction model, which uses a graph attention network (GAT);
[0038] c52, input data, the first part of the input data is the traffic flow parameter data obtained in step c1 and the traffic event impact label data obtained in step c4, and the second part of the input is the data collection location information obtained in step c2;
[0039] c53. Training model
[0040] c531. Rationally divide the input data into training set and test set;
[0041] c532. For the training set, use the first x traffic flow parameter data of all data collection devices and the corresponding labeled data of the first x traffic event impact labels to predict the traffic flow parameter data of the target time interval in all data collection devices and perform model training;
[0042] c533. After the model training is completed, the test set data is used to verify the model.
[0043] The present invention has the following beneficial effects:
[0044] The present invention has significant practical significance. It takes into account all traffic events including traffic accidents, temporary parking, etc. that may affect the traffic flow parameter data. Because in general, some traffic events may not be recorded, resulting in their impact being ignored, and the accuracy of the prediction will be reduced. This problem is avoided by identifying the impact of traffic events through the traffic flow parameter data itself.
[0045] The method of the present invention has excellent prediction effect and high prediction accuracy, which is superior to many existing benchmark methods.
[0046] The present invention has strong operability and can mark the impact labels of traffic events through the traffic flow parameter data itself without recording the actual occurrence of the events, thereby greatly improving the convenience. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is the overall framework of the method of the present invention;
[0048] Figure 2 Label the box diagram for the labels;
[0049] Figure 3 The prediction box diagram. DETAILED DESCRIPTION
[0050] As shown in the attached figure of the instruction manual Figure 1 The overall framework of the method of the present invention is a method for predicting short-term traffic flow parameters integrating the impact of traffic events, comprising the following steps:
[0051] c1. Collect traffic flow parameter data;
[0052] c2. Obtaining the collection location information of traffic flow parameter data;
[0053] c3. Defining whether the traffic flow parameter data is "affected by traffic events" is to determine whether the occupancy data of each data collection device at each time interval has changed beyond the threshold in time and space, under the premise of selecting the traffic flow parameter as occupancy;
[0054] c4. Mark the traffic incident impact label;
[0055] c5. Using the traffic flow parameter data including the traffic event impact labels as input, a short-term traffic flow parameter prediction model is constructed;
[0056] c6. Use the constructed model to predict short-term traffic flow parameters.
[0057] In step c1:
[0058] The traffic flow parameters are flow, speed, and occupancy rate, and the data needs to be data for N consecutive days for two months or more;
[0059] The method for collecting traffic flow parameter data is: recording the vehicle flow, average speed and occupancy rate at the data collection location at a certain time interval, and the time interval is 5-30 minutes.
[0060] In step c2, the acquisition position information is the distance between every two data acquisition devices that are connected, and is obtained through the stake number information of the data acquisition devices.
[0061] In step c3, the traffic flow parameter data "whether it is affected by traffic events" is defined as follows:
[0062] Referring to the California algorithm, for the occupancy data of any time interval of any data collection device, in terms of time, compare the occupancy of the time interval with the occupancy of the previous time interval of the same data collection device; in terms of space, compare the occupancy of the time interval with the occupancy of the upstream and downstream data collection devices in the time interval, and set thresholds in both time and space dimensions;
[0063] For each data collection device at each time interval, if the changes in its occupancy data in time and space exceed the threshold, it is considered that the corresponding traffic flow parameter data is the result of the traffic event, that is, it is affected by the traffic event; conversely, if the changes in its occupancy data in time or space do not exceed the threshold, it is considered that the corresponding traffic flow parameter data is not affected by the traffic event.
[0064] Step c4 is specifically as follows:
[0065] c41. Let the time interval serial number [1,2,3,…,t,…,m] and the data collection device serial number [1,2,3,…,i,…,n], then the occupancy data in the traffic flow parameters of any time interval of any data collection device can be expressed as OCC(i,t);
[0066] c42. In space, by comparing with the upstream data acquisition device, we can obtain the absolute difference between the target data acquisition device and the upstream data acquisition device, OCCDF1, and the ratio of this absolute difference to the data acquisition device's occupancy rate, OCCRDF1:
[0067] OCCDF1=|OCC(i,t)-OCC(i-1,t)|
[0068]
[0069] If the target data acquisition device is connected to multiple upstream data acquisition devices, change OCC(i-1,t) to the sum of the occupancy rates of the multiple upstream data acquisition devices in time interval t;
[0070] c43. In space, compare with the downstream data acquisition device to obtain the absolute difference OCCDF2 between the target data acquisition device and the downstream data acquisition device occupancy rate, as well as the ratio of this absolute difference to the occupancy rate of the data acquisition device OCCRDF2:
[0071] OCCDF2=|OCC(i,t)-OCC(i+1,t)|
[0072]
[0073] If the target data acquisition device is connected to multiple downstream data acquisition devices, change OCC(i+1,t) to the sum of the occupancy rates of the multiple downstream data acquisition devices in time interval t;
[0074] c44. In terms of time, compared with the previous time interval, the ratio of the absolute difference between the target time interval and the previous time interval occupancy rate to the previous time interval occupancy rate DOCCTD is obtained:
[0075]
[0076] c45. Set thresholds K1, K2, K3, K4, K5;
[0077] c46. If the five conditions of OCCDF1≥K1, OCCRDF1≥K2, OCCDF3≥K3, OCCRDF2≥K4, and DOCCTD≥K5 are met at the same time, it is determined that the traffic flow parameter data of the target collection device at the target time interval is affected by the traffic event. On the contrary, if any of the five conditions is not met, it is determined that the traffic flow parameter data of the target collection device at the target time interval is not affected by the traffic event.
[0078] c47. Add a traffic event impact label, and mark each time interval of each data collection device. The labels that are not affected by traffic events and those that are affected by traffic events are marked as 0 and 1 respectively. The label marking block diagram is shown in the attached figure of the specification. Figure 2 shown.
[0079] Step c5 is specifically as follows:
[0080] c51. Construct a short-term traffic flow parameter prediction model, which uses a graph attention network (GAT);
[0081] c52, input data, the first part of the input data is the traffic flow parameter data obtained in step c1 and the traffic event impact label data obtained in step c4, and the second part of the input is the data collection location information obtained in step c2;
[0082] c53. Training model
[0083] c531. Rationally divide the input data into training set and test set;
[0084] c532. For the training set, use the first x traffic flow parameter data of all data collection devices and the corresponding labeled data of the first x traffic event impact labels to predict the traffic flow parameter data of the target time interval in all data collection devices and perform model training;
[0085] c533. After the model training is completed, the model is verified using the test set data. The prediction block diagram is shown in the attached figure of the manual. Figure 3shown.
Claims
1. A short-term traffic flow parameter prediction method integrating the impact of traffic events, Features The method comprises the following steps: c1. Collect traffic flow parameter data; c2. Obtaining the collection location information of traffic flow parameter data; c3. Defining whether the traffic flow parameter data is "affected by traffic events" is to determine whether the occupancy data of each data collection device at each time interval has changed beyond the threshold in time and space, under the premise of selecting the traffic flow parameter as occupancy; c4. Mark the traffic incident impact label; c5. Using the traffic flow parameter data including the traffic event impact labels as input, a short-term traffic flow parameter prediction model is constructed; c6. Use the constructed model to predict short-term traffic flow parameters; In step c3, the traffic flow parameter data "whether it is affected by traffic events" is defined as follows: Referring to the California algorithm, for the occupancy data of any time interval of any data collection device, in terms of time, compare the occupancy of the time interval with the occupancy of the previous time interval of the same data collection device; in terms of space, compare the occupancy of the time interval with the occupancy of the upstream and downstream data collection devices in the time interval, and set thresholds in both time and space dimensions; For each time interval of each data collection device, if the changes in its occupancy data in time and space exceed the threshold, it is considered that the corresponding traffic flow parameter data is the result of the traffic event, that is, it is affected by the traffic event; conversely, if the changes in its occupancy data in time or space do not exceed the threshold, it is considered that the corresponding traffic flow parameter data is not affected by the traffic event; The step c4 is specifically as follows: c41. Let the time interval serial number [1,2,3,…,t,…,m] and the data collection device serial number [1,2,3,…,i,…,n], then the occupancy data in the traffic flow parameters of any time interval of any data collection device can be expressed as OCC(i,t); c42. In space, compare with the upstream data acquisition device to obtain the absolute difference between the target data acquisition device and the upstream data acquisition device occupancy rate OCCDF 1 , and the ratio of this absolute difference to the occupancy rate of the data acquisition device OCCRDF 1 : OCCDF 1 =OCC(i,t)-OCC(i-1,t) If the target data acquisition device is connected to multiple upstream data acquisition devices, change OCC(i-1,t) to the sum of the occupancy rates of the multiple upstream data acquisition devices in time interval t; c43. In space, compare with the downstream data acquisition device to obtain the absolute difference between the target data acquisition device and the downstream data acquisition device occupancy rate OCCDF 2 , and the ratio of this absolute difference to the occupancy rate of the data acquisition device OCCRDF 2 : OCCDF 2 =OCC(i,t)-OCC(i+1,t) If the target data acquisition device is connected to multiple downstream data acquisition devices, change OCC(i+1,t) to the sum of the occupancy rates of the multiple downstream data acquisition devices in time interval t; c44. In terms of time, compared with the previous time interval, the ratio of the absolute difference between the target time interval and the previous time interval occupancy rate to the previous time interval occupancy rate DOCCTD is obtained: c45. Set threshold K 1 , K 2 , K 3 , K 4 , K 5 ; c46. If OCCDF 1 ≥K 1 , OCCRDF 1 ≥K 2 , OCCDF 3 ≥K 3 , OCCRDF 2 ≥K 4 , DOCCTD≥K 5 If these five conditions are met at the same time, it is determined that the traffic flow parameter data of the target collection device at the target time interval is affected by the traffic event. Conversely, if any of these five conditions is not met, it is determined that the traffic flow parameter data of the target collection device at the target time interval is not affected by the traffic event. c47. Add a traffic event impact label, mark each time interval of each data collection device, and mark the time intervals not affected by traffic events and those affected by traffic events as 0 and 1 respectively in the label; Step c5 is specifically as follows: c51. Construct a short-term traffic flow parameter prediction model, which uses a graph attention network; c52, input data, the first part of the input data is the traffic flow parameter data obtained in step c1 and the traffic event impact label data obtained in step c4, and the second part of the input is the data collection location information obtained in step c2; c53. Training model c531. Rationally divide the input data into training set and test set; c532. For the training set, use the first x traffic flow parameter data of all data collection devices and the corresponding labeled data of the first x traffic event impact labels to predict the traffic flow parameter data of the target time interval in all data collection devices and perform model training; c533. After the model training is completed, the test set data is used to verify the model.
2. According to the method for predicting short-term traffic flow parameters integrating the impact of traffic events as described in claim 1, It is characterized in that In step c1: The traffic flow parameters are flow, speed, and occupancy rate, and the data needs to be data for N consecutive days for two months or more; The method for collecting traffic flow parameter data is: recording the vehicle flow, average speed and occupancy rate at the data collection location at a certain time interval.
3. According to claim 1, the method for predicting short-term traffic flow parameters integrating the impact of traffic events, It is characterized in that In step c2, the acquisition position information is the distance between every two data acquisition devices that are connected, and is obtained through the stake number information of the data acquisition devices.
