WO2016095708A1 - Traffic flow prediction method, and prediction model generation method and device - Google Patents

Traffic flow prediction method, and prediction model generation method and device Download PDF

Info

Publication number
WO2016095708A1
WO2016095708A1 PCT/CN2015/096341 CN2015096341W WO2016095708A1 WO 2016095708 A1 WO2016095708 A1 WO 2016095708A1 CN 2015096341 W CN2015096341 W CN 2015096341W WO 2016095708 A1 WO2016095708 A1 WO 2016095708A1
Authority
WO
WIPO (PCT)
Prior art keywords
traffic flow
period
time
flow data
current
Prior art date
Application number
PCT/CN2015/096341
Other languages
French (fr)
Chinese (zh)
Inventor
吴跃进
Original Assignee
高德软件有限公司
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 高德软件有限公司 filed Critical 高德软件有限公司
Publication of WO2016095708A1 publication Critical patent/WO2016095708A1/en

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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16ZINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS, NOT OTHERWISE PROVIDED FOR
    • G16Z99/00Subject matter not provided for in other main groups of this subclass

Definitions

  • the present invention relates to the field of real-time traffic, and in particular, to a traffic flow prediction method, a prediction model generation method and apparatus.
  • the method of publishing real-time traffic flow data is to release real-time traffic data of the road (such as the driving speed of the road, etc.) at regular intervals (such as 5s, 10s, 30s, 1 minute or 2 minutes, etc.), which is released in the prior art.
  • the real-time traffic data is the real-time traffic situation of the current time road, but it cannot release the traffic flow data for a certain period of time in the future.
  • more and more users are more likely to know the traffic data of certain roads in advance in order to arrange the trips in advance. Therefore, the existing method of releasing real-time traffic flow data cannot meet the needs of users. .
  • the embodiments of the present invention provide a traffic flow prediction method, a prediction model generation method, and a device, to provide a manner for accurately predicting traffic flow.
  • the embodiment of the invention provides a traffic flow prediction method, which is specifically as follows:
  • the network model is trained to obtain a traffic flow prediction model for predicting traffic flow data for a subsequent period of the current time of the road according to historical traffic flow data of a previous time period of the current time of the road;
  • the historical traffic flow data of the previous time period of the current time is input into the traffic flow prediction model corresponding to the road to be predicted, and the traffic flow data of the latter time period of the current time is obtained.
  • a traffic flow prediction device comprising:
  • a training module configured to pre-prepare the preset neural network model according to the historical traffic flow data of the road, and obtain the traffic of the next time period of the current time according to the historical traffic flow data of the previous time period of the current time of the road.
  • Traffic flow prediction model for streaming data
  • a storage module configured to store a correspondence between the road and the traffic flow prediction model obtained by the training module
  • a historical traffic data obtaining module configured to acquire historical traffic flow data of a previous time period of the current time of the road to be predicted for the road to be predicted;
  • a traffic flow prediction model acquisition module configured to acquire a traffic flow prediction model corresponding to the road to be predicted from a correspondence between a road and a traffic flow prediction model prestored by the storage module;
  • the prediction module is configured to input the historical traffic flow data of the previous time period of the current time into the traffic flow prediction model corresponding to the road to be predicted, and obtain the traffic flow data of the latter time period of the current time.
  • the traffic flow prediction method and apparatus pre-prepare the preset neural network model according to the historical traffic flow data of the road, and obtain the historical traffic flow data of the previous time period of the current time of the road to predict the road.
  • a traffic flow prediction model of traffic flow data at a later time period of the current time; when it is required to predict traffic flow data for a future time period of the current time of the road to be predicted, acquiring a traffic flow prediction model corresponding to the road to be predicted, and
  • the historical traffic flow data of the previous time period of the current time of the road to be predicted is input into the traffic flow prediction model to obtain the traffic flow data of the future time period of the road to be predicted.
  • the neural network model has strong nonlinear prediction ability. Therefore, the neural network model is trained according to the historical traffic flow data of the road, and the traffic flow prediction model can be trained. It is more accurate to predict the traffic flow data of the road in the latter period of the current time according to the traffic flow data of the previous time of the current time of the road.
  • a traffic flow prediction model generation method includes:
  • Step a Obtain historical traffic flow data of consecutive P time periods of the road, wherein the durations of the P time periods are consistent, and the historical traffic flow data corresponding to each time period includes the same number of traffic data;
  • Step b taking the current traversal time period as the previous time period of the current time, inputting the historical traffic flow data corresponding to the current traversing time period as input data into the to-be-determined neural network model, and obtaining predicted traffic flow data of the latter time period of the current time.
  • Step c Obtain historical traffic flow data corresponding to a subsequent time period of the current time from the traffic flow data of the time period after the current traversed time period, and calculate predicted traffic flow data of the latter time period of the current time and the current time The variance value of historical traffic flow data for a period of time;
  • Step d determining whether the variance value is less than or equal to a preset first variance threshold, and if so, executing step e, if not, performing step f;
  • Step e determining the to-be-determined neural network model as a traffic flow prediction model corresponding to the road, and establishing a correspondence between the road and the traffic flow prediction model, and saving, ending the process;
  • Step f adjusting parameters of the to-be-determined neural network model according to the variance value
  • Step g Taking the next period of the current traversal period in the P periods as the current traversal period, and performing step b according to the pending neural network model after adjusting the parameters.
  • a traffic flow prediction model generating device includes:
  • a third acquiring unit configured to acquire historical traffic flow data of consecutive P time periods of the road, wherein the durations of the P time periods are consistent, and the historical traffic flow data corresponding to each time period includes the same number of traffic data;
  • a second traversal unit configured to traverse the consecutive P time periods
  • a second input unit configured to use the current traversal period as a previous period of the current time, and input the historical traffic flow data corresponding to the current traversed period as input data into the to-be-determined neural network model, to obtain a prediction of the current time period Traffic flow data;
  • a fourth acquiring unit configured to acquire historical traffic flow data corresponding to a subsequent time period of the current time from the traffic flow data of the time period after the current traversed time period;
  • a second variance value determining unit configured to calculate a variance value of the predicted traffic flow data of the latter time period of the current time and the historical traffic flow data of the latter time period of the current time;
  • a fourth determining unit configured to determine whether the variance value is less than or equal to a preset first variance threshold; if yes, triggering a second traffic flow prediction model determining unit; if not, triggering a second parameter adjusting unit;
  • a second traffic flow prediction model determining unit configured to determine the to-be-determined neural network model as a traffic flow prediction model corresponding to the road, and establish a correspondence between the road and the traffic flow prediction model, and save the relationship;
  • a second parameter adjustment unit configured to adjust parameters of the to-be-determined neural network model according to the variance value
  • the second triggering unit is configured to use the next time period of the current traversal period in the P time periods as the current traversal time period, and trigger the second input unit according to the to-be-determined neural network model after adjusting the parameter.
  • the method and device for generating a traffic flow prediction model trains a neural network model according to historical traffic flow data of the road to obtain a current traffic flow data of a previous time period of the current time of the road to predict the current road Traffic flow prediction model of traffic flow data in the latter period of time; because traffic flow data has strong nonlinearity and uncertainty, and neural network model has strong nonlinear prediction ability, therefore, according to the historical traffic of the road.
  • the flow data trains the neural network model, and the traffic flow prediction model obtained by the training can accurately predict the traffic flow data of the road in the latter period of the current time according to the traffic flow data of the previous time of the current time of the road.
  • FIG. 1 is a schematic diagram of a topology of a BP neural network according to an embodiment of the present invention
  • FIG. 2 is a schematic diagram of reverse transmission of BP algorithm error according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of a traffic flow prediction method according to Embodiment 1 of the present invention.
  • FIG. 4 is a flowchart of a method for obtaining a traffic flow prediction model corresponding to a road according to Embodiment 1 of the present invention
  • FIG. 5 is a schematic structural diagram of a traffic flow prediction apparatus according to Embodiment 3 of the present invention.
  • FIG. 6 is a schematic structural diagram of a training module of a traffic flow prediction apparatus according to Embodiment 3 of the present invention.
  • the preset neural network model is trained according to the historical traffic flow data of the road in advance, and the current time of the road can be predicted according to the historical traffic flow data of the previous time period of the current time of the road.
  • a traffic flow prediction model for traffic flow data in a later period when it is required to predict traffic flow data for a future period of the road to be predicted, obtaining a traffic flow prediction model corresponding to the road to be predicted, and the previous one of the road to be predicted
  • the historical traffic flow data of the time period is input into the traffic flow prediction model to obtain the traffic flow data of the future predicted time of the road to be predicted.
  • the neural network model since the traffic flow data has strong nonlinearity and uncertainty, and the neural network model has strong nonlinear prediction capability, the neural network model is trained according to the historical traffic flow data of the road.
  • the traffic flow prediction model obtained by the training can accurately predict the traffic flow data of the road in the latter period of the current time according to the traffic flow data of the previous time of the current time of the road.
  • a neural network model for example, BP (Error Back-Propagation Training) neural network model
  • BP Error Back-Propagation Training
  • the weight matrix of the BP neural network model is used to express the road at the current time (such as t c ) in the previous period (such as [t c-N+ 1 , t c ])
  • the relationship between the traffic flow data and the traffic flow data of the latter period of the current time eg [t c+1 , t c+L ]).
  • the BP neural network model includes an input layer, a hidden layer and an output layer. As shown in FIG. 1, the input layer and the hidden layer are associated by a weight matrix V, and the hidden layer and the output layer are associated by a weight matrix W, such as The input data of the input layer is multiplied by the weight matrix V, and the obtained result is the output result of the hidden layer; the output result of the hidden layer is multiplied by the weight matrix W, and the obtained result is the output data of the output layer.
  • the weight matrix V is n rows and m columns
  • the weight matrix W is m rows and 1 column
  • the data D ⁇ d1, d2, d3, ..., dl ⁇
  • the weight matrix V and W are as follows:
  • the training process of the BP neural network model includes the forward propagation process of the sample and the error back propagation process:
  • the sample forward propagation process is specifically as follows: input data -> input layer -> hidden layer -> output layer -> output data.
  • the error back propagation process is specifically: error of the output data -> hidden layer -> input layer.
  • the error of the output data is the variance value E of the output data and the real data, and the specific calculation is as follows:
  • E is less than or equal to the preset variance threshold Emin, it indicates that the output data O obtained by inputting the input data X into the BP neural network model is closer to the real data D of the output data, and is more accurate. Therefore, the BP neural network at this time is used.
  • the model is determined to be a BP neural network model that meets the requirements;
  • E is greater than the preset variance threshold Emin, it indicates that the output data O obtained by inputting the input data X into the BP neural network model is largely different from the real data D of the output data. Therefore, the BP neural network needs to be based on the variance value E.
  • the weight matrix V and W in the model are adjusted. The specific adjustments can be as follows:
  • Embodiment 1 of the present invention provides a traffic flow prediction method, and a flowchart thereof is shown in FIG. 3, and the method includes the following steps:
  • Step 301 Obtain historical traffic flow data of a previous time period of the current time of the road to be predicted for the road to be predicted;
  • the previous time period of the current time refers to a time period including the current time and the current time forward. If the current time is assumed to be tc, the previous time period of the current time is [t c-N+1 , t c ]. In general, the traffic data of the road is released every 2 minutes. Therefore, if the previous period is half an hour, the traffic data released in the previous period is 15. Assuming that the time interval for publishing traffic data is Tinterval, the number of traffic data for a road that is released all day is (24*60)/Tinterval.
  • Step 302 Obtain a traffic flow prediction model corresponding to the road to be predicted from a correspondence between the pre-stored road and the traffic flow prediction model; wherein the traffic flow prediction model corresponding to the road is pre-predicted according to historical traffic flow data of the road
  • the set neural network model is trained to obtain a traffic flow prediction model for predicting traffic flow data of the current time period of the current time according to historical traffic flow data of the previous time period of the current time of the road;
  • the correspondence between the pre-stored road and the traffic flow prediction model may be the correspondence between the ID/name of the road and the ID of the traffic flow prediction model.
  • the traffic flow prediction model corresponding to the road to be predicted is obtained, and the ID of the traffic flow prediction model corresponding to the ID/name of the road to be predicted is obtained from the foregoing correspondence according to the ID/name of the road to be predicted. And obtaining a corresponding traffic flow prediction model from the pre-stored traffic flow prediction model according to the obtained ID of the traffic flow prediction model.
  • the selected historical traffic flow data may be accumulated traffic data of half a month, one month, two months, one quarter or half year, and the historical traffic flow data selected for how long is selected according to actual needs. , there is no strict limit here.
  • Step 303 Input historical traffic flow data of a previous time period of the current time into a traffic flow prediction model corresponding to the road to be predicted, and obtain traffic flow data of a subsequent time period of the current time.
  • the duration of the previous period of the current time may be the same as or different from the duration of the latter period of the current time. Since the time interval for issuing the traffic data is the same, if the duration of the previous time period of the current time coincides with the duration of the latter time period of the current time, the number of historical traffic flow data included in the previous time period of the current time is the same as the current time.
  • the number of predicted traffic flow data included in the time period is the same; if the duration of the previous time period of the current time is greater than the time length of the next time period of the current time, the number of historical traffic flow data included in the previous time period of the current time is greater than the current time interval The number of predicted traffic flow data included; if the duration of the previous time period of the current time is less than the duration of the next time period of the current time, the number of historical traffic flow data included in the previous time period of the current time is smaller than the prediction included in the latter time period of the current time The number of traffic flow data.
  • the preset neural network model is trained according to historical traffic flow data of the road, and the current traffic time data of the previous time period of the current time of the road is predicted to predict the current time of the road.
  • a traffic flow prediction model of traffic flow data for a period of time can be obtained by the following method, as shown in Figure 4:
  • Step 401 obtaining historical traffic flow data of consecutive P time periods of the road, and traversing the consecutive P time periods, and performing step 402;
  • the durations of the P periods are the same, and the historical traffic flow data corresponding to each period includes the same number of traffic data, and the P is an integer greater than 1.
  • the adjacent periods of the above P periods may or may not overlap partially.
  • the adjacent time periods are partially overlapped, for example, the first time period is 9:00-9:30, the second time period is 9:02-9:32, the third time period is 9:04-9:34, and the fourth time period is 9:04-9:34. -9:36, and so on.
  • the adjacent time periods do not overlap, for example, the first time period is 9:02-9:30; the second time period is 9:32-10:00; the third time period is 10:02-10:30, and so on.
  • the historical traffic data streams respectively corresponding to the above consecutive P periods are used as the P group input data of the neural network:
  • Step 402 The current traversal period (assuming that the current traversal period is the ith period) is used as the previous period of the current time, and the historical traffic flow data corresponding to the current traversed period is input as input data into the pending neural network model, and the current Predicted traffic flow data for the next period of time (if the i-th period is the first period of the P period, then the pending neural network model at this time is a preset neural network model, if the i-th period is not the first period of the P period In a time period, the pending neural network model at this time is a neural network model adjusted according to the variance value of the i-1th period, and the current time is obtained. Predicting traffic flow data for the next period of time, and then performing step 403;
  • the duration of the previous period of the current time in this step 402 may be the same as or different from the duration of the latter period of the current time. Since the time interval for issuing the traffic data is the same, if the duration of the previous time period of the current time coincides with the duration of the latter time period of the current time, the number of historical traffic flow data included in the previous time period of the current time is the same as the current time.
  • the time period contains the same number of predicted traffic flow data. That is, the number n of data of the input data X in the neural network model is the same as the number of data of the output data O.
  • Step 403 Obtain historical traffic flow data corresponding to a subsequent time period of the current time from the traffic flow data of the time period after the current traversed time period, and calculate predicted traffic flow data of the subsequent time period of the current time and the current time The variance value of the historical traffic flow data for a period of time, after which step 404 is performed;
  • the obtained P group predicted traffic flow data are respectively And the P group predicts the traffic flow data corresponding to the real historical traffic flow data respectively as Doutput as follows:
  • the current traversal period in step 402 is the pth time period (where p is less than or equal to P), and the pth time period is the previous time period of the current time, and the historical traffic flow data corresponding to the pth time period is Predicted traffic flow data after a period of historical traffic flow data of the p-th input period neural network model obtained at the current time is O p, after the current time period corresponding to a real historical traffic data details as follows:
  • Step 403 calculates the variance value of the predicted traffic flow data and the corresponding historical traffic flow data for the next time period of the current time:
  • the historical traffic flow data corresponding to the next time period of the current time is obtained from the traffic flow data of the time period after the time period of the current traversal, and specifically includes:
  • the first time period is 9:02-9:30
  • the corresponding historical traffic flow data is ⁇ P1, P1,..., P15 ⁇
  • the second time period is 9:32. -10:00
  • the corresponding historical traffic flow data is ⁇ P16, P17, ..., P30 ⁇
  • the third time period is 10:02-10:30
  • the corresponding historical traffic flow data is ⁇ P31, P32, ..., P45 ⁇ ,....
  • the first time period is the previous time period of the current time
  • the current time period is 9:32-9:50
  • the current time period is obtained from the corresponding historical traffic flow data in the second time period.
  • the corresponding historical traffic data stream is ⁇ P16, P17, ..., P25 ⁇ .
  • the first time period is 9:02-9:30
  • the corresponding historical traffic flow data is ⁇ P1, P1,..., P15 ⁇
  • the second time period is 9:32. -10:00
  • the corresponding historical traffic flow data is ⁇ P16, P17, ..., P30 ⁇
  • the third time period is 10:02-10:30
  • the corresponding historical traffic flow data is ⁇ P31, P32, ..., P45 ⁇ ,....
  • the first time period is the previous time period of the current time
  • the current time period is 9:32-10:00
  • the historical traffic flow data corresponding to the second time period is used as the corresponding time period of the current time.
  • the historical traffic data stream is ⁇ P16, P17,..., P30 ⁇ .
  • Case 3 if the duration of the current traversal period (assuming the ith period) is less than the duration of the next period of the current time, at least two consecutive periods from the current traversal period (eg, the i+1th period, the i-th Obtaining historical traffic corresponding to the latter period of the current time in the traffic flow data of +2 period, etc.) Stream data.
  • the first time period is 9:02-9:30
  • the corresponding historical traffic flow data is ⁇ P1, P1,..., P15 ⁇
  • the second time period is 9:32. -10:00
  • the corresponding historical traffic flow data is ⁇ P16, P17, ..., P30 ⁇
  • the third time period is 10:02-10:30
  • the corresponding historical traffic flow data is ⁇ P31, P32, ..., P45 ⁇ ,....
  • the first time period is the previous time period of the current time
  • the current time period is 9:32-10:12
  • the current time flow data obtained from the second time period and the third time period is obtained.
  • the historical traffic data flow corresponding to the time period after the time is ⁇ P16, P17, ..., P36 ⁇ .
  • Step 404 determining whether the variance value calculated in step 403 is less than or equal to the preset first variance threshold; if yes, executing step 405, and if not, executing step 406;
  • Step 405 Determine the to-be-determined neural network model as a traffic flow prediction model corresponding to the road, and establish a correspondence between the road and the traffic flow prediction model, and save, and end the process;
  • Step 406 adjusting the parameters of the pending neural network model according to the variance value, and then performing step 407;
  • step 406 specifically, the adjustment of the weight matrix V and W of the neural network model according to the variance value can be referred to the foregoing content, and details are not described herein again.
  • Step 407 The next time period of the current traversal period in the P time periods is used as the current traversal time period, and step 402 is performed according to the to-be-determined neural network model after adjusting the parameter.
  • the method further includes:
  • Step 406a it is determined whether the current traversal time period is the last time period of the P time periods, and if so, step 406b is performed, and if not, step 407 is performed;
  • Step 406b calculating the sum of the variance values corresponding to the P time periods, and then performing step 406c;
  • Step 406c determining whether the sum value is less than or equal to a preset second variance threshold, and if yes, performing step 405, wherein the second variance threshold is greater than the first variance threshold; if not, according to the step
  • the pending neural network model after adjusting the parameters obtained in step 406 re-traverses the P time periods.
  • the preset neural network model is trained according to the historical traffic flow data of the road in advance, and the current time of the road can be predicted according to the historical traffic flow data of the previous time period of the current time of the road.
  • a traffic flow prediction model for traffic flow data in a later period when it is required to predict traffic flow data for a future period of the road to be predicted, obtaining a traffic flow prediction model corresponding to the road to be predicted, and the previous one of the road to be predicted
  • the historical traffic flow data of the time period is input into the traffic flow prediction model to obtain the traffic flow data of the future predicted time of the road to be predicted.
  • the neural network model since the traffic flow data has strong nonlinearity and uncertainty, and the neural network model has strong nonlinear prediction capability, the neural network model is trained according to the historical traffic flow data of the road.
  • the traffic flow prediction model obtained by the training can accurately predict the traffic flow data of the road in the latter period of the current time according to the traffic flow data of the previous time of the current time of the road.
  • the preset initial BP neural network model The parameters are as follows:
  • the weight matrix V and W of the BP neural network model are as follows:
  • the first time period is 9:02-9:30
  • the second time period is 9:04-9:32
  • the third time period is 9:06. -9:34....
  • the flow data predicts the historical traffic flow data corresponding to the traffic flow data (ie, the actual traffic flow data) as follows:
  • the steps 401 to 407 in the first embodiment are started to obtain the BP neural network model corresponding to the road R 0 , that is, the historical data flow set.
  • the process of offline training and learning is as follows:
  • Step 401 Acquire a historical traffic flow data set of consecutive 136 time periods of the road R 0 , and traverse from the first time period;
  • Step 402 The first time period (that is, the current traversal time period) is used as the previous time period of the current time, and the historical traffic flow data corresponding to the first time period is
  • step 402 the predicted traffic flow data of the next time period of the current time is obtained, which can be implemented by the following two steps:
  • the first step is to multiply the historical traffic flow data corresponding to the first time period and the weight matrix V of the neural network model to obtain a hidden layer output result:
  • Step 2 Multiply the result of the hidden layer output by the weight matrix W to obtain the result of the output layer:
  • Step 403 Acquire historical traffic flow data corresponding to a time period after the current time
  • Step 404 Determine whether the variance value E 1 is greater than or equal to the first variance threshold 0.02, and if so, determine the preset neural network model as the traffic flow prediction model of the road R0, and if not, proceed to step 406;
  • Step 406 Adjust the pending neural network parameter according to the variance value E 1 (because it is the first time period, therefore, here specifically adjust the preset neural network parameters);
  • v' i,j v i,j + ⁇ v i,j ⁇ v i,j ;
  • the adjusted weight matrices V and W are:
  • Step 406a determining that the first time period of the current traversal is not the last time period of 136 time periods, step 407 is performed;
  • Step 407 Jump to step 402 by using the next period 9:04-9:32 of the 9:02-9:30 period of the 136 periods as the current traversal period and the pending neural network model after adjusting the parameters.
  • the historical traffic flow data of the previous time period of the current time is as follows:
  • a third embodiment of the present invention provides a traffic flow prediction device, which is shown in FIG. 5 and includes a training module 51, a storage module 52, and a historical traffic data acquisition module 53.
  • the traffic flow prediction model acquisition module 54 and the prediction module 55 wherein:
  • the training module 51 is configured to train the preset neural network model according to the historical traffic flow data of the road in advance, and obtain the historical traffic flow data of the previous time period of the current time of the road to predict the time period of the current time of the road.
  • Traffic flow prediction model for traffic flow data
  • a storage module 52 configured to store a correspondence between the road and the traffic flow prediction model obtained by the training module 51;
  • the historical traffic data obtaining module 53 is configured to acquire historical traffic flow data of a previous time period of the current time of the road to be predicted for the road to be predicted;
  • the traffic flow prediction model acquisition module 54 is configured to obtain, from the correspondence between the road and the traffic flow prediction model prestored by the storage module 52, the traffic flow prediction model corresponding to the road to be predicted;
  • the prediction module 55 is configured to input the historical traffic flow data of the previous time period of the current time into the traffic flow prediction model corresponding to the road to be predicted, and obtain the traffic of the next time period of the current time. Stream data.
  • the training module 51 as shown in FIG. 6, specifically includes:
  • a first acquisition unit 5101 configured to acquire historical traffic flow data of consecutive P time periods of the road, wherein the durations of the P time periods are consistent, and the historical traffic flow data corresponding to each time period includes the same number of traffic data;
  • a first traversal unit 5102 configured to traverse the consecutive P time periods
  • the first input unit 5103 is configured to use the current traversal period as the previous time period of the current time, and input the historical traffic flow data corresponding to the current traversed time period as input data into the to-be-determined neural network model, to obtain the next time period of the current time. Forecast traffic flow data;
  • a second obtaining unit 5104 configured to acquire historical traffic flow data corresponding to a subsequent time period of the current time from the traffic flow data of the time period after the current traversed time period;
  • a first variance value determining unit 5105 configured to calculate a variance value of the predicted traffic flow data of the latter time period of the current time and the historical traffic flow data of the latter time period of the current time;
  • the first determining unit 5106 is configured to determine whether the variance value is less than or equal to a preset first variance threshold; if yes, triggering the first traffic flow prediction model determining unit 5107; if not, triggering the first parameter adjusting unit 5108;
  • the first traffic flow prediction model determining unit 5107 is configured to determine the to-be-determined neural network model as a traffic flow prediction model corresponding to the road, and establish a correspondence between the road and the traffic flow prediction model, and save the relationship;
  • the first parameter adjustment unit 5108 is configured to adjust parameters of the to-be-determined neural network model according to the variance value.
  • the first triggering unit 5109 is configured to use the next time period of the current traversal period in the P time periods as the current traversal time period, and trigger the first input unit 5103 according to the to-be-determined neural network model after adjusting the parameter.
  • the training module 51 further includes:
  • the second determining unit 5110 is configured to determine whether the current traversal period is the last period of the P periods, and if yes, trigger the first variance sum value determining unit 5111; if not, trigger the first trigger Unit 5109;
  • a first variance sum value determining unit 5111 configured to calculate a sum value of the variance values corresponding to the P time periods
  • the third determining unit 5112 is configured to determine whether the sum value is less than or equal to a preset second variance threshold, where the second variance threshold is greater than the first variance threshold; if yes, triggering the first traffic flow prediction model to determine The unit 5107, if not, triggers the first traversal unit 5102 according to the pending neural network model after the parameter adjustment unit 5108 adjusts the parameter.
  • the second acquiring unit 5104 is specifically configured to:
  • the historical traffic flow data corresponding to the later period of the current time is obtained from the traffic flow data of the next period of the current traversal period;
  • the traffic flow data of the next period of the current traversal period is used as historical traffic flow data corresponding to the next period of the current time;
  • the historical traffic flow corresponding to the latter period of the current time is obtained from the traffic flow data of the at least two consecutive periods after the current traversal period data.
  • the fourth embodiment of the present invention further provides a method for generating a traffic flow prediction model. For each road, the method includes:
  • Step a Obtain historical traffic flow data of consecutive P time periods of the road, wherein the durations of the P time periods are consistent, and the historical traffic flow data corresponding to each time period includes the same number of traffic data;
  • Step b taking the current traversal time period as the previous time period of the current time, inputting the historical traffic flow data corresponding to the current traversing time period as input data into the to-be-determined neural network model, and obtaining predicted traffic flow data of the latter time period of the current time.
  • Step c Obtain historical traffic flow data corresponding to a subsequent time period of the current time from the traffic flow data of the time period after the current traversed time period, and calculate predicted traffic flow data of the latter time period of the current time and the current time The variance value of historical traffic flow data for a period of time;
  • the historical traffic flow data corresponding to the next time period of the current time is obtained from the traffic flow data of the time period after the current traversing time period, which may specifically include:
  • the historical traffic flow data corresponding to the later period of the current time is obtained from the traffic flow data of the next period of the current traversal period;
  • the traffic flow data of the next period of the current traversal period is used as historical traffic flow data corresponding to the next period of the current time;
  • the historical traffic flow corresponding to the latter period of the current time is obtained from the traffic flow data of the at least two consecutive periods after the current traversal period data.
  • Step d determining whether the variance value is less than or equal to the preset first variance threshold, and if so, executing step e, if not, executing step f;
  • Step e determining the to-be-determined neural network model as a traffic flow prediction model corresponding to the road, and establishing a correspondence between the road and the traffic flow prediction model, and saving, ending the process;
  • Step f adjusting parameters of the to-be-determined neural network model according to the variance value
  • Step g Taking the next period of the current traversal period in the P periods as the current traversal period, and performing step b according to the pending neural network model after adjusting the parameters.
  • the steps f1 - f3 are further included:
  • Step f1 determining whether the current traversal time period is the last time period of the P time periods, and if so, executing step f2, and if not, executing step g;
  • Step f2 calculating a sum of variance values corresponding to P time periods
  • Step f3 determining whether the sum value is less than or equal to a preset second variance threshold, wherein the second variance threshold is greater than the first variance threshold; if yes, executing step e; if not, according to the step
  • the pending neural network model after f obtained the adjusted parameters re-traverses the P time periods.
  • the fifth embodiment of the present invention provides a traffic flow prediction model generation device, where the device includes:
  • a third acquiring unit configured to acquire historical traffic flow data of consecutive P time periods of the road, wherein the durations of the P time periods are consistent, and the historical traffic flow data corresponding to each time period includes the same number of traffic data;
  • a second traversal unit configured to traverse the consecutive P time periods
  • a second input unit configured to use the current traversal period as a previous period of the current time, and input the historical traffic flow data corresponding to the current traversed period as input data into the to-be-determined neural network model, to obtain a prediction of the current time period Traffic flow data;
  • a fourth acquiring unit configured to acquire historical traffic flow data corresponding to a subsequent time period of the current time from the traffic flow data of the time period after the current traversed time period;
  • a fourth acquiring unit configured to: obtain, after the current time, the traffic flow data of the next time period of the current traversal time period, if the duration of the current traversal time period is greater than the time length of the current time period The historical traffic flow data corresponding to the time period; if the duration of the current traversal period is equal to the duration of the next time period of the current time, the traffic flow data of the next time period of the current traversal time period is used as the corresponding time period of the current time Historical traffic flow data; if the duration of the current traversal period is less than the duration of the next time period of the current time, the traffic flow data of at least two consecutive time periods after the current traversal time period is acquired and the time period after the current time is acquired Corresponding historical traffic flow data.
  • a second variance value determining unit configured to calculate a variance value of the predicted traffic flow data of the latter time period of the current time and the historical traffic flow data of the latter time period of the current time;
  • a fourth determining unit configured to determine whether the variance value is less than or equal to a preset first variance threshold; If yes, triggering the second traffic flow prediction model determining unit; if not, triggering the second parameter adjusting unit;
  • a second traffic flow prediction model determining unit configured to determine the to-be-determined neural network model as a traffic flow prediction model corresponding to the road, and establish a correspondence between the road and the traffic flow prediction model, and save the relationship;
  • a second parameter adjustment unit configured to adjust parameters of the to-be-determined neural network model according to the variance value
  • the second triggering unit is configured to use the next time period of the current traversal period in the P time periods as the current traversal time period, and trigger the second input unit according to the to-be-determined neural network model after adjusting the parameter.
  • the foregoing apparatus further includes:
  • a fifth determining unit configured to determine whether the current traversing period is the last period of the P periods, and if yes, triggering the second variance sum value determining unit; if not, triggering the second trigger unit;
  • a second variance sum value determining unit configured to calculate a sum value of the variance values corresponding to the P time periods
  • a sixth determining unit configured to determine whether the sum value is less than or equal to a preset second variance threshold, the second variance threshold is greater than the first variance threshold; if yes, triggering a second traffic flow prediction model determining unit If not, the second traversal unit is triggered according to the pending neural network model after the parameter is adjusted by the second parameter adjustment unit.
  • the method and device for generating a traffic flow prediction module trains a neural network model according to historical traffic flow data of the road, so as to obtain a current traffic flow data of a previous time period of the current time of the road to predict the current road.
  • Traffic flow prediction model of traffic flow data in the latter period of time; because traffic flow data has strong nonlinearity and uncertainty, and neural network model has strong nonlinear prediction ability, therefore, according to the historical traffic of the road.
  • the flow data trains the neural network model, and the traffic flow prediction model obtained by the training can accurately predict the traffic flow data of the road in the latter period of the current time according to the traffic flow data of the previous time of the current time of the road.
  • embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
  • computer-usable storage media including but not limited to disk storage, CD-ROM, optical storage, etc.
  • the computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device.
  • the apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
  • These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.

Abstract

Disclosed are a traffic flow prediction method, and a prediction model generation method and device. The prediction method comprises: for a road to be predicted, acquiring historical traffic flow data of the road to be predicted within a time period prior to the current time (301); from a correlation between a pre-existing road and a traffic flow prediction model, acquiring the traffic flow prediction model corresponding to the road to be predicted (302); and inputting the historical traffic flow data within the time period prior to the current time into the traffic flow prediction model corresponding to the road to be predicted, to obtain traffic flow data within a time period after the current time (303). Since traffic flow data has high nonlinearity and uncertainty and a neural network model has a relatively high nonlinear prediction capability, the neural network model is trained according to historical traffic flow data of a road, so that a traffic flow prediction model obtained by training can relatively accurately predict the traffic flow data of the road within the time period after the current time according to the traffic flow data of the road within the time period prior to the current time.

Description

一种交通流量预测方法、预测模型生成方法及装置Traffic flow prediction method, prediction model generation method and device
本申请要求在2014年12月16日提交中国专利局、申请号为201410785171.X、发明名称为“一种交通流量预测方法、预测模型生成方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to Chinese patent application filed on Dec. 16, 2014, the Chinese Patent Office, Application No. 201410785171.X, entitled "A Traffic Flow Prediction Method, Prediction Model Generation Method and Apparatus", all of which The content is incorporated herein by reference.
技术领域Technical field
本发明涉及实时交通领域,尤其涉及一种交通流量预测方法、预测模型生成方法及装置。The present invention relates to the field of real-time traffic, and in particular, to a traffic flow prediction method, a prediction model generation method and apparatus.
背景技术Background technique
随着智能交通系统日益普及,实时交通流量在智能交通系统内的应用越来越广泛与深入。目前,发布实时交通流数据的方式是每隔一段时间(如5s、10s、30s、1分钟或2分钟等)发布一次道路的实时交通数据(如道路的行车速度等),现有技术中发布的实时交通数据即为当前时刻道路的实时交通情况,但是并不能发布未来某一时段的交通流数据。但是在实际生活中,越来越多的用户为了提前合理的安排行程更期望能够提前获知某些道路的交通数据,因此,现有的发布实时交通流数据的方式并不能满足用户的这种需求。With the increasing popularity of intelligent transportation systems, the application of real-time traffic flow in intelligent transportation systems is becoming more and more extensive and in-depth. At present, the method of publishing real-time traffic flow data is to release real-time traffic data of the road (such as the driving speed of the road, etc.) at regular intervals (such as 5s, 10s, 30s, 1 minute or 2 minutes, etc.), which is released in the prior art. The real-time traffic data is the real-time traffic situation of the current time road, but it cannot release the traffic flow data for a certain period of time in the future. However, in real life, more and more users are more likely to know the traffic data of certain roads in advance in order to arrange the trips in advance. Therefore, the existing method of releasing real-time traffic flow data cannot meet the needs of users. .
由于交通流数据具有很强的非线性和不确定性,人工很难推测哪些因素会影响下一时段的交通流量的变化情况,因此,目前还没有公开有效的技术方案来准确的预测交通流数据。Because traffic flow data has strong nonlinearity and uncertainty, it is difficult for people to speculate on which factors will affect the change of traffic flow in the next period. Therefore, there is no effective technical solution to accurately predict traffic flow data. .
发明内容Summary of the invention
有鉴于此,本发明实施例提供了一种交通流量预测方法、预测模型生成方法及装置,以提供一种能够准确预测交通流量的方式。In view of this, the embodiments of the present invention provide a traffic flow prediction method, a prediction model generation method, and a device, to provide a manner for accurately predicting traffic flow.
本发明实施例提供一种交通流量预测方法,具体如下:The embodiment of the invention provides a traffic flow prediction method, which is specifically as follows:
针对待预测道路,获取该待预测道路的当前时刻的前一时段的历史交通流数据; Obtaining historical traffic flow data of a previous time period of the current time of the road to be predicted for the road to be predicted;
从预存的道路与交通流量预测模型的对应关系中,获取所述待预测道路对应的交通流量预测模型;其中,道路对应的交通流量预测模型为预先根据道路的历史交通流数据对预置的神经网络模型进行训练,得到根据该道路当前时刻的前一时段的历史交通流数据预测该条道路当前时刻的后一时段的交通流数据的交通流量预测模型;Obtaining a traffic flow prediction model corresponding to the road to be predicted from a corresponding relationship between the pre-stored road and the traffic flow prediction model; wherein the traffic flow prediction model corresponding to the road is a pre-set nerve according to historical traffic flow data of the road in advance The network model is trained to obtain a traffic flow prediction model for predicting traffic flow data for a subsequent period of the current time of the road according to historical traffic flow data of a previous time period of the current time of the road;
将当前时刻的前一时段的历史交通流数据,输入至所述待预测道路对应的交通流量预测模型中,得到当前时刻的后一时段的交通流数据。The historical traffic flow data of the previous time period of the current time is input into the traffic flow prediction model corresponding to the road to be predicted, and the traffic flow data of the latter time period of the current time is obtained.
一种交通流量预测装置,所述装置包括:A traffic flow prediction device, the device comprising:
训练模块,用于预先根据道路的历史交通流数据对预置的神经网络模型进行训练,得到根据该道路当前时刻的前一时段的历史交通流数据预测该条道路当前时刻的后一时段的交通流数据的交通流量预测模型;a training module, configured to pre-prepare the preset neural network model according to the historical traffic flow data of the road, and obtain the traffic of the next time period of the current time according to the historical traffic flow data of the previous time period of the current time of the road. Traffic flow prediction model for streaming data;
存储模块,用于存储训练模块得到的所述道路与其交通流量预测模型的对应关系;a storage module, configured to store a correspondence between the road and the traffic flow prediction model obtained by the training module;
历史交通数据获取模块,用于针对待预测道路,获取该待预测道路的当前时刻的前一时段的历史交通流数据;a historical traffic data obtaining module, configured to acquire historical traffic flow data of a previous time period of the current time of the road to be predicted for the road to be predicted;
交通流量预测模型获取模块,用于从存储模块预存的道路与交通流量预测模型的对应关系中,获取所述待预测道路对应的交通流量预测模型;a traffic flow prediction model acquisition module, configured to acquire a traffic flow prediction model corresponding to the road to be predicted from a correspondence between a road and a traffic flow prediction model prestored by the storage module;
预测模块,用于将当前时刻的前一时段的历史交通流数据,输入至所述待预测道路对应的交通流量预测模型中,得到当前时刻的后一时段的交通流数据。The prediction module is configured to input the historical traffic flow data of the previous time period of the current time into the traffic flow prediction model corresponding to the road to be predicted, and obtain the traffic flow data of the latter time period of the current time.
本发明实施例提供的交通流量预测方法及装置,预先根据道路的历史交通流数据对预置的神经网络模型进行训练,得到能够根据道路当前时刻的前一时段的历史交通流数据预测该条道路当前时刻的后一时段的交通流数据的交通流量预测模型;当需要预测待预测道路当前时刻的未来一时段的交通流数据时,获取与该待预测道路对应的交通流量预测模型,并将该待预测道路的当前时刻的前一时段的历史交通流数据输入至交通流量预测模型中即可得到该待预测道路未来一时段的交通流数据。采用本发明技术方案,由于交通 流数据具有很强的非线性和不确定性,而神经网络模型具有较强的非线性预测能力,因此,根据道路的历史交通流数据对神经网络模型进行训练,训练得到的交通流量预测模型能够较为准确的根据道路当前时刻的前一时段交通流数据预测得到当前时刻的后一时段该道路的交通流数据。The traffic flow prediction method and apparatus provided by the embodiments of the present invention pre-prepare the preset neural network model according to the historical traffic flow data of the road, and obtain the historical traffic flow data of the previous time period of the current time of the road to predict the road. a traffic flow prediction model of traffic flow data at a later time period of the current time; when it is required to predict traffic flow data for a future time period of the current time of the road to be predicted, acquiring a traffic flow prediction model corresponding to the road to be predicted, and The historical traffic flow data of the previous time period of the current time of the road to be predicted is input into the traffic flow prediction model to obtain the traffic flow data of the future time period of the road to be predicted. Adopting the technical solution of the invention, due to traffic The flow data has strong nonlinearity and uncertainty, and the neural network model has strong nonlinear prediction ability. Therefore, the neural network model is trained according to the historical traffic flow data of the road, and the traffic flow prediction model can be trained. It is more accurate to predict the traffic flow data of the road in the latter period of the current time according to the traffic flow data of the previous time of the current time of the road.
一种交通流量预测模型生成方法,包括:A traffic flow prediction model generation method includes:
针对每条道路,执行以下步骤:For each road, perform the following steps:
步骤a、获取道路的连续P个时段的历史交通流数据,其中,P个时段的时长一致,且每个时段对应的历史交通流数据包含的交通数据个数相同;Step a: Obtain historical traffic flow data of consecutive P time periods of the road, wherein the durations of the P time periods are consistent, and the historical traffic flow data corresponding to each time period includes the same number of traffic data;
遍历所述连续P个时段,执行以下步骤:To traverse the consecutive P time periods, perform the following steps:
步骤b、将当前遍历的时段作为当前时刻的前一时段,将当前遍历的时段对应的历史交通流数据作为输入数据输入至待定神经网络模型中,得到当前时刻的后一时段的预测交通流数据;Step b: taking the current traversal time period as the previous time period of the current time, inputting the historical traffic flow data corresponding to the current traversing time period as input data into the to-be-determined neural network model, and obtaining predicted traffic flow data of the latter time period of the current time. ;
步骤c、从当前遍历的时段之后的时段的交通流数据中获取当前时刻的后一时段对应的历史交通流数据,并计算所述当前时刻的后一时段的预测交通流数据与当前时刻的后一时段的历史交通流数据的方差值;Step c: Obtain historical traffic flow data corresponding to a subsequent time period of the current time from the traffic flow data of the time period after the current traversed time period, and calculate predicted traffic flow data of the latter time period of the current time and the current time The variance value of historical traffic flow data for a period of time;
步骤d、判断所述方差值是否小于等于预置的第一方差阈值,若是,执行步骤e,若否,执行步骤f;Step d, determining whether the variance value is less than or equal to a preset first variance threshold, and if so, executing step e, if not, performing step f;
步骤e、将所述待定神经网络模型确定为所述道路对应的交通流量预测模型,并建立所述道路与该交通流量预测模型的对应关系,并保存,结束流程;Step e: determining the to-be-determined neural network model as a traffic flow prediction model corresponding to the road, and establishing a correspondence between the road and the traffic flow prediction model, and saving, ending the process;
步骤f、根据所述方差值调整所述待定神经网络模型的参数;Step f: adjusting parameters of the to-be-determined neural network model according to the variance value;
步骤g、将P个时段中所述当前遍历时段的下一时段作为当前遍历的时段,并根据调整参数后的待定神经网络模型,执行步骤b。Step g: Taking the next period of the current traversal period in the P periods as the current traversal period, and performing step b according to the pending neural network model after adjusting the parameters.
一种交通流量预测模型生成装置,包括:A traffic flow prediction model generating device includes:
第三获取单元,用于获取道路的连续P个时段的历史交通流数据,其中P个时段的时长一致,且每个时段对应的历史交通流数据包含的交通数据个数相同;a third acquiring unit, configured to acquire historical traffic flow data of consecutive P time periods of the road, wherein the durations of the P time periods are consistent, and the historical traffic flow data corresponding to each time period includes the same number of traffic data;
第二遍历单元,用于遍历所述连续P个时段; a second traversal unit, configured to traverse the consecutive P time periods;
第二输入单元,用于将当前遍历时段作为当前时刻的前一时段,将当前遍历的时段对应的历史交通流数据作为输入数据输入至待定神经网络模型中,得到当前时刻的后一时段的预测交通流数据;a second input unit, configured to use the current traversal period as a previous period of the current time, and input the historical traffic flow data corresponding to the current traversed period as input data into the to-be-determined neural network model, to obtain a prediction of the current time period Traffic flow data;
第四获取单元,用于从当前遍历的时段之后的时段的交通流数据中获取当前时刻的后一时段对应的历史交通流数据;a fourth acquiring unit, configured to acquire historical traffic flow data corresponding to a subsequent time period of the current time from the traffic flow data of the time period after the current traversed time period;
第二方差值确定单元,用于计算所述当前时刻的后一时段的预测交通流数据与当前时刻的后一时段的历史交通流数据的方差值;a second variance value determining unit, configured to calculate a variance value of the predicted traffic flow data of the latter time period of the current time and the historical traffic flow data of the latter time period of the current time;
第四判断单元,用于判断所述方差值是否小于等于预置的第一方差阈值;若是,则触发第二交通流量预测模型确定单元;若否,则触发第二参数调整单元;a fourth determining unit, configured to determine whether the variance value is less than or equal to a preset first variance threshold; if yes, triggering a second traffic flow prediction model determining unit; if not, triggering a second parameter adjusting unit;
第二交通流量预测模型确定单元,用于将所述待定神经网络模型确定为所述道路对应的交通流量预测模型,并建立所述道路与该交通流量预测模型的对应关系,并保存;a second traffic flow prediction model determining unit, configured to determine the to-be-determined neural network model as a traffic flow prediction model corresponding to the road, and establish a correspondence between the road and the traffic flow prediction model, and save the relationship;
第二参数调整单元,用于根据所述方差值调整所述待定神经网络模型的参数;a second parameter adjustment unit, configured to adjust parameters of the to-be-determined neural network model according to the variance value;
第二触发单元,用于将P个时段中所述当前遍历时段的下一时段作为当前遍历的时段,并根据调整参数后的待定神经网络模型,触发所述第二输入单元。The second triggering unit is configured to use the next time period of the current traversal period in the P time periods as the current traversal time period, and trigger the second input unit according to the to-be-determined neural network model after adjusting the parameter.
本发明实施例提供的交通流量预测模型生成方法及装置,根据道路的历史交通流数据对神经网络模型进行训练,以得到能够根据道路当前时刻的前一时段的历史交通流数据预测该条道路当前时刻的后一时段的交通流数据的交通流量预测模型;由于交通流数据具有很强的非线性和不确定性,而神经网络模型具有较强的非线性预测能力,因此,根据道路的历史交通流数据对神经网络模型进行训练,训练得到的交通流量预测模型能够较为准确的根据道路当前时刻的前一时段交通流数据预测得到当前时刻的后一时段该道路的交通流数据。 The method and device for generating a traffic flow prediction model according to an embodiment of the present invention trains a neural network model according to historical traffic flow data of the road to obtain a current traffic flow data of a previous time period of the current time of the road to predict the current road Traffic flow prediction model of traffic flow data in the latter period of time; because traffic flow data has strong nonlinearity and uncertainty, and neural network model has strong nonlinear prediction ability, therefore, according to the historical traffic of the road The flow data trains the neural network model, and the traffic flow prediction model obtained by the training can accurately predict the traffic flow data of the road in the latter period of the current time according to the traffic flow data of the previous time of the current time of the road.
附图说明DRAWINGS
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present invention, and other drawings can be obtained from those skilled in the art without any inventive labor.
图1为本发明实施例中的BP神经网络拓扑示意图;1 is a schematic diagram of a topology of a BP neural network according to an embodiment of the present invention;
图2为本发明实施例中的BP算法误差反向传输示意图;2 is a schematic diagram of reverse transmission of BP algorithm error according to an embodiment of the present invention;
图3为本发明实施例一中的一种交通流量预测方法流程图;3 is a flowchart of a traffic flow prediction method according to Embodiment 1 of the present invention;
图4为本发明实施例一中的获得道路对应的交通流量预测模型的方法流程图;4 is a flowchart of a method for obtaining a traffic flow prediction model corresponding to a road according to Embodiment 1 of the present invention;
图5本发明实施例三中的交通流量预测装置的结构示意图;FIG. 5 is a schematic structural diagram of a traffic flow prediction apparatus according to Embodiment 3 of the present invention; FIG.
图6本发明实施例三中的交通流量预测装置的训练模块的结构示意图。FIG. 6 is a schematic structural diagram of a training module of a traffic flow prediction apparatus according to Embodiment 3 of the present invention.
具体实施方式detailed description
在本发明实施例的技术方案中,预先根据道路的历史交通流数据对预置的神经网络模型进行训练,得到能够根据道路当前时刻的前一时段的历史交通流数据预测该条道路当前时刻的后一时段的交通流数据的交通流量预测模型;当需要预测待预测道路未来一时段的交通流数据时,获取与该待预测道路对应的交通流量预测模型,并将该待预测道路的前一时段的历史交通流数据输入至交通流量预测模型中即可得到该待预测道路未来一时段的交通流数据。采用本发明技术方案,由于交通流数据具有很强的非线性和不确定性,而神经网络模型具有较强的非线性预测能力,因此,根据道路的历史交通流数据对神经网络模型进行训练,训练得到的交通流量预测模型能够较为准确的根据道路当前时刻的前一时段交通流数据预测得到当前时刻的后一时段该道路的交通流数据。In the technical solution of the embodiment of the present invention, the preset neural network model is trained according to the historical traffic flow data of the road in advance, and the current time of the road can be predicted according to the historical traffic flow data of the previous time period of the current time of the road. a traffic flow prediction model for traffic flow data in a later period; when it is required to predict traffic flow data for a future period of the road to be predicted, obtaining a traffic flow prediction model corresponding to the road to be predicted, and the previous one of the road to be predicted The historical traffic flow data of the time period is input into the traffic flow prediction model to obtain the traffic flow data of the future predicted time of the road to be predicted. With the technical solution of the present invention, since the traffic flow data has strong nonlinearity and uncertainty, and the neural network model has strong nonlinear prediction capability, the neural network model is trained according to the historical traffic flow data of the road. The traffic flow prediction model obtained by the training can accurately predict the traffic flow data of the road in the latter period of the current time according to the traffic flow data of the previous time of the current time of the road.
本发明实施例中,采用神经网络模型(例如:BP(误差反向传播算法,Error Back-Propagation Training)神经网络模型)进行交通流量短时预测,即 对道路所对应的海量历史交通流数据进行离线训练与学习,以得到每条道路对应的交通流量预测模型,BP神经网络模型的权值矩阵用于表达道路在当前时刻(如tc)的前一时段的(如[tc-N+1,tc])交通流数据与当前时刻的后一时段(如[tc+1,tc+L])的交通流数据之间的关联关系。In the embodiment of the present invention, a neural network model (for example, BP (Error Back-Propagation Training) neural network model) is used to perform short-term traffic flow prediction, that is, the massive historical traffic flow data corresponding to the road is performed. Offline training and learning to obtain a traffic flow prediction model corresponding to each road. The weight matrix of the BP neural network model is used to express the road at the current time (such as t c ) in the previous period (such as [t c-N+ 1 , t c ]) The relationship between the traffic flow data and the traffic flow data of the latter period of the current time (eg [t c+1 , t c+L ]).
为便于本领域技术人员能够更好地理解BP神经网络模型,下面对BP神经网络模型进行具体的介绍:In order to facilitate the understanding of the BP neural network model by those skilled in the art, the following describes the BP neural network model in detail:
BP神经网络模型包括输入层、隐层和输出层,如图1所示,输入层与隐层之间通过权值矩阵V关联,隐层与输出层之间通过权值矩阵W关联,如将输入层的输入数据与权值矩阵V相乘,得到的结果即为隐层的输出结果;将隐层的输出结果与权值矩阵W相乘,得到的结果即为输出层的输出数据。The BP neural network model includes an input layer, a hidden layer and an output layer. As shown in FIG. 1, the input layer and the hidden layer are associated by a weight matrix V, and the hidden layer and the output layer are associated by a weight matrix W, such as The input data of the input layer is multiplied by the weight matrix V, and the obtained result is the output result of the hidden layer; the output result of the hidden layer is multiplied by the weight matrix W, and the obtained result is the output data of the output layer.
具体地:假设输入层的输入数据为X={x1,x2,x3,…,xn},权值矩阵V为n行m列,则隐层的输出结果为Y=X*V={y1,y2,y3,…,ym},权值矩阵W为m行l列,则输出层的输出数据O=Y*W={o1,o2,o3,…,ol},假设与输出数据对应的真实数据D={d1,d2,d3,…,dl},权值矩阵V和W如下:Specifically, it is assumed that the input data of the input layer is X={x1, x2, x3, ..., xn}, and the weight matrix V is n rows and m columns, and the output result of the hidden layer is Y=X*V={y1, Y2, y3, ..., ym}, the weight matrix W is m rows and 1 column, then the output data of the output layer O=Y*W={o1,o2,o3,...,ol}, assuming the true corresponding to the output data The data D = {d1, d2, d3, ..., dl}, the weight matrix V and W are as follows:
Figure PCTCN2015096341-appb-000001
Figure PCTCN2015096341-appb-000001
Figure PCTCN2015096341-appb-000002
Figure PCTCN2015096341-appb-000002
BP神经网络模型的训练过程包括样本正向传播过程与误差反向传播过程:The training process of the BP neural network model includes the forward propagation process of the sample and the error back propagation process:
样本正向传播过程具体为:输入数据->输入层->隐层->输出层->输出数据。The sample forward propagation process is specifically as follows: input data -> input layer -> hidden layer -> output layer -> output data.
误差反向传播过程具体为:输出数据的误差->隐层->输入层。The error back propagation process is specifically: error of the output data -> hidden layer -> input layer.
上述误差反向传播过程如图2所示。 The above error back propagation process is shown in Figure 2.
其中输出数据的误差为输出数据与真实数据的方差值E,具体计算如下:The error of the output data is the variance value E of the output data and the real data, and the specific calculation is as follows:
Figure PCTCN2015096341-appb-000003
Figure PCTCN2015096341-appb-000003
若E小于等于预置的方差阈值Emin,则表明将输入数据X输入BP神经网络模型后得到的输出数据O与输出数据的真实数据D较为接近,较准确,因此,将此时的BP神经网络模型确定为符合要求的BP神经网络模型;If E is less than or equal to the preset variance threshold Emin, it indicates that the output data O obtained by inputting the input data X into the BP neural network model is closer to the real data D of the output data, and is more accurate. Therefore, the BP neural network at this time is used. The model is determined to be a BP neural network model that meets the requirements;
若E大于预置的方差阈值Emin,则表明将输入数据X输入BP神经网络模型后得到的输出数据O与输出数据的真实数据D相差较大,因此,需要根据方差值E对BP神经网络模型中的权值矩阵V和W进行调整,具体调整可如下:If E is greater than the preset variance threshold Emin, it indicates that the output data O obtained by inputting the input data X into the BP neural network model is largely different from the real data D of the output data. Therefore, the BP neural network needs to be based on the variance value E. The weight matrix V and W in the model are adjusted. The specific adjustments can be as follows:
假设BP神经网络模型中学习率为η,则对权值矩阵V和W调整如下:Assuming that the learning rate is η in the BP neural network model, the weight matrices V and W are adjusted as follows:
w′j,k=wj,k+Δwj,k w' j,k =w j,k +Δw j,k
其中1≤j≤m,1≤k≤l;ΔWj,k为Wj,k的变化率;Where 1 ≤ j ≤ m, 1 ≤ k ≤ l; ΔW j, k is the rate of change of W j,k ;
v′i,j=vi,j+Δvi,j v' i,j =v i,j +Δv i,j
其中1≤i≤n,1≤j≤m;ΔWi,j为Wi,j的变化率;Where 1 ≤ i ≤ n, 1 ≤ j ≤ m; ΔW i, j is the rate of change of W i, j ;
Figure PCTCN2015096341-appb-000004
Figure PCTCN2015096341-appb-000004
Figure PCTCN2015096341-appb-000005
Figure PCTCN2015096341-appb-000005
下面结合说明书附图,对本发明实施例进行详细描述。The embodiments of the present invention are described in detail below with reference to the accompanying drawings.
实施例一 Embodiment 1
本发明实施例一提供一种交通流量预测方法,其流程图如图3所示,方法包括以下步骤: Embodiment 1 of the present invention provides a traffic flow prediction method, and a flowchart thereof is shown in FIG. 3, and the method includes the following steps:
步骤301、针对待预测道路,获取该待预测道路的当前时刻的前一时段的历史交通流数据;Step 301: Obtain historical traffic flow data of a previous time period of the current time of the road to be predicted for the road to be predicted;
当前时刻的前一时段是指包括当前时刻以及当前时刻往前推的一个时 段,如假设当前时刻为tc,则当前时刻的前一个时段为[tc-N+1,tc]。一般情况下,每2分钟发布一次道路的交通数据,因此,若前一时段为半小时,则在该前一时段发布的交通数据为15个。假设发布交通数据的时间间隔为Tinterval,则全天发布一条道路的交通数据个数为(24*60)/Tinterval。The previous time period of the current time refers to a time period including the current time and the current time forward. If the current time is assumed to be tc, the previous time period of the current time is [t c-N+1 , t c ]. In general, the traffic data of the road is released every 2 minutes. Therefore, if the previous period is half an hour, the traffic data released in the previous period is 15. Assuming that the time interval for publishing traffic data is Tinterval, the number of traffic data for a road that is released all day is (24*60)/Tinterval.
步骤302、从预存的道路与交通流量预测模型的对应关系中,获取所述待预测道路对应的交通流量预测模型;其中,道路对应的交通流量预测模型为预先根据道路的历史交通流数据对预置的神经网络模型进行训练,得到根据该道路当前时刻的前一时段的历史交通流数据预测该条道路当前时刻的后一时段的交通流数据的交通流量预测模型;Step 302: Obtain a traffic flow prediction model corresponding to the road to be predicted from a correspondence between the pre-stored road and the traffic flow prediction model; wherein the traffic flow prediction model corresponding to the road is pre-predicted according to historical traffic flow data of the road The set neural network model is trained to obtain a traffic flow prediction model for predicting traffic flow data of the current time period of the current time according to historical traffic flow data of the previous time period of the current time of the road;
本发明实施例中,预存的道路与交通流量预测模型的对应关系可以是道路的ID/名称与交通流量预测模型的ID的对应关系。步骤302中,获取待预测道路对应的交通流量预测模型,可以是根据待预测道路的ID/名称,从前述对应关系中获取与该待预测道路的ID/名称对应的交通流量预测模型的ID,并根据获取的交通流量预测模型的ID从预存的交通流量预测模型中获取相应的交通流量预测模型。In the embodiment of the present invention, the correspondence between the pre-stored road and the traffic flow prediction model may be the correspondence between the ID/name of the road and the ID of the traffic flow prediction model. In step 302, the traffic flow prediction model corresponding to the road to be predicted is obtained, and the ID of the traffic flow prediction model corresponding to the ID/name of the road to be predicted is obtained from the foregoing correspondence according to the ID/name of the road to be predicted. And obtaining a corresponding traffic flow prediction model from the pre-stored traffic flow prediction model according to the obtained ID of the traffic flow prediction model.
本发明实施例中,选取的历史交通流数据可以是积累的半个月、1个月、2个月、1季度或半年的交通数据,具体选取多长时间的历史交通流数据根据实际需求选取,在此不作严格的限定。In the embodiment of the present invention, the selected historical traffic flow data may be accumulated traffic data of half a month, one month, two months, one quarter or half year, and the historical traffic flow data selected for how long is selected according to actual needs. , there is no strict limit here.
步骤303、将当前时刻的前一时段的历史交通流数据,输入至所述待预测道路对应的交通流量预测模型中,得到当前时刻的后一时段的交通流数据。Step 303: Input historical traffic flow data of a previous time period of the current time into a traffic flow prediction model corresponding to the road to be predicted, and obtain traffic flow data of a subsequent time period of the current time.
本发明实施例中,当前时刻的前一时段的时长可以与当前时刻的后一时段的时长相同,也可以不相同。由于发布交通数据的时间间隔一致,因此,若当前时刻的前一时段的时长与当前时刻的后一时段的时长一致,则当前时刻前一时段包含的历史交通流数据个数与当前时刻后一时段包含的预测交通流数据个数相同;若当前时刻的前一时段的时长大于当前时刻后一时段的时长,则当前时刻前一时段包含的历史交通流数据个数大于当前时刻后一时段 包含的预测交通流数据个数;若当前时刻的前一时段的时长小于当前时刻后一时段的时长,则当前时刻前一时段包含的历史交通流数据个数小于当前时刻后一时段包含的预测交通流数据个数。In the embodiment of the present invention, the duration of the previous period of the current time may be the same as or different from the duration of the latter period of the current time. Since the time interval for issuing the traffic data is the same, if the duration of the previous time period of the current time coincides with the duration of the latter time period of the current time, the number of historical traffic flow data included in the previous time period of the current time is the same as the current time. The number of predicted traffic flow data included in the time period is the same; if the duration of the previous time period of the current time is greater than the time length of the next time period of the current time, the number of historical traffic flow data included in the previous time period of the current time is greater than the current time interval The number of predicted traffic flow data included; if the duration of the previous time period of the current time is less than the duration of the next time period of the current time, the number of historical traffic flow data included in the previous time period of the current time is smaller than the prediction included in the latter time period of the current time The number of traffic flow data.
具体的,上述本步骤302中,预先根据道路的历史交通流数据对预置的神经网络模型进行训练,得到根据该道路当前时刻的前一时段的历史交通流数据预测该条道路当前时刻的后一时段的交通流数据的交通流量预测模型;可通过以下方式得到,如图4所示:Specifically, in the foregoing step 302, the preset neural network model is trained according to historical traffic flow data of the road, and the current traffic time data of the previous time period of the current time of the road is predicted to predict the current time of the road. A traffic flow prediction model of traffic flow data for a period of time; can be obtained by the following method, as shown in Figure 4:
步骤401、获取道路的连续P个时段的历史交通流数据,并遍历所述连续P个时段,并执行步骤402; Step 401, obtaining historical traffic flow data of consecutive P time periods of the road, and traversing the consecutive P time periods, and performing step 402;
其中,P个时段的时长一致,且每个时段对应的历史交通流数据包含的交通数据个数相同,所述P为大于1的整数;The durations of the P periods are the same, and the historical traffic flow data corresponding to each period includes the same number of traffic data, and the P is an integer greater than 1.
上述P个时段中相邻的时段可以部分重叠也可以不重叠。相邻时段部分重叠例如:第一时段取9:00-9:30,第二时段取9:02-9:32,第三时段取9:04-9:34,第四时段取9:06-9:36,依此类推。相邻时段不重叠例如:第一时段取9:02-9:30;第二时段取9:32-10:00;第三时段取10:02-10:30,以此类推。The adjacent periods of the above P periods may or may not overlap partially. The adjacent time periods are partially overlapped, for example, the first time period is 9:00-9:30, the second time period is 9:02-9:32, the third time period is 9:04-9:34, and the fourth time period is 9:04-9:34. -9:36, and so on. The adjacent time periods do not overlap, for example, the first time period is 9:02-9:30; the second time period is 9:32-10:00; the third time period is 10:02-10:30, and so on.
以相邻时段部分重叠为例,上述连续P个时段分别对应的历史交通数据流作为神经网络的P组输入数据:Taking the partial overlap of adjacent periods as an example, the historical traffic data streams respectively corresponding to the above consecutive P periods are used as the P group input data of the neural network:
Figure PCTCN2015096341-appb-000006
Figure PCTCN2015096341-appb-000006
其中:0≤ts<24×60;|ts+1-ts|=tinterval;1≤S≤(24×60)/tintervalWhere: 0 ≤ t s < 24 × 60; |t s+1 - t s | = t interval ; 1S ≤ (24 × 60) / t interval .
步骤402、将当前遍历的时段(假设当前遍历时段为第i时段)作为当前时刻的前一时段,将当前遍历的时段对应的历史交通流数据作为输入数据输入至待定神经网络模型中,得到当前时刻的后一时段的预测交通流数据(若第i时段为P时段的第一个时段,则此时的待定神经网络模型为预置的神经网络模型,若第i时段不为P时段的第一个时段,则此时的待定神经网络模型为根据第i-1时段的方差值进行参数调整后的神经网络模型)中,得到当前时刻 的后一时段的预测交通流数据,之后执行步骤403;Step 402: The current traversal period (assuming that the current traversal period is the ith period) is used as the previous period of the current time, and the historical traffic flow data corresponding to the current traversed period is input as input data into the pending neural network model, and the current Predicted traffic flow data for the next period of time (if the i-th period is the first period of the P period, then the pending neural network model at this time is a preset neural network model, if the i-th period is not the first period of the P period In a time period, the pending neural network model at this time is a neural network model adjusted according to the variance value of the i-1th period, and the current time is obtained. Predicting traffic flow data for the next period of time, and then performing step 403;
本步骤402中当前时刻的前一时段的时长可以与当前时刻的后一时段的时长相同,也可以不相同。由于发布交通数据的时间间隔一致,因此,若当前时刻的前一时段的时长与当前时刻的后一时段的时长一致,则当前时刻前一时段包含的历史交通流数据个数与当前时刻后一时段包含的预测交通流数据个数相同。即神经网络模型中输入数据X的数据个数n与输出数据O的数据个数相同。The duration of the previous period of the current time in this step 402 may be the same as or different from the duration of the latter period of the current time. Since the time interval for issuing the traffic data is the same, if the duration of the previous time period of the current time coincides with the duration of the latter time period of the current time, the number of historical traffic flow data included in the previous time period of the current time is the same as the current time. The time period contains the same number of predicted traffic flow data. That is, the number n of data of the input data X in the neural network model is the same as the number of data of the output data O.
步骤403、从当前遍历的时段之后的时段的交通流数据中获取当前时刻的后一时段对应的历史交通流数据,并计算所述当前时刻的后一时段的预测交通流数据与当前时刻的后一时段的历史交通流数据的方差值,之后执行步骤404;Step 403: Obtain historical traffic flow data corresponding to a subsequent time period of the current time from the traffic flow data of the time period after the current traversed time period, and calculate predicted traffic flow data of the subsequent time period of the current time and the current time The variance value of the historical traffic flow data for a period of time, after which step 404 is performed;
Figure PCTCN2015096341-appb-000007
Figure PCTCN2015096341-appb-000007
以前述Dinput为例,该Dinput的P组的历史交通流数据输入至神经网络模型之后,得到的P组预测交通流数据分别为
Figure PCTCN2015096341-appb-000008
Figure PCTCN2015096341-appb-000009
而这P组预测交通流数据分别对应的真实的历史交通流数据为Doutput如下:
Taking the aforementioned Dinput as an example, after the historical traffic flow data of the P group of the Dinput is input to the neural network model, the obtained P group predicted traffic flow data are respectively
Figure PCTCN2015096341-appb-000008
Figure PCTCN2015096341-appb-000009
And the P group predicts the traffic flow data corresponding to the real historical traffic flow data respectively as Doutput as follows:
Figure PCTCN2015096341-appb-000010
Figure PCTCN2015096341-appb-000010
假设步骤402中当前遍历的时段为第p个时段(其中p小于等于P),该第p个时段为当前时刻的前一时段,该第p个时段对应的历史交通流数据为
Figure PCTCN2015096341-appb-000011
将该第p个时段的历史交通流数据输入神经网络模型中得到当前时刻的后一时段的预测交通流数据为Op,该当前时刻的后一时段对应的真实的历史交通流数据为
Figure PCTCN2015096341-appb-000012
具体如下:
It is assumed that the current traversal period in step 402 is the pth time period (where p is less than or equal to P), and the pth time period is the previous time period of the current time, and the historical traffic flow data corresponding to the pth time period is
Figure PCTCN2015096341-appb-000011
Predicted traffic flow data after a period of historical traffic flow data of the p-th input period neural network model obtained at the current time is O p, after the current time period corresponding to a real historical traffic data
Figure PCTCN2015096341-appb-000012
details as follows:
Figure PCTCN2015096341-appb-000013
Figure PCTCN2015096341-appb-000014
Figure PCTCN2015096341-appb-000015
其中
Figure PCTCN2015096341-appb-000016
Figure PCTCN2015096341-appb-000013
with
Figure PCTCN2015096341-appb-000014
Figure PCTCN2015096341-appb-000015
among them
Figure PCTCN2015096341-appb-000016
步骤403计算当前时刻后一时段的预测交通流数据与其对应的历史交通流数据的方差值为:
Figure PCTCN2015096341-appb-000017
Step 403 calculates the variance value of the predicted traffic flow data and the corresponding historical traffic flow data for the next time period of the current time:
Figure PCTCN2015096341-appb-000017
当P个时段中相邻时段不重叠,则前述步骤403中,从当前遍历的时段之后的时段的交通流数据中获取当前时刻的后一时段对应的历史交通流数据,具体包括:When the adjacent time periods of the P time periods are not overlapped, the historical traffic flow data corresponding to the next time period of the current time is obtained from the traffic flow data of the time period after the time period of the current traversal, and specifically includes:
情况1、若当前遍历时段(如第i时段)的时长大于所述当前时刻后一时段的时长时,从所述当前遍历时段的下一时段(即第i+1时段)的交通流数据中获取与所述当前时刻后一时段对应的历史交通流数据。 Case 1. If the duration of the current traversal period (eg, the ith period) is greater than the duration of the next period of the current time, from the traffic flow data of the next period of the current traversal period (ie, the i+1th period) Obtaining historical traffic flow data corresponding to a later period of the current time.
例如:以每隔2分钟发布一次交通数据为例,第一时段取9:02-9:30,对应的历史交通流数据为{P1,P1,…,P15};第二时段取9:32-10:00,对应的历史交通流数据为{P16,P17,…,P30};第三时段取10:02-10:30,对应的历史交通流数据为{P31,P32,…,P45},….;则以第一时段为当前时刻前一时段,则当前时刻后一时段为9:32-9:50,则从第二时段中对应的历史交通流数据中获取当前时刻后一时段对应的历史交通数据流为{P16,P17,…,P25}。For example, taking traffic data every 2 minutes as an example, the first time period is 9:02-9:30, the corresponding historical traffic flow data is {P1, P1,..., P15}; the second time period is 9:32. -10:00, the corresponding historical traffic flow data is {P16, P17, ..., P30}; the third time period is 10:02-10:30, and the corresponding historical traffic flow data is {P31, P32, ..., P45} ,....; then the first time period is the previous time period of the current time, and the current time period is 9:32-9:50, then the current time period is obtained from the corresponding historical traffic flow data in the second time period. The corresponding historical traffic data stream is {P16, P17, ..., P25}.
情况2、若当前遍历时段(假设第i时段)的时长等于所述当前时刻后一时段的时长时,将所述当前遍历时段的下一时段(即第i+1时段)的交通流数据作为所述当前时刻后一时段对应的历史交通流数据。Case 2: If the duration of the current traversal period (assuming the ith period) is equal to the duration of the next period of the current time, the traffic flow data of the next period of the current traversal period (ie, the (i+1)th period) is taken as The historical traffic flow data corresponding to the next time period of the current time.
例如:以每隔2分钟发布一次交通数据为例,第一时段取9:02-9:30,对应的历史交通流数据为{P1,P1,…,P15};第二时段取9:32-10:00,对应的历史交通流数据为{P16,P17,…,P30};第三时段取10:02-10:30,对应的历史交通流数据为{P31,P32,…,P45},….;则以第一时段为当前时刻前一时段,则当前时刻后一时段为9:32-10:00,则将第二时段对应的历史交通流数据作为当前时刻后一时段对应的历史交通数据流为{P16,P17,…,P30}。For example, taking traffic data every 2 minutes as an example, the first time period is 9:02-9:30, the corresponding historical traffic flow data is {P1, P1,..., P15}; the second time period is 9:32. -10:00, the corresponding historical traffic flow data is {P16, P17, ..., P30}; the third time period is 10:02-10:30, and the corresponding historical traffic flow data is {P31, P32, ..., P45} ,....; then the first time period is the previous time period of the current time, and the current time period is 9:32-10:00, then the historical traffic flow data corresponding to the second time period is used as the corresponding time period of the current time. The historical traffic data stream is {P16, P17,..., P30}.
情况3、若当前遍历时段(假设第i时段)的时长小于所述当前时刻后一时段的时长时,从所述当前遍历时段后的至少两个连续时段(如第i+1时段、第i+2时段等)的交通流数据中获取与所述当前时刻后一时段对应的历史交通 流数据。Case 3: if the duration of the current traversal period (assuming the ith period) is less than the duration of the next period of the current time, at least two consecutive periods from the current traversal period (eg, the i+1th period, the i-th Obtaining historical traffic corresponding to the latter period of the current time in the traffic flow data of +2 period, etc.) Stream data.
例如:以每隔2分钟发布一次交通数据为例,第一时段取9:02-9:30,对应的历史交通流数据为{P1,P1,…,P15};第二时段取9:32-10:00,对应的历史交通流数据为{P16,P17,…,P30};第三时段取10:02-10:30,对应的历史交通流数据为{P31,P32,…,P45},….;则以第一时段为当前时刻前一时段,则当前时刻后一时段为9:32-10:12,则从第二时段、第三时段对应的历史交通流数据中获取的当前时刻后一时段对应的历史交通数据流为{P16,P17,…,P36}。For example, taking traffic data every 2 minutes as an example, the first time period is 9:02-9:30, the corresponding historical traffic flow data is {P1, P1,..., P15}; the second time period is 9:32. -10:00, the corresponding historical traffic flow data is {P16, P17, ..., P30}; the third time period is 10:02-10:30, and the corresponding historical traffic flow data is {P31, P32, ..., P45} ,....; then the first time period is the previous time period of the current time, and the current time period is 9:32-10:12, then the current time flow data obtained from the second time period and the third time period is obtained. The historical traffic data flow corresponding to the time period after the time is {P16, P17, ..., P36}.
步骤404、判断步骤403计算得到的所述方差值是否小于等于预置的第一方差阈值;若是,则执行步骤405,若否,则执行步骤406;Step 404, determining whether the variance value calculated in step 403 is less than or equal to the preset first variance threshold; if yes, executing step 405, and if not, executing step 406;
步骤405、将所述待定神经网络模型确定为所述道路对应的交通流量预测模型,并建立所述道路与该交通流量预测模型的对应关系,并保存,结束流程;Step 405: Determine the to-be-determined neural network model as a traffic flow prediction model corresponding to the road, and establish a correspondence between the road and the traffic flow prediction model, and save, and end the process;
步骤406、根据所述方差值调整所述待定神经网络模型的参数,之后执行步骤407; Step 406, adjusting the parameters of the pending neural network model according to the variance value, and then performing step 407;
本步骤406中,具体为根据所述方差值对神经网络模型的权值矩阵V和W进行调整可参见前述内容,在此不再赘述。In this step 406, specifically, the adjustment of the weight matrix V and W of the neural network model according to the variance value can be referred to the foregoing content, and details are not described herein again.
步骤407、将P个时段中所述当前遍历时段的下一时段作为当前遍历的时段,并根据调整参数后的待定神经网络模型,执行步骤402。Step 407: The next time period of the current traversal period in the P time periods is used as the current traversal time period, and step 402 is performed according to the to-be-determined neural network model after adjusting the parameter.
较佳的,针对遍历到最后一个时段的历史交通流数据时,若计算得到的方差值仍然大于等于预置的第一方差阈值,在所述步骤406与步骤407之间,还包括:Preferably, for the historical traffic flow data traversing to the last time period, if the calculated variance value is still greater than or equal to the preset first variance threshold, between step 406 and step 407, the method further includes:
步骤406a、判断所述当前遍历的时段是否为P个时段的最后一个时段,若是,则执行步骤406b,若否,则执行步骤407; Step 406a, it is determined whether the current traversal time period is the last time period of the P time periods, and if so, step 406b is performed, and if not, step 407 is performed;
步骤406b、计算P个时段对应的方差值的和值,之后执行步骤406c; Step 406b, calculating the sum of the variance values corresponding to the P time periods, and then performing step 406c;
步骤406c、判断所述和值是否小于等于预置的第二方差阈值,若是,执行步骤405,其中所述第二方差阈值大于所述第一方差阈值;若否,则根据步 骤406得到的调整参数后的待定神经网络模型重新遍历所述P个时段。 Step 406c, determining whether the sum value is less than or equal to a preset second variance threshold, and if yes, performing step 405, wherein the second variance threshold is greater than the first variance threshold; if not, according to the step The pending neural network model after adjusting the parameters obtained in step 406 re-traverses the P time periods.
在本发明实施例的技术方案中,预先根据道路的历史交通流数据对预置的神经网络模型进行训练,得到能够根据道路当前时刻的前一时段的历史交通流数据预测该条道路当前时刻的后一时段的交通流数据的交通流量预测模型;当需要预测待预测道路未来一时段的交通流数据时,获取与该待预测道路对应的交通流量预测模型,并将该待预测道路的前一时段的历史交通流数据输入至交通流量预测模型中即可得到该待预测道路未来一时段的交通流数据。采用本发明技术方案,由于交通流数据具有很强的非线性和不确定性,而神经网络模型具有较强的非线性预测能力,因此,根据道路的历史交通流数据对神经网络模型进行训练,训练得到的交通流量预测模型能够较为准确的根据道路当前时刻的前一时段交通流数据预测得到当前时刻的后一时段该道路的交通流数据。In the technical solution of the embodiment of the present invention, the preset neural network model is trained according to the historical traffic flow data of the road in advance, and the current time of the road can be predicted according to the historical traffic flow data of the previous time period of the current time of the road. a traffic flow prediction model for traffic flow data in a later period; when it is required to predict traffic flow data for a future period of the road to be predicted, obtaining a traffic flow prediction model corresponding to the road to be predicted, and the previous one of the road to be predicted The historical traffic flow data of the time period is input into the traffic flow prediction model to obtain the traffic flow data of the future predicted time of the road to be predicted. With the technical solution of the present invention, since the traffic flow data has strong nonlinearity and uncertainty, and the neural network model has strong nonlinear prediction capability, the neural network model is trained according to the historical traffic flow data of the road. The traffic flow prediction model obtained by the training can accurately predict the traffic flow data of the road in the latter period of the current time according to the traffic flow data of the previous time of the current time of the road.
实施例二Embodiment 2
为进一步使得本领域技术人员理解本方案,下面以一具体的实例进行描述。To further enable those skilled in the art to understand the present solution, a specific example will be described below.
假设,待预测道路为R0,历史交通流数据为每隔2分钟发布一次,选取的历史交通流数据为9:02-14:00的150个历史交通数据,预置的初始BP神经网络模型的参数如下:Assume that the road to be predicted is R0, the historical traffic flow data is published every 2 minutes, and the selected historical traffic flow data is 150 historical traffic data from 9:02 to 14:00. The preset initial BP neural network model The parameters are as follows:
输入层允许输入数据个数为N=15,中间层(隐层)输出数据个数为M=15,输出层输出数据个数为L=15,第一方差阈值Emin=0.02和训练学习率η=0.1;The input layer allows the number of input data to be N=15, the number of output data in the middle layer (hidden layer) is M=15, the number of output data in the output layer is L=15, the first variance threshold E min = 0.02, and training learning Rate η = 0.1;
BP神经网络模型的权值矩阵V和W,分别如下:The weight matrix V and W of the BP neural network model are as follows:
Figure PCTCN2015096341-appb-000018
Figure PCTCN2015096341-appb-000018
Figure PCTCN2015096341-appb-000019
Figure PCTCN2015096341-appb-000019
由于神经网络模型的输入层允许输入的交通数据N=15,可将每半个小时对应的15个历史交通数据作为一组输入数据,在按照相邻时段重叠28分钟(当然重叠时长也可以小于28分钟)时,可将5个小时划分为136个时段,如第一时段为9:02-9:30,第二时段为9:04-9:32,第三时段为9:06-9:34….;此时也即得到划分出的各时段对应的历史交通流数据集,Since the input layer of the neural network model allows the input traffic data to be N=15, 15 historical traffic data corresponding to each half hour can be used as a set of input data, and overlap for 28 minutes according to adjacent time periods (of course, the overlap duration can also be smaller than In 28 minutes), 5 hours can be divided into 136 time periods, such as the first time period is 9:02-9:30, the second time period is 9:04-9:32, and the third time period is 9:06-9. :34....; At this time, the historical traffic flow data set corresponding to each time period is obtained.
Figure PCTCN2015096341-appb-000020
Figure PCTCN2015096341-appb-000020
由于神经网络模型的输出层输出的数据个数为15个,则分别将第一时段为9:02-9:30,第二时段为9:04-9:32,第三时段为9:06-9:34….作为神经网络模型的输入历史交通流数据,则分别预测得到时段9:32-10:00,10:02-10:30,10:32-11:00….的预测交通流数据,预测交通流数据对应的历史交通流数据(即真实的交通流数据)如下:Since the number of data outputted by the output layer of the neural network model is 15, the first time period is 9:02-9:30, the second time period is 9:04-9:32, and the third time period is 9:06. -9:34.... As the input historical traffic flow data of the neural network model, predict the predicted traffic with time period 9:32-10:00, 10:02-10:30, 10:32-11:00.... The flow data predicts the historical traffic flow data corresponding to the traffic flow data (ie, the actual traffic flow data) as follows:
Figure PCTCN2015096341-appb-000021
Figure PCTCN2015096341-appb-000021
上述历史交通流数据和预置的BP神经网络的参数准备好后,开始执行实施例一中的步骤401至步骤407获得该道路R0对应的BP神经网络模型,也即对上述历史数据流集进行离线训练学习的过程,具体如下:After the historical traffic flow data and the parameters of the preset BP neural network are prepared, the steps 401 to 407 in the first embodiment are started to obtain the BP neural network model corresponding to the road R 0 , that is, the historical data flow set. The process of offline training and learning is as follows:
步骤401:获取道路R0的连续136个时段的历史交通流数据集,从第一 个时段开始遍历;Step 401: Acquire a historical traffic flow data set of consecutive 136 time periods of the road R 0 , and traverse from the first time period;
步骤402:将第一个时段(也即当前遍历的时段)作为当前时刻的前一时段,第一时段对应的历史交通流数据为Step 402: The first time period (that is, the current traversal time period) is used as the previous time period of the current time, and the historical traffic flow data corresponding to the first time period is
Figure PCTCN2015096341-appb-000022
Figure PCTCN2015096341-appb-000022
,将第一时段对应的历史交通流数据输入待定神经网络模型(也即上述预置的BP神经网络模型),得到当前时刻后一时段的预测交通流数据;And inputting historical traffic flow data corresponding to the first time period into a pending neural network model (that is, the preset BP neural network model described above), and obtaining predicted traffic flow data for a later period of the current time;
该步骤402中,得到当前时刻后一时段的预测交通流数据,具体可通过如下两个步骤实现:In the step 402, the predicted traffic flow data of the next time period of the current time is obtained, which can be implemented by the following two steps:
第一步:将第一时段对应的历史交通流数据与神经网络模型的权值矩阵V相乘,得到隐层输出结果:The first step is to multiply the historical traffic flow data corresponding to the first time period and the weight matrix V of the neural network model to obtain a hidden layer output result:
Y1=X1×V;
Figure PCTCN2015096341-appb-000023
Y 1 =X 1 ×V;
Figure PCTCN2015096341-appb-000023
第二步:将隐层输出的结果与权值矩阵W相乘,得到输出层的结果为:Step 2: Multiply the result of the hidden layer output by the weight matrix W to obtain the result of the output layer:
O1=Y1×W;O 1 = Y 1 × W;
Figure PCTCN2015096341-appb-000024
Figure PCTCN2015096341-appb-000024
步骤403:获取当前时刻后一时段对应的历史交通流数据Step 403: Acquire historical traffic flow data corresponding to a time period after the current time
Figure PCTCN2015096341-appb-000025
Figure PCTCN2015096341-appb-000025
针对d1和O1,计算得到两者的方差值为:For d 1 and O 1 , the variance values of the two are calculated as:
Figure PCTCN2015096341-appb-000026
Figure PCTCN2015096341-appb-000026
步骤404:判断方差值E1是否大于等于第一方差阈值0.02,若是,则将预置的神经网络模型确定为道路R0的交通流量预测模型,若否,则执行步骤406;Step 404: Determine whether the variance value E 1 is greater than or equal to the first variance threshold 0.02, and if so, determine the preset neural network model as the traffic flow prediction model of the road R0, and if not, proceed to step 406;
步骤406:根据所述方差值E1调整所述待定神经网络参数(由于是第一时段,因此,这里具体是调整预置的神经网络参数);Step 406: Adjust the pending neural network parameter according to the variance value E 1 (because it is the first time period, therefore, here specifically adjust the preset neural network parameters);
具体的,将上述X1、d1和O1对待定神经网络模型的权值矩阵进行调整如 下:Specifically, the above X 1 , d 1 and O 1 are adjusted to the weight matrix of the neural network model as follows:
w′j,k=wj,k+Δwj,k→wj,kw' j,k =w j,k +Δw j,k →w j,k ;
v′i,j=vi,j+Δvi,j→vi,jv' i,j =v i,j +Δv i,j →v i,j ;
调整之后的权值矩阵V和W为:The adjusted weight matrices V and W are:
Figure PCTCN2015096341-appb-000027
Figure PCTCN2015096341-appb-000027
Figure PCTCN2015096341-appb-000028
Figure PCTCN2015096341-appb-000028
步骤406a:判断当前遍历的第一时段不为136个时段的最后一个时段,执行步骤407; Step 406a: determining that the first time period of the current traversal is not the last time period of 136 time periods, step 407 is performed;
步骤407:将136个时段中的9:02-9:30时段的下一时段9:04-9:32作为当前遍历的时段以及调整参数后的待定神经网络模型跳转至步骤402。Step 407: Jump to step 402 by using the next period 9:04-9:32 of the 9:02-9:30 period of the 136 periods as the current traversal period and the pending neural network model after adjusting the parameters.
通过前述流程,以此类推最终得到道路R0对应的神经网络模型的权值矩阵V和W如下:Through the foregoing process, the weight matrix V and W of the neural network model corresponding to the road R0 are finally obtained as follows:
Figure PCTCN2015096341-appb-000029
Figure PCTCN2015096341-appb-000029
还例如:当前时刻为tc=10:30:00(即上午10点半),当前时刻的前一时段的历史交通流数据如下:For example, the current time is t c =10:30:00 (ie 10:30 am), and the historical traffic flow data of the previous time period of the current time is as follows:
Figure PCTCN2015096341-appb-000030
也即如下表1所示。
Figure PCTCN2015096341-appb-000030
That is, as shown in Table 1 below.
编号Numbering 时间点Time point 输入值input value
11 10:02:0010:02:00 5454
22 10:04:0010:04:00 5555
33 10:06:0010:06:00 5555
44 10:08:0010:08:00 5959
55 10:10:0010:10:00 6060
66 10:12:0010:12:00 6262
77 10:14:0010:14:00 5858
88 10:16:0010:16:00 5353
99 10:18:0010:18:00 5252
1010 10:20:0010:20:00 5454
1111 10:22:0010:22:00 5757
1212 10:24:0010:24:00 5757
1313 10:26:0010:26:00 5757
1414 10:28:0010:28:00 5757
1515 10:30:0010:30:00 5959
表(1)Table 1)
将数据集
Figure PCTCN2015096341-appb-000031
作为神经网络模型的输入数据,得到的输出数据如下:
Data set
Figure PCTCN2015096341-appb-000031
As the input data of the neural network model, the resulting output data is as follows:
Figure PCTCN2015096341-appb-000032
Figure PCTCN2015096341-appb-000032
也即如表(2)所示:That is, as shown in Table (2):
编号Numbering 时间点Time point 输出值output value
11 10:32:0010:32:00 5454
22 10:34:0010:34:00 5353
33 10:36:0010:36:00 5151
44 10:38:0010:38:00 5050
55 10:40:0010:40:00 4949
66 10:42:0010:42:00 4848
77 10:44:0010:44:00 4848
88 10:46:0010:46:00 4747
99 10:48:0010:48:00 4747
1010 10:50:0010:50:00 4848
1111 10:52:0010:52:00 4949
1212 10:54:0010:54:00 5151
1313 10:56:0010:56:00 5151
1414 10:58:0010:58:00 5252
1515 11:00:0011:00:00 5353
表(2)Table 2)
实施例三Embodiment 3
基于前述一种交通流量预测方法同一发明构思,本发明实施例三提供一种交通流量预测装置,其结构示意图如图5所示,包括:训练模块51、存储模块52、历史交通数据获取模块53、交通流量预测模型获取模块54和预测模块55,其中:Based on the foregoing same concept of a traffic flow prediction method, a third embodiment of the present invention provides a traffic flow prediction device, which is shown in FIG. 5 and includes a training module 51, a storage module 52, and a historical traffic data acquisition module 53. The traffic flow prediction model acquisition module 54 and the prediction module 55, wherein:
训练模块51,用于预先根据道路的历史交通流数据对预置的神经网络模型进行训练,得到根据该道路当前时刻的前一时段的历史交通流数据预测该条道路当前时刻的后一时段的交通流数据的交通流量预测模型;The training module 51 is configured to train the preset neural network model according to the historical traffic flow data of the road in advance, and obtain the historical traffic flow data of the previous time period of the current time of the road to predict the time period of the current time of the road. Traffic flow prediction model for traffic flow data;
存储模块52,用于存储训练模块51得到的所述道路与其交通流量预测模型的对应关系;a storage module 52, configured to store a correspondence between the road and the traffic flow prediction model obtained by the training module 51;
历史交通数据获取模块53,用于针对待预测道路,获取该待预测道路的当前时刻的前一时段的历史交通流数据;The historical traffic data obtaining module 53 is configured to acquire historical traffic flow data of a previous time period of the current time of the road to be predicted for the road to be predicted;
交通流量预测模型获取模块54,用于从存储模块52预存的道路与交通流量预测模型的对应关系中,获取所述待预测道路对应的交通流量预测模型;The traffic flow prediction model acquisition module 54 is configured to obtain, from the correspondence between the road and the traffic flow prediction model prestored by the storage module 52, the traffic flow prediction model corresponding to the road to be predicted;
预测模块55,用于将当前时刻的前一时段的历史交通流数据,输入至所述待预测道路对应的交通流量预测模型中,得到当前时刻的后一时段的交通 流数据。The prediction module 55 is configured to input the historical traffic flow data of the previous time period of the current time into the traffic flow prediction model corresponding to the road to be predicted, and obtain the traffic of the next time period of the current time. Stream data.
较佳的,所述训练模块51,如图6所示,具体包括:Preferably, the training module 51, as shown in FIG. 6, specifically includes:
第一获取单元5101,用于获取道路的连续P个时段的历史交通流数据,其中P个时段的时长一致,且每个时段对应的历史交通流数据包含的交通数据个数相同;a first acquisition unit 5101, configured to acquire historical traffic flow data of consecutive P time periods of the road, wherein the durations of the P time periods are consistent, and the historical traffic flow data corresponding to each time period includes the same number of traffic data;
第一遍历单元5102,用于遍历所述连续P个时段;a first traversal unit 5102, configured to traverse the consecutive P time periods;
第一输入单元5103,用于将当前遍历时段作为当前时刻的前一时段,将当前遍历的时段对应的历史交通流数据作为输入数据输入至待定神经网络模型中,得到当前时刻的后一时段的预测交通流数据;The first input unit 5103 is configured to use the current traversal period as the previous time period of the current time, and input the historical traffic flow data corresponding to the current traversed time period as input data into the to-be-determined neural network model, to obtain the next time period of the current time. Forecast traffic flow data;
第二获取单元5104,用于从当前遍历的时段之后的时段的交通流数据中获取当前时刻的后一时段对应的历史交通流数据;a second obtaining unit 5104, configured to acquire historical traffic flow data corresponding to a subsequent time period of the current time from the traffic flow data of the time period after the current traversed time period;
第一方差值确定单元5105,用于计算所述当前时刻的后一时段的预测交通流数据与当前时刻的后一时段的历史交通流数据的方差值;a first variance value determining unit 5105, configured to calculate a variance value of the predicted traffic flow data of the latter time period of the current time and the historical traffic flow data of the latter time period of the current time;
第一判断单元5106,用于判断所述方差值是否小于等于预置的第一方差阈值;若是,则触发第一交通流量预测模型确定单元5107;若否,则触发第一参数调整单元5108;The first determining unit 5106 is configured to determine whether the variance value is less than or equal to a preset first variance threshold; if yes, triggering the first traffic flow prediction model determining unit 5107; if not, triggering the first parameter adjusting unit 5108;
第一交通流量预测模型确定单元5107,用于将所述待定神经网络模型确定为所述道路对应的交通流量预测模型,并建立所述道路与该交通流量预测模型的对应关系,并保存;The first traffic flow prediction model determining unit 5107 is configured to determine the to-be-determined neural network model as a traffic flow prediction model corresponding to the road, and establish a correspondence between the road and the traffic flow prediction model, and save the relationship;
第一参数调整单元5108,用于根据所述方差值调整所述待定神经网络模型的参数。The first parameter adjustment unit 5108 is configured to adjust parameters of the to-be-determined neural network model according to the variance value.
第一触发单元5109,用于将P个时段中所述当前遍历时段的下一时段作为当前遍历的时段,并根据调整参数后的待定神经网络模型,触发所述第一输入单元5103。The first triggering unit 5109 is configured to use the next time period of the current traversal period in the P time periods as the current traversal time period, and trigger the first input unit 5103 according to the to-be-determined neural network model after adjusting the parameter.
较佳的,所述训练模块51,还包括:Preferably, the training module 51 further includes:
第二判断单元5110,用于判断当前遍历的时段是否为P个时段的最后一个时段,若是,则触发第一方差和值确定单元5111;若否,则触发第一触发 单元5109;The second determining unit 5110 is configured to determine whether the current traversal period is the last period of the P periods, and if yes, trigger the first variance sum value determining unit 5111; if not, trigger the first trigger Unit 5109;
第一方差和值确定单元5111,用于计算P个时段对应的方差值的和值;a first variance sum value determining unit 5111, configured to calculate a sum value of the variance values corresponding to the P time periods;
第三判断单元5112,用于判断所述和值是否小于等于预置的第二方差阈值,所述第二方差阈值大于所述第一方差阈值;若是,则触发第一交通流量预测模型确定单元5107,若否,则根据第一参数调整单元5108调整参数后的待定神经网络模型触发所述第一遍历单元5102。The third determining unit 5112 is configured to determine whether the sum value is less than or equal to a preset second variance threshold, where the second variance threshold is greater than the first variance threshold; if yes, triggering the first traffic flow prediction model to determine The unit 5107, if not, triggers the first traversal unit 5102 according to the pending neural network model after the parameter adjustment unit 5108 adjusts the parameter.
较佳的,若所述P个时段的各时段相邻且不重叠,所述第二获取单元5104具体用于:Preferably, if the time periods of the P time periods are adjacent and do not overlap, the second acquiring unit 5104 is specifically configured to:
若当前遍历时段的时长大于所述当前时刻后一时段的时长时,从所述当前遍历时段的下一时段的交通流数据中获取与所述当前时刻后一时段对应的历史交通流数据;If the duration of the current traversal period is greater than the duration of the next period of the current time, the historical traffic flow data corresponding to the later period of the current time is obtained from the traffic flow data of the next period of the current traversal period;
若当前遍历时段的时长等于所述当前时刻后一时段的时长时,将所述当前遍历时段的下一时段的交通流数据作为所述当前时刻后一时段对应的历史交通流数据;If the duration of the current traversal period is equal to the duration of the next period of the current time, the traffic flow data of the next period of the current traversal period is used as historical traffic flow data corresponding to the next period of the current time;
若当前遍历时段的时长小于所述当前时刻后一时段的时长时,从所述当前遍历时段后的至少两个连续时段的交通流数据中获取与所述当前时刻后一时段对应的历史交通流数据。If the duration of the current traversal period is less than the duration of the next period of the current time, the historical traffic flow corresponding to the latter period of the current time is obtained from the traffic flow data of the at least two consecutive periods after the current traversal period data.
实施例四Embodiment 4
本发明实施例四还提供一种交通流量预测模型生成方法,针对每一条道路,方法包括:The fourth embodiment of the present invention further provides a method for generating a traffic flow prediction model. For each road, the method includes:
步骤a、获取道路的连续P个时段的历史交通流数据,其中P个时段的时长一致,且每个时段对应的历史交通流数据包含的交通数据个数相同;Step a: Obtain historical traffic flow data of consecutive P time periods of the road, wherein the durations of the P time periods are consistent, and the historical traffic flow data corresponding to each time period includes the same number of traffic data;
遍历所述连续P个时段,执行以下步骤:To traverse the consecutive P time periods, perform the following steps:
步骤b、将当前遍历的时段作为当前时刻的前一时段,将当前遍历的时段对应的历史交通流数据作为输入数据输入至待定神经网络模型中,得到当前时刻的后一时段的预测交通流数据; Step b: taking the current traversal time period as the previous time period of the current time, inputting the historical traffic flow data corresponding to the current traversing time period as input data into the to-be-determined neural network model, and obtaining predicted traffic flow data of the latter time period of the current time. ;
步骤c、从当前遍历的时段之后的时段的交通流数据中获取当前时刻的后一时段对应的历史交通流数据,并计算所述当前时刻的后一时段的预测交通流数据与当前时刻的后一时段的历史交通流数据的方差值;Step c: Obtain historical traffic flow data corresponding to a subsequent time period of the current time from the traffic flow data of the time period after the current traversed time period, and calculate predicted traffic flow data of the latter time period of the current time and the current time The variance value of historical traffic flow data for a period of time;
该步骤c中,从当前遍历的时段之后的时段的交通流数据中获取当前时刻的后一时段对应的历史交通流数据,具体可包括:In the step c, the historical traffic flow data corresponding to the next time period of the current time is obtained from the traffic flow data of the time period after the current traversing time period, which may specifically include:
若当前遍历时段的时长大于所述当前时刻后一时段的时长时,从所述当前遍历时段的下一时段的交通流数据中获取与所述当前时刻后一时段对应的历史交通流数据;If the duration of the current traversal period is greater than the duration of the next period of the current time, the historical traffic flow data corresponding to the later period of the current time is obtained from the traffic flow data of the next period of the current traversal period;
若当前遍历时段的时长等于所述当前时刻后一时段的时长时,将所述当前遍历时段的下一时段的交通流数据作为所述当前时刻后一时段对应的历史交通流数据;If the duration of the current traversal period is equal to the duration of the next period of the current time, the traffic flow data of the next period of the current traversal period is used as historical traffic flow data corresponding to the next period of the current time;
若当前遍历时段的时长小于所述当前时刻后一时段的时长时,从所述当前遍历时段后的至少两个连续时段的交通流数据中获取与所述当前时刻后一时段对应的历史交通流数据。If the duration of the current traversal period is less than the duration of the next period of the current time, the historical traffic flow corresponding to the latter period of the current time is obtained from the traffic flow data of the at least two consecutive periods after the current traversal period data.
步骤d、判断所述方差值是否小于等于预置的第一方差阈值,若是,则执行步骤e,若否,则执行步骤f;Step d, determining whether the variance value is less than or equal to the preset first variance threshold, and if so, executing step e, if not, executing step f;
步骤e、将所述待定神经网络模型确定为所述道路对应的交通流量预测模型,并建立所述道路与该交通流量预测模型的对应关系,并保存,结束流程;Step e: determining the to-be-determined neural network model as a traffic flow prediction model corresponding to the road, and establishing a correspondence between the road and the traffic flow prediction model, and saving, ending the process;
步骤f、根据所述方差值调整所述待定神经网络模型的参数;Step f: adjusting parameters of the to-be-determined neural network model according to the variance value;
步骤g、将P个时段中所述当前遍历时段的下一时段作为当前遍历的时段,并根据调整参数后的待定神经网络模型,执行步骤b。Step g: Taking the next period of the current traversal period in the P periods as the current traversal period, and performing step b according to the pending neural network model after adjusting the parameters.
优选地,在所述步骤f与步骤g之间,还包括步骤f1-f3:Preferably, between the step f and the step g, the steps f1 - f3 are further included:
步骤f1、判断当前遍历的时段是否为P个时段的最后一个时段,若是,则执行步骤f2,若否,则执行步骤g;Step f1, determining whether the current traversal time period is the last time period of the P time periods, and if so, executing step f2, and if not, executing step g;
步骤f2、计算P个时段对应的方差值的和值;Step f2, calculating a sum of variance values corresponding to P time periods;
步骤f3、判断所述和值是否小于等于预置的第二方差阈值,其中所述第二方差阈值大于所述第一方差阈值;若是,则执行步骤e;若否,则根据步骤 f得到的调整参数后的待定神经网络模型重新遍历所述P个时段。Step f3, determining whether the sum value is less than or equal to a preset second variance threshold, wherein the second variance threshold is greater than the first variance threshold; if yes, executing step e; if not, according to the step The pending neural network model after f obtained the adjusted parameters re-traverses the P time periods.
前述方法流程中各步骤的具体实现可参见前述图4所示的步骤,在此不再赘述。For the specific implementation of each step in the foregoing method, refer to the steps shown in FIG. 4 above, and details are not described herein again.
实施例五Embodiment 5
基于前述实施例四提供的一种交通流量预测模型生成方法的相同构思,本发明实施例五提供一种交通流量预测模型生成装置,该装置包括:Based on the same concept of the traffic flow prediction model generation method provided in the foregoing fourth embodiment, the fifth embodiment of the present invention provides a traffic flow prediction model generation device, where the device includes:
第三获取单元,用于获取道路的连续P个时段的历史交通流数据,其中P个时段的时长一致,且每个时段对应的历史交通流数据包含的交通数据个数相同;a third acquiring unit, configured to acquire historical traffic flow data of consecutive P time periods of the road, wherein the durations of the P time periods are consistent, and the historical traffic flow data corresponding to each time period includes the same number of traffic data;
第二遍历单元,用于遍历所述连续P个时段;a second traversal unit, configured to traverse the consecutive P time periods;
第二输入单元,用于将当前遍历时段作为当前时刻的前一时段,将当前遍历的时段对应的历史交通流数据作为输入数据输入至待定神经网络模型中,得到当前时刻的后一时段的预测交通流数据;a second input unit, configured to use the current traversal period as a previous period of the current time, and input the historical traffic flow data corresponding to the current traversed period as input data into the to-be-determined neural network model, to obtain a prediction of the current time period Traffic flow data;
第四获取单元,用于从当前遍历的时段之后的时段的交通流数据中获取当前时刻的后一时段对应的历史交通流数据;a fourth acquiring unit, configured to acquire historical traffic flow data corresponding to a subsequent time period of the current time from the traffic flow data of the time period after the current traversed time period;
第四获取单元,具体用于:若当前遍历时段的时长大于所述当前时刻后一时段的时长时,从所述当前遍历时段的下一时段的交通流数据中获取与所述当前时刻后一时段对应的历史交通流数据;若当前遍历时段的时长等于所述当前时刻后一时段的时长时,将所述当前遍历时段的下一时段的交通流数据作为所述当前时刻后一时段对应的历史交通流数据;若当前遍历时段的时长小于所述当前时刻后一时段的时长时,从所述当前遍历时段后的至少两个连续时段的交通流数据中获取与所述当前时刻后一时段对应的历史交通流数据。And a fourth acquiring unit, configured to: obtain, after the current time, the traffic flow data of the next time period of the current traversal time period, if the duration of the current traversal time period is greater than the time length of the current time period The historical traffic flow data corresponding to the time period; if the duration of the current traversal period is equal to the duration of the next time period of the current time, the traffic flow data of the next time period of the current traversal time period is used as the corresponding time period of the current time Historical traffic flow data; if the duration of the current traversal period is less than the duration of the next time period of the current time, the traffic flow data of at least two consecutive time periods after the current traversal time period is acquired and the time period after the current time is acquired Corresponding historical traffic flow data.
第二方差值确定单元,用于计算所述当前时刻的后一时段的预测交通流数据与当前时刻的后一时段的历史交通流数据的方差值;a second variance value determining unit, configured to calculate a variance value of the predicted traffic flow data of the latter time period of the current time and the historical traffic flow data of the latter time period of the current time;
第四判断单元,用于判断所述方差值是否小于等于预置的第一方差阈值; 若是,则触发第二交通流量预测模型确定单元;若否,则触发第二参数调整单元;a fourth determining unit, configured to determine whether the variance value is less than or equal to a preset first variance threshold; If yes, triggering the second traffic flow prediction model determining unit; if not, triggering the second parameter adjusting unit;
第二交通流量预测模型确定单元,用于将所述待定神经网络模型确定为所述道路对应的交通流量预测模型,并建立所述道路与该交通流量预测模型的对应关系,并保存;a second traffic flow prediction model determining unit, configured to determine the to-be-determined neural network model as a traffic flow prediction model corresponding to the road, and establish a correspondence between the road and the traffic flow prediction model, and save the relationship;
第二参数调整单元,用于根据所述方差值调整所述待定神经网络模型的参数;a second parameter adjustment unit, configured to adjust parameters of the to-be-determined neural network model according to the variance value;
第二触发单元,用于将P个时段中所述当前遍历时段的下一时段作为当前遍历的时段,并根据调整参数后的待定神经网络模型,触发所述第二输入单元。The second triggering unit is configured to use the next time period of the current traversal period in the P time periods as the current traversal time period, and trigger the second input unit according to the to-be-determined neural network model after adjusting the parameter.
优选地,本发明实施例,前述装置还包括:Preferably, in the embodiment of the present invention, the foregoing apparatus further includes:
第五判断单元,用于判断当前遍历的时段是否为P个时段的最后一个时段,若是,则触发第二方差和值确定单元;若否,则触发所述第二触发单元;a fifth determining unit, configured to determine whether the current traversing period is the last period of the P periods, and if yes, triggering the second variance sum value determining unit; if not, triggering the second trigger unit;
第二方差和值确定单元,用于计算P个时段对应的方差值的和值;a second variance sum value determining unit, configured to calculate a sum value of the variance values corresponding to the P time periods;
第六判断单元,用于判断所述和值是否小于等于预置的第二方差阈值,所述第二方差阈值大于所述第一方差阈值;若是,则触发第二交通流量预测模型确定单元,若否,则根据第二参数调整单元调整参数后的待定神经网络模型,触发所述第二遍历单元。a sixth determining unit, configured to determine whether the sum value is less than or equal to a preset second variance threshold, the second variance threshold is greater than the first variance threshold; if yes, triggering a second traffic flow prediction model determining unit If not, the second traversal unit is triggered according to the pending neural network model after the parameter is adjusted by the second parameter adjustment unit.
前述所示的装置中各个单元的具体实现可参见图6,在此不再赘述。For the specific implementation of each unit in the foregoing device, reference may be made to FIG. 6 , and details are not described herein again.
本发明实施例提供的交通流量预测模块生成方法及装置,根据道路的历史交通流数据对神经网络模型进行训练,以得到能够根据道路当前时刻的前一时段的历史交通流数据预测该条道路当前时刻的后一时段的交通流数据的交通流量预测模型;由于交通流数据具有很强的非线性和不确定性,而神经网络模型具有较强的非线性预测能力,因此,根据道路的历史交通流数据对神经网络模型进行训练,训练得到的交通流量预测模型能够较为准确的根据道路当前时刻的前一时段交通流数据预测得到当前时刻的后一时段该道路的交通流数据。 The method and device for generating a traffic flow prediction module according to an embodiment of the present invention trains a neural network model according to historical traffic flow data of the road, so as to obtain a current traffic flow data of a previous time period of the current time of the road to predict the current road. Traffic flow prediction model of traffic flow data in the latter period of time; because traffic flow data has strong nonlinearity and uncertainty, and neural network model has strong nonlinear prediction ability, therefore, according to the historical traffic of the road The flow data trains the neural network model, and the traffic flow prediction model obtained by the training can accurately predict the traffic flow data of the road in the latter period of the current time according to the traffic flow data of the previous time of the current time of the road.
本领域内的技术人员应明白,本发明的实施例可提供为方法、系统、或计算机程序产品。因此,本发明可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that embodiments of the present invention can be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or a combination of software and hardware. Moreover, the invention can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) including computer usable program code.
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (system), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or FIG. These computer program instructions can be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing device to produce a machine for the execution of instructions for execution by a processor of a computer or other programmable data processing device. Means for implementing the functions specified in one or more of the flow or in a block or blocks of the flow chart.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。The computer program instructions can also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer readable memory produce an article of manufacture comprising the instruction device. The apparatus implements the functions specified in one or more blocks of a flow or a flow and/or block diagram of the flowchart.
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。These computer program instructions can also be loaded onto a computer or other programmable data processing device such that a series of operational steps are performed on a computer or other programmable device to produce computer-implemented processing for execution on a computer or other programmable device. The instructions provide steps for implementing the functions specified in one or more of the flow or in a block or blocks of a flow diagram.
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。While the preferred embodiment of the invention has been described, it will be understood that Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and the modifications and
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要 求及其等同技术的范围之内,则本发明也意图包含这些改动和变型在内。 It is apparent that those skilled in the art can make various modifications and variations to the invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention are claimed in the present invention The invention is also intended to cover such modifications and variations within the scope of the invention.

Claims (12)

  1. 一种交通流量预测方法,其特征在于,所述方法包括:A traffic flow prediction method, the method comprising:
    针对待预测道路,获取该待预测道路的当前时刻的前一时段的历史交通流数据;Obtaining historical traffic flow data of a previous time period of the current time of the road to be predicted for the road to be predicted;
    从预存的道路与交通流量预测模型的对应关系中,获取所述待预测道路对应的交通流量预测模型;其中,道路对应的交通流量预测模型为预先根据道路的历史交通流数据对预置的神经网络模型进行训练,得到根据该道路当前时刻的前一时段的历史交通流数据预测该条道路当前时刻的后一时段的交通流数据的交通流量预测模型;Obtaining a traffic flow prediction model corresponding to the road to be predicted from a corresponding relationship between the pre-stored road and the traffic flow prediction model; wherein the traffic flow prediction model corresponding to the road is a pre-set nerve according to historical traffic flow data of the road in advance The network model is trained to obtain a traffic flow prediction model for predicting traffic flow data for a subsequent period of the current time of the road according to historical traffic flow data of a previous time period of the current time of the road;
    将当前时刻的前一时段的历史交通流数据,输入至所述待预测道路对应的交通流量预测模型中,得到当前时刻的后一时段的交通流数据。The historical traffic flow data of the previous time period of the current time is input into the traffic flow prediction model corresponding to the road to be predicted, and the traffic flow data of the latter time period of the current time is obtained.
  2. 如权利要求1所述的方法,其特征在于,预先根据道路的历史交通流数据对预置的神经网络模型进行训练,得到根据该道路当前时刻的前一时段的历史交通流数据预测该条道路当前时刻的后一时段的交通流数据的交通流量预测模型,具体包括:The method according to claim 1, wherein the preset neural network model is trained in advance based on historical traffic flow data of the road, and the road is predicted based on historical traffic flow data of a previous time period of the current time of the road. The traffic flow prediction model of the traffic flow data in the latter period of the current time includes:
    步骤a、获取道路的连续P个时段的历史交通流数据,其中P个时段的时长一致,且每个时段对应的历史交通流数据包含的交通数据个数相同;Step a: Obtain historical traffic flow data of consecutive P time periods of the road, wherein the durations of the P time periods are consistent, and the historical traffic flow data corresponding to each time period includes the same number of traffic data;
    遍历所述连续P个时段,执行以下步骤:To traverse the consecutive P time periods, perform the following steps:
    步骤b、将当前遍历的时段作为当前时刻的前一时段,将当前遍历的时段对应的历史交通流数据作为输入数据输入至待定神经网络模型中,得到当前时刻的后一时段的预测交通流数据;Step b: taking the current traversal time period as the previous time period of the current time, inputting the historical traffic flow data corresponding to the current traversing time period as input data into the to-be-determined neural network model, and obtaining predicted traffic flow data of the latter time period of the current time. ;
    步骤c、从当前遍历的时段之后的时段的交通流数据中获取当前时刻的后一时段对应的历史交通流数据,并计算所述当前时刻的后一时段的预测交通流数据与当前时刻的后一时段的历史交通流数据的方差值;Step c: Obtain historical traffic flow data corresponding to a subsequent time period of the current time from the traffic flow data of the time period after the current traversed time period, and calculate predicted traffic flow data of the latter time period of the current time and the current time The variance value of historical traffic flow data for a period of time;
    步骤d、判断所述方差值是否小于等于预置的第一方差阈值,若是,则执行步骤e,若否,则执行步骤f; Step d, determining whether the variance value is less than or equal to the preset first variance threshold, and if so, executing step e, if not, executing step f;
    步骤e、将所述待定神经网络模型确定为所述道路对应的交通流量预测模型,并建立所述道路与该交通流量预测模型的对应关系,并保存,结束流程;Step e: determining the to-be-determined neural network model as a traffic flow prediction model corresponding to the road, and establishing a correspondence between the road and the traffic flow prediction model, and saving, ending the process;
    步骤f、根据所述方差值调整所述待定神经网络模型的参数;Step f: adjusting parameters of the to-be-determined neural network model according to the variance value;
    步骤g、将P个时段中所述当前遍历时段的下一时段作为当前遍历的时段,并根据调整参数后的待定神经网络模型,执行步骤b。Step g: Taking the next period of the current traversal period in the P periods as the current traversal period, and performing step b according to the pending neural network model after adjusting the parameters.
  3. 如权利要求2所述的方法,其特征在于,在所述步骤f与步骤g之间,还包括:The method of claim 2, further comprising: between the step f and the step g,
    步骤f1、判断当前遍历的时段是否为P个时段的最后一个时段,若是,则执行步骤f2,若否,则执行步骤g;Step f1, determining whether the current traversal time period is the last time period of the P time periods, and if so, executing step f2, and if not, executing step g;
    步骤f2、计算P个时段对应的方差值的和值;Step f2, calculating a sum of variance values corresponding to P time periods;
    步骤f3、判断所述和值是否小于等于预置的第二方差阈值,其中所述第二方差阈值大于所述第一方差阈值;若是,则执行步骤e;若否,则根据步骤f得到的调整参数后的待定神经网络模型重新遍历所述P个时段。Step f3, determining whether the sum value is less than or equal to a preset second variance threshold, wherein the second variance threshold is greater than the first variance threshold; if yes, performing step e; if not, obtaining according to step f The pending neural network model after adjusting the parameters re-traverses the P time periods.
  4. 如权利要求2所述的方法,其特征在于,若所述P个时段的各时段相邻且不重叠,则步骤c中从当前遍历的时段之后的时段的交通流数据中获取当前时刻的后一时段对应的历史交通流数据,具体包括:The method according to claim 2, wherein if each of the P time periods is adjacent and does not overlap, then the current time is obtained from the traffic flow data of the time period after the current traversed time period in step c The historical traffic flow data corresponding to a period of time includes:
    若当前遍历时段的时长大于所述当前时刻后一时段的时长时,从所述当前遍历时段的下一时段的交通流数据中获取与所述当前时刻后一时段对应的历史交通流数据;If the duration of the current traversal period is greater than the duration of the next period of the current time, the historical traffic flow data corresponding to the later period of the current time is obtained from the traffic flow data of the next period of the current traversal period;
    若当前遍历时段的时长等于所述当前时刻后一时段的时长时,将所述当前遍历时段的下一时段的交通流数据作为所述当前时刻后一时段对应的历史交通流数据;If the duration of the current traversal period is equal to the duration of the next period of the current time, the traffic flow data of the next period of the current traversal period is used as historical traffic flow data corresponding to the next period of the current time;
    若当前遍历时段的时长小于所述当前时刻后一时段的时长时,从所述当前遍历时段后的至少两个连续时段的交通流数据中获取与所述当前时刻后一时段对应的历史交通流数据。If the duration of the current traversal period is less than the duration of the next period of the current time, the historical traffic flow corresponding to the latter period of the current time is obtained from the traffic flow data of the at least two consecutive periods after the current traversal period data.
  5. 一种交通流量预测模型生成方法,其特征在于,包括:A method for generating a traffic flow prediction model, comprising:
    针对每条道路,执行以下步骤: For each road, perform the following steps:
    步骤a、获取道路的连续P个时段的历史交通流数据,其中P个时段的时长一致,且每个时段对应的历史交通流数据包含的交通数据个数相同;Step a: Obtain historical traffic flow data of consecutive P time periods of the road, wherein the durations of the P time periods are consistent, and the historical traffic flow data corresponding to each time period includes the same number of traffic data;
    遍历所述连续P个时段,执行以下步骤:To traverse the consecutive P time periods, perform the following steps:
    步骤b、将当前遍历的时段作为当前时刻的前一时段,将当前遍历的时段对应的历史交通流数据作为输入数据输入至待定神经网络模型中,得到当前时刻的后一时段的预测交通流数据;Step b: taking the current traversal time period as the previous time period of the current time, inputting the historical traffic flow data corresponding to the current traversing time period as input data into the to-be-determined neural network model, and obtaining predicted traffic flow data of the latter time period of the current time. ;
    步骤c、从当前遍历的时段之后的时段的交通流数据中获取当前时刻的后一时段对应的历史交通流数据,并计算所述当前时刻的后一时段的预测交通流数据与当前时刻的后一时段的历史交通流数据的方差值;Step c: Obtain historical traffic flow data corresponding to a subsequent time period of the current time from the traffic flow data of the time period after the current traversed time period, and calculate predicted traffic flow data of the latter time period of the current time and the current time The variance value of historical traffic flow data for a period of time;
    步骤d、判断所述方差值是否小于等于预置的第一方差阈值,若是,则执行步骤e,若否,则执行步骤f;Step d, determining whether the variance value is less than or equal to the preset first variance threshold, and if so, executing step e, if not, executing step f;
    步骤e、将所述待定神经网络模型确定为所述道路对应的交通流量预测模型,并建立所述道路与该交通流量预测模型的对应关系,并保存,结束流程;Step e: determining the to-be-determined neural network model as a traffic flow prediction model corresponding to the road, and establishing a correspondence between the road and the traffic flow prediction model, and saving, ending the process;
    步骤f、根据所述方差值调整所述待定神经网络模型的参数;Step f: adjusting parameters of the to-be-determined neural network model according to the variance value;
    步骤g、将P个时段中所述当前遍历时段的下一时段作为当前遍历的时段,并根据调整参数后的待定神经网络模型,执行步骤b。Step g: Taking the next period of the current traversal period in the P periods as the current traversal period, and performing step b according to the pending neural network model after adjusting the parameters.
  6. 如权利要求5所述的方法,其特征在于,在所述步骤f与步骤g之间,还包括:The method of claim 5, further comprising: between step f and step g,
    步骤f1、判断当前遍历的时段是否为P个时段的最后一个时段,若是,则执行步骤f2,若否,则执行步骤g;Step f1, determining whether the current traversal time period is the last time period of the P time periods, and if so, executing step f2, and if not, executing step g;
    步骤f2、计算P个时段对应的方差值的和值;Step f2, calculating a sum of variance values corresponding to P time periods;
    步骤f3、判断所述和值是否小于等于预置的第二方差阈值,其中所述第二方差阈值大于所述第一方差阈值;若是,则执行步骤e;若否,则根据步骤f得到的调整参数后的待定神经网络模型重新遍历所述P个时段。Step f3, determining whether the sum value is less than or equal to a preset second variance threshold, wherein the second variance threshold is greater than the first variance threshold; if yes, performing step e; if not, obtaining according to step f The pending neural network model after adjusting the parameters re-traverses the P time periods.
  7. 一种交通流量预测装置,其特征在于,所述装置包括:A traffic flow prediction device, characterized in that the device comprises:
    训练模块,用于预先根据道路的历史交通流数据对预置的神经网络模型进行训练,得到根据该道路当前时刻的前一时段的历史交通流数据预测该条 道路当前时刻的后一时段的交通流数据的交通流量预测模型;a training module, configured to pre-prepare the preset neural network model according to historical traffic flow data of the road, and obtain the historical traffic flow data of the previous time period of the current time of the road to predict the article a traffic flow prediction model of traffic flow data for a later period of the current time of the road;
    存储模块,用于存储预训练模块得到的所述道路与其交通流量预测模型的对应关系;a storage module, configured to store a correspondence between the road and a traffic flow prediction model obtained by the pre-training module;
    历史交通数据获取模块,用于针对待预测道路,获取该待预测道路的当前时刻的前一时段的历史交通流数据;a historical traffic data obtaining module, configured to acquire historical traffic flow data of a previous time period of the current time of the road to be predicted for the road to be predicted;
    交通流量预测模型获取模块,用于从存储模块预存的道路与交通流量预测模型的对应关系中,获取所述待预测道路对应的交通流量预测模型;a traffic flow prediction model acquisition module, configured to acquire a traffic flow prediction model corresponding to the road to be predicted from a correspondence between a road and a traffic flow prediction model prestored by the storage module;
    预测模块,用于将当前时刻的前一时段的历史交通流数据,输入至所述待预测道路对应的交通流量预测模型中,得到当前时刻的后一时段的交通流数据。The prediction module is configured to input the historical traffic flow data of the previous time period of the current time into the traffic flow prediction model corresponding to the road to be predicted, and obtain the traffic flow data of the latter time period of the current time.
  8. 如权利要求7所述的交通流量预测装置,其特征在于,所述训练模块,具体包括:The traffic flow prediction apparatus according to claim 7, wherein the training module specifically includes:
    第一获取单元,用于获取道路的连续P个时段的历史交通流数据,其中P个时段的时长一致,且每个时段对应的历史交通流数据包含的交通数据个数相同;a first acquisition unit, configured to acquire historical traffic flow data of consecutive P time periods of the road, wherein the durations of the P time periods are consistent, and the historical traffic flow data corresponding to each time period includes the same number of traffic data;
    第一遍历单元,用于遍历所述连续P个时段;a first traversal unit, configured to traverse the consecutive P time periods;
    第一输入单元,用于将当前遍历时段作为当前时刻的前一时段,将当前遍历的时段对应的历史交通流数据作为输入数据输入至待定神经网络模型中,得到当前时刻的后一时段的预测交通流数据;a first input unit, configured to use the current traversal period as a previous time period of the current time, and input historical traffic flow data corresponding to the current traversed time period as input data into the to-be-determined neural network model, to obtain a prediction of the current time period Traffic flow data;
    第二获取单元,用于从当前遍历的时段之后的时段的交通流数据中获取当前时刻的后一时段对应的历史交通流数据;a second acquiring unit, configured to acquire historical traffic flow data corresponding to a subsequent time period of the current time from the traffic flow data of the time period after the current traversed time period;
    第一方差值确定单元,用于计算所述当前时刻的后一时段的预测交通流数据与当前时刻的后一时段的历史交通流数据的方差值;a first variance value determining unit, configured to calculate a variance value of the predicted traffic flow data of the latter time period of the current time and the historical traffic flow data of the latter time period of the current time;
    第一判断单元,用于判断所述方差值是否小于等于预置的第一方差阈值;若是,则触发第一交通流量预测模型确定单元;若否,则触发第一参数调整单元;a first determining unit, configured to determine whether the variance value is less than or equal to a preset first variance threshold; if yes, triggering a first traffic flow prediction model determining unit; if not, triggering a first parameter adjusting unit;
    第一交通流量预测模型确定单元,用于将所述待定神经网络模型确定为 所述道路对应的交通流量预测模型,并建立所述道路与该交通流量预测模型的对应关系,并保存;a first traffic flow prediction model determining unit, configured to determine the pending neural network model as a traffic flow prediction model corresponding to the road, and establishing a correspondence between the road and the traffic flow prediction model, and saving;
    第一参数调整单元,用于根据所述方差值调整所述待定神经网络模型的参数;a first parameter adjustment unit, configured to adjust parameters of the to-be-determined neural network model according to the variance value;
    第一触发单元,用于将P个时段中所述当前遍历时段的下一时段作为当前遍历的时段,并根据调整参数后的待定神经网络模型,触发所述第一输入单元。The first triggering unit is configured to use the next time period of the current traversal period in the P time periods as the current traversal time period, and trigger the first input unit according to the to-be-determined neural network model after adjusting the parameter.
  9. 如权利要求8所述的交通流量预测装置,其特征在于,所述训练模块,还包括:The traffic flow prediction apparatus according to claim 8, wherein the training module further comprises:
    第二判断单元,用于判断当前遍历的时段是否为P个时段的最后一个时段,若是,则触发第一方差和值确定单元;若否,则触发所述第一触发单元;a second determining unit, configured to determine whether the current traversal period is the last period of the P periods, and if yes, triggering the first variance sum value determining unit; if not, triggering the first trigger unit;
    第一方差和值确定单元,用于计算P个时段对应的方差值的和值;a first variance sum value determining unit, configured to calculate a sum value of the variance values corresponding to the P time periods;
    第三判断单元,用于判断所述和值是否小于等于预置的第二方差阈值,所述第二方差阈值大于所述第一方差阈值;若是,则触发第一交通流量预测模型确定单元,若否,则根据第一参数调整单元调整参数后的待定神经网络模型,触发所述第一遍历单元。a third determining unit, configured to determine whether the sum value is less than or equal to a preset second variance threshold, the second variance threshold is greater than the first variance threshold; if yes, triggering the first traffic flow prediction model determining unit If not, the first traversal unit is triggered according to the pending neural network model after the parameter is adjusted by the first parameter adjustment unit.
  10. 如权利要求8所述的交通流量预测装置,其特征在于,若所述P个时段的各时段相邻且不重叠,所述第二获取单元具体用于:The traffic flow prediction apparatus according to claim 8, wherein the second acquisition unit is specifically configured to: if the time periods of the P time periods are adjacent and do not overlap:
    若当前遍历时段的时长大于所述当前时刻后一时段的时长时,从所述当前遍历时段的下一时段的交通流数据中获取与所述当前时刻后一时段对应的历史交通流数据;If the duration of the current traversal period is greater than the duration of the next period of the current time, the historical traffic flow data corresponding to the later period of the current time is obtained from the traffic flow data of the next period of the current traversal period;
    若当前遍历时段的时长等于所述当前时刻后一时段的时长时,将所述当前遍历时段的下一时段的交通流数据作为所述当前时刻后一时段对应的历史交通流数据;If the duration of the current traversal period is equal to the duration of the next period of the current time, the traffic flow data of the next period of the current traversal period is used as historical traffic flow data corresponding to the next period of the current time;
    若当前遍历时段的时长小于所述当前时刻后一时段的时长时,从所述当前遍历时段后的至少两个连续时段的交通流数据中获取与所述当前时刻后一时段对应的历史交通流数据。 If the duration of the current traversal period is less than the duration of the next period of the current time, the historical traffic flow corresponding to the latter period of the current time is obtained from the traffic flow data of the at least two consecutive periods after the current traversal period data.
  11. 一种交通流量预测模型生成装置,其特征在于,包括:A traffic flow prediction model generating device, comprising:
    第三获取单元,用于获取道路的连续P个时段的历史交通流数据,其中P个时段的时长一致,且每个时段对应的历史交通流数据包含的交通数据个数相同;a third acquiring unit, configured to acquire historical traffic flow data of consecutive P time periods of the road, wherein the durations of the P time periods are consistent, and the historical traffic flow data corresponding to each time period includes the same number of traffic data;
    第二遍历单元,用于遍历所述连续P个时段;a second traversal unit, configured to traverse the consecutive P time periods;
    第二输入单元,用于将当前遍历时段作为当前时刻的前一时段,将当前遍历的时段对应的历史交通流数据作为输入数据输入至待定神经网络模型中,得到当前时刻的后一时段的预测交通流数据;a second input unit, configured to use the current traversal period as a previous period of the current time, and input the historical traffic flow data corresponding to the current traversed period as input data into the to-be-determined neural network model, to obtain a prediction of the current time period Traffic flow data;
    第四获取单元,用于从当前遍历的时段之后的时段的交通流数据中获取当前时刻的后一时段对应的历史交通流数据;a fourth acquiring unit, configured to acquire historical traffic flow data corresponding to a subsequent time period of the current time from the traffic flow data of the time period after the current traversed time period;
    第二方差值确定单元,用于计算所述当前时刻的后一时段的预测交通流数据与当前时刻的后一时段的历史交通流数据的方差值;a second variance value determining unit, configured to calculate a variance value of the predicted traffic flow data of the latter time period of the current time and the historical traffic flow data of the latter time period of the current time;
    第四判断单元,用于判断所述方差值是否小于等于预置的第一方差阈值;若是,则触发第二交通流量预测模型确定单元;若否,则触发第二参数调整单元;a fourth determining unit, configured to determine whether the variance value is less than or equal to a preset first variance threshold; if yes, triggering a second traffic flow prediction model determining unit; if not, triggering a second parameter adjusting unit;
    第二交通流量预测模型确定单元,用于将所述待定神经网络模型确定为所述道路对应的交通流量预测模型,并建立所述道路与该交通流量预测模型的对应关系,并保存;a second traffic flow prediction model determining unit, configured to determine the to-be-determined neural network model as a traffic flow prediction model corresponding to the road, and establish a correspondence between the road and the traffic flow prediction model, and save the relationship;
    第二参数调整单元,用于根据所述方差值调整所述待定神经网络模型的参数;a second parameter adjustment unit, configured to adjust parameters of the to-be-determined neural network model according to the variance value;
    第二触发单元,用于将P个时段中所述当前遍历时段的下一时段作为当前遍历的时段,并根据调整参数后的待定神经网络模型,触发所述第二输入单元。The second triggering unit is configured to use the next time period of the current traversal period in the P time periods as the current traversal time period, and trigger the second input unit according to the to-be-determined neural network model after adjusting the parameter.
  12. 如权利要求11所述的装置,其特征在于,还包括:The device of claim 11 further comprising:
    第五判断单元,用于判断当前遍历的时段是否为P个时段的最后一个时段,若是,则触发第二方差和值确定单元;若否,则触发所述第二触发单元;a fifth determining unit, configured to determine whether the current traversing period is the last period of the P periods, and if yes, triggering the second variance sum value determining unit; if not, triggering the second trigger unit;
    第二方差和值确定单元,用于计算P个时段对应的方差值的和值; a second variance sum value determining unit, configured to calculate a sum value of the variance values corresponding to the P time periods;
    第六判断单元,用于判断所述和值是否小于等于预置的第二方差阈值,所述第二方差阈值大于所述第一方差阈值;若是,则触发第二交通流量预测模型确定单元,若否,则根据第二参数调整单元调整参数后的待定神经网络模型,触发所述第二遍历单元。 a sixth determining unit, configured to determine whether the sum value is less than or equal to a preset second variance threshold, the second variance threshold is greater than the first variance threshold; if yes, triggering a second traffic flow prediction model determining unit If not, the second traversal unit is triggered according to the pending neural network model after the parameter is adjusted by the second parameter adjustment unit.
PCT/CN2015/096341 2014-12-16 2015-12-03 Traffic flow prediction method, and prediction model generation method and device WO2016095708A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410785171.XA CN105788249B (en) 2014-12-16 2014-12-16 A kind of traffic flow forecasting method, prediction model generation method and device
CN201410785171.X 2014-12-16

Publications (1)

Publication Number Publication Date
WO2016095708A1 true WO2016095708A1 (en) 2016-06-23

Family

ID=56125888

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/096341 WO2016095708A1 (en) 2014-12-16 2015-12-03 Traffic flow prediction method, and prediction model generation method and device

Country Status (2)

Country Link
CN (1) CN105788249B (en)
WO (1) WO2016095708A1 (en)

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108345857A (en) * 2018-02-09 2018-07-31 北京天元创新科技有限公司 A kind of region crowd density prediction technique and device based on deep learning
CN108399749A (en) * 2018-03-14 2018-08-14 西南交通大学 A kind of traffic trip needing forecasting method in short-term
CN109032038A (en) * 2018-09-04 2018-12-18 南宁学院 A kind of sewage treatment control system based on intensified learning
CN109462853A (en) * 2018-11-05 2019-03-12 武汉虹信技术服务有限责任公司 A kind of network capacity prediction technique based on neural network model
CN109711640A (en) * 2019-01-23 2019-05-03 北京工业大学 A kind of Short-time Traffic Flow Forecasting Methods based on fuzzy C-mean algorithm magnitude of traffic flow cluster and error feedback convolutional neural networks
CN109978040A (en) * 2019-03-19 2019-07-05 西南交通大学 A kind of traffic transport power distribution forecasting method
CN110020475A (en) * 2019-04-03 2019-07-16 北京工业大学 A kind of Markov particle filter method of forecasting traffic flow
CN110046711A (en) * 2018-12-29 2019-07-23 阿里巴巴集团控股有限公司 A kind of aspect of model elimination method and device
CN110276474A (en) * 2019-05-22 2019-09-24 南京理工大学 A kind of track traffic station passenger flow forecasting in short-term
CN111339156A (en) * 2020-02-07 2020-06-26 京东城市(北京)数字科技有限公司 Long-term determination method and device of business data and computer readable storage medium
CN111507499A (en) * 2019-12-05 2020-08-07 阿里巴巴集团控股有限公司 Construction method, test method, device and system of model for prediction
CN111639791A (en) * 2020-05-11 2020-09-08 同济大学 Traffic flow prediction method, system, storage medium and terminal
CN111797768A (en) * 2020-07-06 2020-10-20 华侨大学 Automatic real-time recognition method and system for multiple reasons of urban road traffic congestion
WO2020224445A1 (en) * 2019-05-08 2020-11-12 阿里巴巴集团控股有限公司 Method and apparatus for processing traffic flow path distribution information, and electronic device
CN112820120A (en) * 2020-12-30 2021-05-18 杭州趣链科技有限公司 Multi-party traffic flow space-time cross validation method based on alliance chain
CN113537595A (en) * 2021-07-16 2021-10-22 上海电气风电集团股份有限公司 Model training method, wind power prediction method, system, device and medium
CN113706863A (en) * 2021-08-05 2021-11-26 青岛海信网络科技股份有限公司 Road traffic state prediction method
CN114550453A (en) * 2022-02-23 2022-05-27 阿里巴巴(中国)有限公司 Model training method, model determination method, electronic device, and computer storage medium
CN114944057A (en) * 2022-04-21 2022-08-26 中山大学 Road network traffic flow data restoration method and system
CN114973640A (en) * 2021-02-24 2022-08-30 阿里巴巴集团控股有限公司 Traffic flow prediction method, device and system
CN115273497A (en) * 2022-08-02 2022-11-01 河北雄安荣乌高速公路有限公司 Highway traffic cooperative control method, electronic device and storage medium

Families Citing this family (26)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106355879A (en) * 2016-09-30 2017-01-25 西安翔迅科技有限责任公司 Time-space correlation-based urban traffic flow prediction method
CN108257378B (en) * 2016-12-29 2020-05-19 杭州海康威视数字技术股份有限公司 Traffic flow prediction method and device
CN106710222B (en) * 2017-03-22 2019-07-02 广东工业大学 A kind of traffic flow forecasting method and device
CN107038478B (en) * 2017-04-20 2023-10-27 百度在线网络技术(北京)有限公司 Road condition prediction method and device, computer equipment and readable medium
CN107894970A (en) * 2017-12-06 2018-04-10 广东机场白云信息科技有限公司 Terminal leaves the port the Forecasting Methodology and system of number
CN108364463B (en) * 2018-01-30 2020-07-31 重庆交通大学 Traffic flow prediction method and system
CN108777805B (en) * 2018-05-17 2021-01-22 北京奇艺世纪科技有限公司 Detection method and device for illegal access request, central control server and system
CN108960496B (en) * 2018-06-26 2021-07-23 浙江工业大学 Deep learning traffic flow prediction method based on improved learning rate
CN110969275B (en) * 2018-09-30 2024-01-23 杭州海康威视数字技术股份有限公司 Traffic flow prediction method and device, readable storage medium and electronic equipment
CN109191846B (en) * 2018-10-12 2021-03-09 国网浙江省电力有限公司温州供电公司 Traffic travel flow prediction method
CN109615852B (en) * 2018-11-20 2021-03-30 上海海事大学 Method for rapidly predicting road traffic flow distribution under sudden accident
CN109300310B (en) * 2018-11-26 2021-09-17 平安科技(深圳)有限公司 Traffic flow prediction method and device
CN109598381B (en) * 2018-12-05 2023-04-18 武汉理工大学 Short-term traffic flow prediction method based on state frequency memory neural network
CN109583656B (en) * 2018-12-06 2022-05-10 重庆邮电大学 Urban rail transit passenger flow prediction method based on A-LSTM
CN109658741A (en) * 2018-12-12 2019-04-19 中国船舶重工集团公司第七0九研究所 A kind of sector short term traffic forecasting method and system
CN109741604A (en) * 2019-03-05 2019-05-10 南通大学 Based on tranquilization shot and long term memory network model prediction intersection traffic method of flow
WO2021058100A1 (en) * 2019-09-25 2021-04-01 Huawei Technologies Co., Ltd. Multisensory learning system for traffic prediction
CN111291924B (en) * 2020-01-17 2023-06-06 同济大学 Geometric algebra depth neural network model method for long-term traffic speed prediction
CN111341098B (en) * 2020-02-18 2021-07-27 北京中旖新能源有限公司 Congestion state prediction method and device
CN111341099B (en) * 2020-02-27 2022-05-10 阿里巴巴集团控股有限公司 Data processing method and device and electronic equipment
CN111985619B (en) * 2020-08-18 2024-03-08 中冶南方城市建设工程技术有限公司 Urban single intersection control method based on short-time traffic flow prediction
CN113762578A (en) * 2020-12-28 2021-12-07 京东城市(北京)数字科技有限公司 Training method and device of flow prediction model and electronic equipment
CN112651361A (en) * 2020-12-31 2021-04-13 维特瑞交通科技有限公司 Monitoring method based on dynamic traffic flow
CN113112795B (en) * 2021-04-06 2022-01-21 中移(上海)信息通信科技有限公司 Road condition prediction method, device and equipment
CN114091357B (en) * 2022-01-19 2022-05-06 杭州海康威视数字技术股份有限公司 Traffic flow prediction method, traffic flow prediction device, electronic device, and storage medium
CN117829612A (en) * 2024-03-04 2024-04-05 北京帮安迪信息科技股份有限公司 Park safety early warning method

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH076290A (en) * 1993-06-21 1995-01-10 Toshiba Corp Traffic flow prediction device
JPH0729087A (en) * 1993-07-13 1995-01-31 Mitsubishi Electric Corp Device for predicting traffic quantity
CN102496284A (en) * 2011-12-24 2012-06-13 重庆大学 Method for acquiring and predicting road traffic flow
CN102622418A (en) * 2012-02-21 2012-08-01 北京联合大学 Prediction device and equipment based on BP (Back Propagation) nerve network

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE10022812A1 (en) * 2000-05-10 2001-11-22 Daimler Chrysler Ag Method for determining the traffic situation on the basis of reporting vehicle data for a traffic network with traffic-regulated network nodes
CN102646332B (en) * 2011-02-21 2014-03-12 日电(中国)有限公司 Traffic state estimation device and method based on data fusion
CN102682345B (en) * 2012-01-11 2015-10-14 河南科技大学 Based on the traffic flow forecasting method of two variable optimal learning rate Fast Learning neural network
CN104134351B (en) * 2014-08-14 2016-08-03 中国科学院自动化研究所 A kind of Short-time Traffic Flow Forecasting Methods

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH076290A (en) * 1993-06-21 1995-01-10 Toshiba Corp Traffic flow prediction device
JPH0729087A (en) * 1993-07-13 1995-01-31 Mitsubishi Electric Corp Device for predicting traffic quantity
CN102496284A (en) * 2011-12-24 2012-06-13 重庆大学 Method for acquiring and predicting road traffic flow
CN102622418A (en) * 2012-02-21 2012-08-01 北京联合大学 Prediction device and equipment based on BP (Back Propagation) nerve network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
DU, GUOMING ET AL.: "Fast Second Order BP Neural Networks and Its Application for Forecast of Road Traffic Volume", CENTRAL SOUTH HIGHWAY ENGINEERING, vol. 31, no. 2, 30 April 2006 (2006-04-30), pages 48 - 50 *

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108345857A (en) * 2018-02-09 2018-07-31 北京天元创新科技有限公司 A kind of region crowd density prediction technique and device based on deep learning
CN108399749A (en) * 2018-03-14 2018-08-14 西南交通大学 A kind of traffic trip needing forecasting method in short-term
CN109032038A (en) * 2018-09-04 2018-12-18 南宁学院 A kind of sewage treatment control system based on intensified learning
CN109462853A (en) * 2018-11-05 2019-03-12 武汉虹信技术服务有限责任公司 A kind of network capacity prediction technique based on neural network model
CN109462853B (en) * 2018-11-05 2022-01-14 武汉虹信技术服务有限责任公司 Network capacity prediction method based on neural network model
CN110046711B (en) * 2018-12-29 2023-08-04 创新先进技术有限公司 Model feature eliminating method and device
CN110046711A (en) * 2018-12-29 2019-07-23 阿里巴巴集团控股有限公司 A kind of aspect of model elimination method and device
CN109711640A (en) * 2019-01-23 2019-05-03 北京工业大学 A kind of Short-time Traffic Flow Forecasting Methods based on fuzzy C-mean algorithm magnitude of traffic flow cluster and error feedback convolutional neural networks
CN109978040A (en) * 2019-03-19 2019-07-05 西南交通大学 A kind of traffic transport power distribution forecasting method
CN110020475B (en) * 2019-04-03 2023-10-10 北京工业大学 Markov particle filtering method for traffic flow prediction
CN110020475A (en) * 2019-04-03 2019-07-16 北京工业大学 A kind of Markov particle filter method of forecasting traffic flow
WO2020224445A1 (en) * 2019-05-08 2020-11-12 阿里巴巴集团控股有限公司 Method and apparatus for processing traffic flow path distribution information, and electronic device
CN110276474A (en) * 2019-05-22 2019-09-24 南京理工大学 A kind of track traffic station passenger flow forecasting in short-term
CN111507499A (en) * 2019-12-05 2020-08-07 阿里巴巴集团控股有限公司 Construction method, test method, device and system of model for prediction
CN111507499B (en) * 2019-12-05 2023-05-26 阿里巴巴集团控股有限公司 Method, device and system for constructing model for prediction and testing method
CN111339156A (en) * 2020-02-07 2020-06-26 京东城市(北京)数字科技有限公司 Long-term determination method and device of business data and computer readable storage medium
CN111339156B (en) * 2020-02-07 2023-09-26 京东城市(北京)数字科技有限公司 Method, apparatus and computer readable storage medium for long-term determination of business data
CN111639791A (en) * 2020-05-11 2020-09-08 同济大学 Traffic flow prediction method, system, storage medium and terminal
CN111797768A (en) * 2020-07-06 2020-10-20 华侨大学 Automatic real-time recognition method and system for multiple reasons of urban road traffic congestion
CN111797768B (en) * 2020-07-06 2023-05-12 华侨大学 Automatic real-time identification method and system for multiple reasons of urban road traffic jam
CN112820120A (en) * 2020-12-30 2021-05-18 杭州趣链科技有限公司 Multi-party traffic flow space-time cross validation method based on alliance chain
CN114973640A (en) * 2021-02-24 2022-08-30 阿里巴巴集团控股有限公司 Traffic flow prediction method, device and system
CN113537595A (en) * 2021-07-16 2021-10-22 上海电气风电集团股份有限公司 Model training method, wind power prediction method, system, device and medium
CN113706863B (en) * 2021-08-05 2022-08-02 青岛海信网络科技股份有限公司 Road traffic state prediction method
CN113706863A (en) * 2021-08-05 2021-11-26 青岛海信网络科技股份有限公司 Road traffic state prediction method
CN114550453A (en) * 2022-02-23 2022-05-27 阿里巴巴(中国)有限公司 Model training method, model determination method, electronic device, and computer storage medium
CN114550453B (en) * 2022-02-23 2023-09-26 阿里巴巴(中国)有限公司 Model training method, model determining method, electronic device and computer storage medium
CN114944057A (en) * 2022-04-21 2022-08-26 中山大学 Road network traffic flow data restoration method and system
CN114944057B (en) * 2022-04-21 2023-07-25 中山大学 Road network traffic flow data restoration method and system
CN115273497A (en) * 2022-08-02 2022-11-01 河北雄安荣乌高速公路有限公司 Highway traffic cooperative control method, electronic device and storage medium

Also Published As

Publication number Publication date
CN105788249A (en) 2016-07-20
CN105788249B (en) 2018-09-28

Similar Documents

Publication Publication Date Title
WO2016095708A1 (en) Traffic flow prediction method, and prediction model generation method and device
CN110858973B (en) Cell network flow prediction method and device
MX2019000713A (en) Distributed machine learning systems, apparatus, and methods.
JP2018522325A5 (en)
EP2562700A3 (en) Method and system for optimization of resources
Gao et al. Modeling and predicting retweeting dynamics via a mixture process
RU2014125223A (en) COOKING MANAGEMENT
JP2012014715A5 (en)
WO2014055987A3 (en) Hygiene monitoring system and methods thereof
WO2015048466A3 (en) Computerized systems and methods related to controlled content optimization
Jiang BP neural network algorithm optimized by genetic algorithm and its simulation
CN108216311A (en) A kind of rail traffic dispatching method based on big data and Internet of Things
JP2015533245A5 (en)
CN108877224B (en) A kind of Short-time Traffic Flow Forecasting Methods carrying out Estimating Confidence Interval
JP2013058095A5 (en)
Krushel et al. Forecasting model of small city depopulation processes and possibilities of their prevention
Siri Predicting Students’ Academic Dropout Using Artificial Neural Network
Li et al. Application of time-series autoregressive integrated moving average model in predicting the epidemic situation of newcastle disease
RU160582U1 (en) DEVICE FOR CALCULATING THE RISK OF MAINTENANCE OF THE REQUIRED LEVEL OF QUALITY OF SAMPLES OF ROCKET-ARTILLERY WEAPONS UNDER DISCRETE PRODUCTION
Deman et al. Estimation of Antarctic sea ice primary production inferred from biomass accumulation
Aryanti et al. The application of fuzzy time series Singh for forecasting bandwidth network demand
Nohara et al. Real-time reservoir operation for water supply considering middle-range operational ensemble forecasts of precipitation in Japan
Narapusetty et al. Ensemble Logistic Regression to Forecast and Monitor Different Phases of Drought over Contiguous United States
Park et al. The Guy-Greenbrier seismic sequence revisited with deep learning
Kao et al. Uncertainty Quantification of Water Quality in Tamsui River in Taiwan

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 15869216

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15869216

Country of ref document: EP

Kind code of ref document: A1