CN104021665A - Gene search short time traffic flow forecasting method - Google Patents

Gene search short time traffic flow forecasting method Download PDF

Info

Publication number
CN104021665A
CN104021665A CN201410249337.6A CN201410249337A CN104021665A CN 104021665 A CN104021665 A CN 104021665A CN 201410249337 A CN201410249337 A CN 201410249337A CN 104021665 A CN104021665 A CN 104021665A
Authority
CN
China
Prior art keywords
traffic flow
chromosome
gene
data
time
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201410249337.6A
Other languages
Chinese (zh)
Other versions
CN104021665B (en
Inventor
钱伟
杨矿利
杨蒙蒙
陈琳
赵运基
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Henan University of Technology
Original Assignee
Henan University of Technology
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 Henan University of Technology filed Critical Henan University of Technology
Priority to CN201410249337.6A priority Critical patent/CN104021665B/en
Publication of CN104021665A publication Critical patent/CN104021665A/en
Application granted granted Critical
Publication of CN104021665B publication Critical patent/CN104021665B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention discloses a gene search short time traffic flow forecasting method. The method includes the following steps that (1) when traffic flow data are collected, it is guaranteed that the collected data include a certain number of working day data, non-working day data and major holiday and festival data, namely the diversity of a database is guaranteed; (2) binary coding is conduced on collected continuous time period traffic flow data, so that a short time traffic flow forecasting gene pool is established; (3) binary coding is conduced on current continuous time period traffic flow data; (4) the most similar chromosome populations are searched for by comparing current traffic flow data chromogenes with historical traffic flow data chromogenes in the short time traffic flow forecasting gene pool; (5) the deviation values of all the chromogenes in the similar populations are figured out; (6) forecasting gene segments of three chromosomes with the smallest deviation values are decoded, the mean value of the decoded values of the three forecasting gene segments is taken to be used as a final forecasting result, hence, the forecasting precision is higher than that of a model which is forecasted through the data of the same day or the historical data of the past several days, and the method is an effective short time traffic flow forecasting method.

Description

Gene search Short-time Traffic Flow Forecasting Methods
Technical field
The present invention relates to a kind of gene search Short-time Traffic Flow Forecasting Methods that can realize intelligent traffic administration system.
Background technology
Since entering the new century, China's economy grows continuously and fast, and a large amount of automobiles enter daily life, has also brought the problems such as traffic congestion, traffic pollution, traffic hazard simultaneously.Under current road conditions, intelligent transportation system is the method for relevant issues in a kind of effective solution field of traffic.In Intelligent traffic management systems, forecasting traffic flow control method, as fundamental research, is the key that realizes Intelligent traffic management systems, significant.
Single Short-time Traffic Flow Forecasting Methods all requires unique information characteristics and specific applicable elements at present, cause single forecast model not high to complicated traffic flow forecasting precision, and often needed to carry out large quantitative analysis and judge to select the best approach before prediction.Some short-time traffic flow forecast combined methods often can not be taken into account accuracy and the real-time of prediction simultaneously, although these some combined methods wherein improve precision of prediction to a certain extent, but its complicated operation, labor capacity are larger, be unfavorable for carrying out arithmetic for real-time traffic flow prediction.The open text of patent that for example number of patent application is 200910100395.1, adopts the method for intelligences combination, by the prediction output of the historical method of average and neural network model, carries out fuzzy combination and obtain the prediction output of built-up pattern.The weak point that the method exists is more complicated for the anabolic process of two Seed models, and workload is large, and need to carry out working day, weekend, great festivals or holidays of classification prediction, the prediction accuracy that guarantee is higher to traffic flow data.Number of patent application is 201210186056.1 patent, adopts the method for weighted array, and predicting the outcome of k nearest neighbor method is weighted to summation with predicting the outcome of fuzzy neural network, predicts the outcome as final built-up pattern.The weak point that the method exists is that k nearest neighbor predicted method is made a prediction to the traffic flow situation of next time period by the distance between sample in historical data base and current traffic flow situation, but distance only reflects current point and k nearest neighbor " near property ", can not directly reflect " shape similarity " between them, shape similarity directly reflects the development and change rule of traffic flow.And in the time that traffic flow data storehouse is larger, k nearest neighbor method predetermined speed is slower.
Summary of the invention
The object of the invention is to overcome the deficiencies in the prior art and provide a kind of to improve the accuracy of short-time traffic flow forecast and the gene of real-time search Short-time Traffic Flow Forecasting Methods.
The object of the present invention is achieved like this: a kind of gene search Short-time Traffic Flow Forecasting Methods, it is characterized in that, and comprise the following steps:
Step 1), data acquisition:
When traffic flow data is gathered, ensure to comprise in the data that collect a certain amount of nonworkdays data and great festivals or holidays data, ensure the diversity of database;
Step 2), historical traffic flow data coding:
Utilize current t-3, t-2, the traffic flow data of t-1 time period is predicted the magnitude of traffic flow of t time period, choose the traffic flow data q (t-3) of continuous 4 time periods, q (t-2), q (t-1), the assortment of genes of q (t) is as a chromosome C, specifically for different traffic flow data storehouse sizes and the prediction accuracy requiring, select section traffic flow data continuous time of different length to predict current traffic flow situation, utilize t-m, t-m+1, t-2, the traffic flow data q (t-m) of t-1 time period, q (t-m+1), q (t-2), q (t-1) predicts the magnitude of traffic flow of t time period, wherein m is positive natural number, in chromosome C, comprise comparison genetic fragment D 1with predicted gene fragment D 2, D 1by the gene of q (t-3), q (t-2), q (t-1) correspondence combine D 2by gene corresponding to q (t) composition,
Step 3), current traffic flow data coding:
When the current t time period, the magnitude of traffic flow was predicted, t-3, the t-2 before the t time period, the assortment of genes of the traffic flow data of tri-time periods of t-1 are as a chromosome Y 1this chromogene is 36 binary coded value, wherein first 12 is that hundred corresponding binary coded value of traffic flow numeral combine, middle 12 is that ten corresponding binary coded value of traffic flow numeral combine, and latter 12 is that a traffic flow numeral corresponding binary coded value combines;
Chromosome C in short-time traffic flow forecast gene pool is because of with predicted gene fragment D 2so it is 48 binary coded value; For the ease of comparing with chromosome C, to chromosome Y 1repair, increase by 12 and be encoded to 0 amorph fragment 000000000000, the chromosome after repairing is 48 binary coded value, is designated as match-on criterion chromosome Y;
Step 4), search for similar chromosome population:
In short-time traffic flow forecast gene pool, search for the chromosome C identical with front 18 genes of match-on criterion chromosome Y as initial population, in the time that short-time traffic flow forecast gene pool is larger, select the more homologous genes of multidigit, to improve search efficiency, initial population quantity is defined as P, in the time of P > 10, taking the 19th genic value of match-on criterion chromosome Y as standard, in initial population, continue the search chromosome C identical with the 19th genic value of match-on criterion chromosome Y, then again add up qualified similar chromosome sum, if P is still greater than 10, taking the 20th genic value of match-on criterion chromosome Y as standard, until when P < 10, stop, this is initial population quantity,
Step 5), similar chromosome deviate calculate:
Each chromosome in initial population all contains 48 genes, and according to search condition, front 18 genes are just the same, and 48 genes of chromosome C are divided into 16 genetic fragments, and every three genes are a genetic fragment, and the deviate of each genetic fragment is designated as because front 18 genes are just the same, front 6 genetic fragments are the same, when calculation deviation value, calculate since the 7th genetic fragment;
Every three genes are a genetic fragment, are that the position of the binary value that these three gene pairss are answered is the same because in t-3, t-2, corresponding traffic flow data binary code of t-1 time period, and in the time of calculation deviation value, they have congruency; For each chromosome C in initial population n, n is positive natural number, and n < 10, chromosome C narbitrary genetic fragment calculating principle in the time calculating with the deviation value of match-on criterion chromosome Y all different; Concrete formula is as follows:
Chromosome C in initial population P n, n is positive natural number, and n < 10, a i genetic fragment and i genetic fragment of match-on criterion chromosome Y have a gene different (a=0,1,2,3), chromosome C in initial population P ni its deviate of genetic fragment be:
&Delta; n i = a &times; 2 b &times; 10 c ,
In formula 2 bfor decimal system transforming relationship corresponding to this genetic fragment, 10 crepresent that this gene position is that binary coded value corresponding to ten of traffic flow numerals or individual position combines;
Chromosome C in initial population P ntotal departure value:
&Delta; n = &Delta; n 7 + &Delta; n 8 + &Delta; n 9 + &Delta; n 10 + &Delta; n 11 + &Delta; n 12 ;
Step 6), predicted gene fragment decoding and prediction:
Choose deviate Δ nthree minimum chromosome C n, n=1,2,3, by the predicted gene fragment D in every item chromosome 2be decoded as decimal number and be respectively S 1, S 2, S 3, they are the magnitude of traffic flow of time period similar to the current t time period magnitude of traffic flow in historical data base, the value S that utilizes them to predict the magnitude of traffic flow of current t time period is:
S = S 1 + S 2 + S 3 3 .
The present invention has following good effect:
Accuracy: the gene search procedure that the present invention proposes, by chromosomal binary code in current traffic flow situation chromosome and short-time traffic flow forecast gene pool is compared by turn, is searched for the most similar chromosome.Because the singularity of this law coding, so the essence of search is that the size of data of continuous three time periods of short-term traffic flow is approached by turn simultaneously, the sample standard deviation searching is like this to possess the high quality samples of " shape similarity " with current traffic flow situation.Therefore the prediction accuracy of this method is also high compared with k nearest neighbor, and this method can make a prediction to current traffic flow situation based on infinitely great traffic flow data storehouse in theory, and therefore precision of prediction is the highest in all methods.
Rapidity: gene search procedure utilizes scale-of-two to carry out gene code to historical traffic flow data, the sample after coding is arranged according to binary sized in short-time traffic flow forecast gene pool.Therefore in search when the most similar sample, can realize in short-time traffic flow forecast gene pool location fast according to the size of current traffic flow situation binary code, extract the most similar initial sample population.
Simplification: Classical forecast method essence is to predict by the rule between mathematical formulae computational data, and conventionally working day, nonworkdays, great festivals or holidays separately need to be predicted for the precision that improves prediction.Gene search procedure is different from Classical forecast algorithm principle, by traffic flow situation is carried out to binary coding, utilize the method for gene coupling and predict, having avoided a large amount of mathematical computations, and without to separately predicting working day, nonworkdays, great festivals or holidays.Because the traffic flow situation between them does not possess similarity, in the time that searching for, gene is independent of each other.So the gene search procedure simple possible that the present invention proposes, efficiency is high, and precision of prediction is high, is a kind of effective Short-time Traffic Flow Forecasting Methods, and it predicts the outcome can provide foundation with the service of control for vehicle supervision department carries out traffic guidance.
Portable: gene search procedure is different from Classical forecast algorithm mechanism, only need a large amount of traffic flow data storehouses as support, just can predict fast and accurately current traffic flow situation.Therefore this method can be transplanted under the situation of different time interval, different vehicle flowrate radixes and predict.
Brief description of the drawings
Fig. 1 is gene search model Forecasting Methodology process flow diagram provided by the invention.
Embodiment
As shown in Figure 1, gene search Short-time Traffic Flow Forecasting Methods of the present invention comprises the following steps:
Step 1), data acquisition:
When traffic flow data is gathered, ensure to comprise in the data that collect a certain amount of nonworkdays data and great festivals or holidays data, i.e. the diversity of database.Because when every class traffic flow data is predicted, all need to just can make accurately prediction based on a certain amount of such data, the diversity of database can ensure nonworkdays and festivals or holidays forecasting traffic flow accuracy.
Step 2), historical traffic flow data coding:
Choose the assortment of genes of traffic flow data q (t-3), q (t-2), q (t-1), q (t) of continuous four time periods as a chromosome C, Duan Yue continuous time wherein choosing is many, and it is more accurate to predict.In chromosome C, comprise comparison genetic fragment D 1with predicted gene fragment D 2.D 1by the gene of q (t-3), q (t-2), q (t-1) correspondence combine D 2by gene corresponding to q (t) composition.Specific coding process is as follows:
Adopt binary coding to encode respectively to the traffic flow data of continuous four time periods.In the process of coding, the traffic flow data of establishing four time periods is three figure places, mends work 0 if indivedual data are double-digit hundred.The traffic flow digit order number of each time period is 9 to the maximum, and corresponding binary coding is 1001, so bits per inch word should be made up of tetrad code in the process of coding, the traffic flow numeral of each time period is 12 binary codes.
First of q (t-3), q (t-2), binary code that three traffic flow datas of q (t-1) are corresponding is successively placed on together, as 1-3 the gene loci of chromosome C.Wherein the first bit binary number of binary code corresponding to t-3 time period is as first gene loci of chromosome C, the first bit binary number of binary code corresponding to t-2 time period is as second gene loci of chromosome C, and the first bit binary number of string of binary characters corresponding to t-1 time period is as the 3rd gene loci of chromosome C.The second of binary code corresponding three traffic flow datas is successively placed on together, as chromosomal 4-6 gene loci.The rest may be inferred, completes the comparison genetic fragment D of chromosome C 1coding work.The binary code that q (t) is corresponding is directly added in comparison genetic fragment D 1after, as the predicted gene fragment D in chromosome C 2.Successively the data of continuous four time periods of historical traffic flow are completed to coding work, set up short-time traffic flow forecast gene pool.
Using q (t-3), q (t-2), q (t-1) and q (t) separately encode be because the binary code of q (t-3), q (t-2), q (t-1) in the time that gene mate as comparing genetic fragment D 1, for identifying fast the similar chromosome C of short-time traffic flow forecast gene pool.After the match is successful, the predicted gene fragment D that q (t) is corresponding 2represent the magnitude of traffic flow of corresponding historical time section similar with the magnitude of traffic flow of current t time period in short-term traffic flow historical data base, therefore directly to predicted gene fragment D 2decode and can obtain the magnitude of traffic flow of the corresponding historical time section similar with the current t time period magnitude of traffic flow, be convenient to next step and fast the magnitude of traffic flow of current t time period predicted.
Coding example is as follows, is provided with traffic flow sequence [181,186,203,251]:
To after 181 binary codings being:
000110000001
To after 186 binary codings being:
000110000110
To after 203 binary codings being:
001000000011
To after 251 binary codings being:
001001010001
First of the binary code of first three traffic flow data is 0, and the chromosome 1-3 position gene after restructuring is 000.Three binary code seconds are 0, and the chromosome 4-6 position gene after restructuring is 000.Three the 3rd of binary codes are 0,0,1, and the chromosome 7-9 position gene after restructuring is 001.The rest may be inferred compares genetic fragment D 1be 000000001110110000000000000010011101.251 binary coding be 001001010001, it is as the predicted gene fragment D in chromosome 2directly be added in comparison genetic fragment D 1below.So the gene of final chromosome C is:
000000001110110000000000000010011101001001010001。
Step 3), current traffic flow data coding:
When the magnitude of traffic flow of current t time period is predicted, by t-3, t-2 before the t time period, the traffic flow data of tri-time periods of t-1 according to comparison genetic fragment D 1coding method encode, obtain a chromosome Y after restructuring 1; This chromogene is 36 binary codes; Wherein first 12 is that hundred corresponding binary coded value of traffic flow numeral combine, and middle 12 is that ten corresponding binary coded value of traffic flow numeral combine, and latter 12 is that a traffic flow numeral corresponding binary coded value combines.
Chromosome C in short-time traffic flow forecast gene pool is because of with predicted gene fragment D 2so it is 48 binary codes.For the ease of with short-time traffic flow forecast gene pool in chromosome C compare, so to chromosome Y 1repair, increase by 12 and be encoded to 0 amorph fragment 000000000000.
This genetic fragment, without in all senses, just increases for the ease of gene coupling.Chromosome after repairing is designated as Y, and it is called to match-on criterion chromosome.
Step 4), search for similar chromosome population:
While coupling in short-time traffic flow forecast gene pool, that utilizes chromosome C in front 36 genes of chromosome Y and short-time traffic flow forecast gene pool compares genetic fragment D 1carry out Rapid matching, detailed process is as follows:
In short-time traffic flow forecast gene pool, search for the chromosome C identical with front 18 genes of match-on criterion chromosome Y as initial population (in the time that short-time traffic flow forecast gene pool is larger, can select the more homologous genes of multidigit).Initial population quantity is defined as P, in the time of P > 10, taking the 19th genic value of match-on criterion chromosome Y as standard, in initial population, continue search and the 19th the chromosome C that genic value is identical of match-on criterion chromosome Y, then again add up the sum of qualified chromosome C.If P is still greater than 10, taking the 20th genic value of match-on criterion chromosome Y as standard, until when P < 10, stop, this is initial population quantity.
Chromogene in short-time traffic flow forecast gene pool after binary coding is arranged according to binary code size order, and therefore initial population is a fixing continuum in short-time traffic flow forecast gene pool, and location is simple.
Step 5), similar chromosome deviate calculate:
In the initial population forming after search, each chromosome C n(n is positive natural number and n < 10) is all different with the similarity of match-on criterion chromosome Y, and the non-similarity degree standard of weighing both is deviate Δ nsize.
Each chromosome in initial population all contains 48 genes, and according to search condition, front 18 genes are just the same.48 genes are divided into 16 genetic fragments, and the deviate of each genetic fragment is designated as because just the same according to front 18 genes of search condition, front 6 genetic fragments are the same, and deviate is 0, therefore calculate since the 7th genetic fragment when calculation deviation value.
The binary number that every three gene pairss are answered is a genetic fragment, because in t-3, t-2, the corresponding binary code of t-1 time period traffic flow data, the position of the binary number that these three gene pairss are answered is the same, and in the time of calculation deviation value, they have congruency.For each chromosome C in initial population narbitrary genetic fragment of (n is positive natural number and n < 10) calculating principle in the time of the deviate of calculating and match-on criterion chromosome Y is all different.Concrete formula is as follows:
Chromosome C in initial population P n, n is positive natural number, and n < 10, a i genetic fragment and i genetic fragment of match-on criterion chromosome Y have a gene different (a=0,1,2,3), chromosome C in initial population P ni its deviate of genetic fragment be:
In formula 2 bfor decimal system transforming relationship corresponding to this genetic fragment, 10 crepresent that this gene position is that binary coded value corresponding to ten of traffic flow numerals or individual position combines;
Chromosome C in initial population P ntotal departure value:
&Delta; n = &Delta; n 7 + &Delta; n 8 + &Delta; n 9 + &Delta; n 10 + &Delta; n 11 + &Delta; n 12 ;
Chromosome C in initial population nthe 7th genetic fragment of (n is positive natural number and n < 10) is that the 7th genetic fragment of 19-21 position genic value and match-on criterion chromosome Y is that 19-21 position genic value has a the different (a=0 of gene, 1,2,3), chromosome C in initial population nthe 7th its deviate of genetic fragment of (n is positive natural number and n < 10) is:
&Delta; n 7 = a &times; 2 1 &times; 10 ,
In formula 2 1for decimal system transforming relationship corresponding to this genetic fragment, 10 represent that this gene position is that ten corresponding binary coded value of traffic flow numeral combine.
Chromosome C in initial population nthe 8th its deviate of genetic fragment of (n is positive natural number and n < 10) is:
&Delta; n 8 = b &times; 2 0 &times; 10 ,
B in formula (b=0,1,2,3) represents chromosome C in this initial population nin the 8th genetic fragment of (n is positive natural number and n < 10) from gene number different in the 8th genetic fragment of match-on criterion chromosome Y, 2 0for decimal system transforming relationship corresponding to this genetic fragment, 10 represent that this gene position is that ten corresponding binary coded value of traffic flow numeral combine.
Chromosome C in initial population nthe 9th its deviate of genetic fragment of (n is positive natural number and n < 10) is:
&Delta; n 9 = b &times; 2 3 &times; 1 ,
C in formula (c=0,1,2,3) represents chromosome C in this initial population nin the 9th genetic fragment of (n is positive natural number and n < 10) from gene number different in the 9th genetic fragment of match-on criterion chromosome Y, 2 3for decimal system transforming relationship corresponding to this genetic fragment, 1 represents that this gene position is that a traffic flow numeral binary coded value that position is corresponding combines.
Chromosome C in initial population P nthe 10th its deviate of genetic fragment of (n is positive natural number and n < 10) is:
&Delta; n 10 = d &times; 2 2 &times; 1 ,
D in formula (d=0,1,2,3) represents chromosome C in this initial population nin the 10th genetic fragment of (n is positive natural number and n < 10) from gene number different in the 10th genetic fragment of match-on criterion chromosome Y, 2 2for decimal system transforming relationship corresponding to this genetic fragment, 1 represents that this gene position is that a traffic flow numeral binary coded value that position is corresponding combines.
Chromosome C in initial population P nthe 11st its deviate of genetic fragment of (n is positive natural number and n < 10) is:
&Delta; n 11 = e &times; 2 1 &times; 1 ,
E in formula (e=0,1,2,3) represents chromosome C in this initial population nin the 11st genetic fragment of (n is positive natural number and n < 10) from gene number different in the 11st genetic fragment of match-on criterion chromosome Y, 2 1for decimal system transforming relationship corresponding to this genetic fragment, 1 represents that this gene position is that a traffic flow numeral binary coded value that position is corresponding combines.
Chromosome C in initial population P nthe 12nd its deviate of genetic fragment of (n is positive natural number and n < 10) is:
&Delta; n 12 = f &times; 2 0 &times; 1 ,
F in formula (f=0,1,2,3) represents chromosome C in this initial population nin the 12nd genetic fragment of (n is positive natural number and n < 10) from gene number different in the 12nd genetic fragment of match-on criterion chromosome Y, 2 0for decimal system transforming relationship corresponding to this genetic fragment, 1 represents that this gene position is that a traffic flow numeral binary coded value that position is corresponding combines.
Chromosome C in initial population P nthe total departure value of (n is positive natural number and n < 10):
&Delta; n = &Delta; n 7 + &Delta; n 8 + &Delta; n 9 + &Delta; n 10 + &Delta; n 11 + &Delta; n 12 .
Example is as follows:
Be provided with traffic flow sequence [181,186,203,251], this traffic flow sequence chromogene is:
00000000111011000000000 00000 10 011 101001001010001
If the traffic flow situation of current continuous three time periods is:
[182183212] genic value after coding is:
000000001110000000001000000111010
Deviate is calculated as follows:
First after increasing the amorph position of 12 0, be:
00000000111011000000000 10000 00 111 010000000000000
Then mate with chromogene C:
00000000111011000000000 00000 10 011 101001001010001
By coupling can find out, two chromogenes front 18 just the same, therefore this chromosome is similar chromosome.Article two, chromosomal the 8th, 10,11 genetic fragments have a binary code different, and the 12nd genetic fragment has 3 binary codes different, show that according to each genetic fragment deviate computing formula this chromosomal deviate is:
Δ n=1×2 0×10+1×2 2×1+1×2 1×1+3×2 0×1=19。
Step 6), predicted gene fragment decoding and prediction:
Choose deviate Δ nthree minimum chromosome C n(n=1,2,3), by the predicted gene fragment D in every item chromosome 2be decoded as decimal number and be respectively S 1, S 2, S 3.They are the magnitude of traffic flow of time period similar to the current t time period magnitude of traffic flow in historical data base, and the value S that utilizes them to predict the magnitude of traffic flow of current t time period is:
S = S 1 + S 2 + S 3 3 .
Example is as follows:
Three chromogenes that rear gene matching value maximum is calculated in design are respectively:
00000000ll101100000000000000l00l110l00l00l010001
00000000l1l0l100000000000l0l00000l0000l00l00l00l
00000000l1l0l1000000001000000l1l001100l00l0l0l0l
These three chromosomal predicted gene fragments are decoded, calculate 12 tens digits that binary code is corresponding after every chromosome.Computation rule is the corresponding decimal system traffic flow numeral of every tetrad code, after three chromosome predicted gene fragment decodings, is respectively 251,249,255, substitution formula can be calculated genetic search algorithm predicted value is 252.
When concrete enforcement, utilize toroid winding vehicle detection card to add up the magnitude of traffic flow of every day, statistical interval is 10min.Vehicle flowrate after statistics is utilized to matlab programming, set up short-time traffic flow forecast gene pool.In order to improve the precision of prediction, when traffic flow data is gathered, ensure to comprise in the data that collect a certain amount of nonworkdays data and great festivals or holidays data.
Forecasting traffic flow result is mainly used in road network and coordinates to control the dynamic traffic guidance of implementing and shielding based on LED.System in controlled region all main crossing and and part critical path on toroid winding vehicle detection card has been installed, for detecting in real time various transport information, be transferred to traffic control center by dedicated network, and be stored in traffic information database.

Claims (1)

1. a gene search Short-time Traffic Flow Forecasting Methods, is characterized in that, comprises the following steps:
Step 1), data acquisition:
When traffic flow data is gathered, ensure to comprise in the data that collect a certain amount of nonworkdays data and great festivals or holidays data, ensure the diversity of database;
Step 2), historical traffic flow data coding:
Utilize current t-3, t-2, the traffic flow data of t-1 time period is predicted the magnitude of traffic flow of t time period, choose the traffic flow data q (t-3) of continuous 4 time periods, q (t-2), q (t-1), the assortment of genes of q (t) is as a chromosome C, specifically for different traffic flow data storehouse sizes and the prediction accuracy requiring, select section traffic flow data continuous time of different length to predict current traffic flow situation, utilize t-m, t-m+1, t-2, the traffic flow data q (t-m) of t-1 time period, q (t-m+1), q (t-2), q (t-1) predicts the magnitude of traffic flow of t time period, wherein m is positive natural number, in chromosome C, comprise comparison genetic fragment D 1with predicted gene fragment D 2, D 1by the gene of q (t-3), q (t-2), q (t-1) correspondence combine D 2by gene corresponding to q (t) composition,
Step 3), current traffic flow data coding:
When the current t time period, the magnitude of traffic flow was predicted, t-3, the t-2 before the t time period, the assortment of genes of the traffic flow data of tri-time periods of t-1 are as a chromosome Y 1this chromogene is 36 binary coded value, wherein first 12 is that hundred corresponding binary coded value of traffic flow numeral combine, middle 12 is that ten corresponding binary coded value of traffic flow numeral combine, and latter 12 is that a traffic flow numeral corresponding binary coded value combines;
Chromosome C in short-time traffic flow forecast gene pool is because of with predicted gene fragment D 2so it is 48 binary coded value; For the ease of comparing with chromosome C, to chromosome Y 1repair, increase by 12 and be encoded to 0 amorph fragment 000000000000, the chromosome after repairing is 48 binary coded value, is designated as match-on criterion chromosome Y;
Step 4), search for similar chromosome population:
In short-time traffic flow forecast gene pool, search for the chromosome C identical with front 18 genes of match-on criterion chromosome Y as initial population, in the time that short-time traffic flow forecast gene pool is larger, select the more homologous genes of multidigit, to improve search efficiency, initial population quantity is defined as P, in the time of P > 10, taking the 19th genic value of match-on criterion chromosome Y as standard, in initial population, continue the search chromosome C identical with the 19th genic value of match-on criterion chromosome Y, then again add up qualified similar chromosome sum, if P is still greater than 10, taking the 20th genic value of match-on criterion chromosome Y as standard, until when P < 10, stop, this is initial population quantity,
Step 5), similar chromosome deviate calculate:
Each chromosome in initial population all contains 48 genes, and according to search condition, front 18 genes are just the same, and 48 genes of chromosome C are divided into 16 genetic fragments, and every three genes are a genetic fragment, and the deviate of each genetic fragment is designated as because front 18 genes are just the same, front 6 genetic fragments are the same, when calculation deviation value, calculate since the 7th genetic fragment;
Every three genes are a genetic fragment, are that the position of the binary value that these three gene pairss are answered is the same because in t-3, t-2, corresponding traffic flow data binary code of t-1 time period, and in the time of calculation deviation value, they have congruency; For each chromosome C in initial population n, n is positive natural number, and n < 10, chromosome C narbitrary genetic fragment calculating principle in the time calculating with the deviation value of match-on criterion chromosome Y all different; Concrete formula is as follows:
Chromosome C in initial population P n, n is positive natural number, and n < 10, a i genetic fragment and i genetic fragment of match-on criterion chromosome Y have a gene different (a=0,1,2,3), chromosome C in initial population P ni its deviate of genetic fragment be:
In formula 2 bfor decimal system transforming relationship corresponding to this genetic fragment, 10 crepresent that this gene position is that binary coded value corresponding to ten of traffic flow numerals or individual position combines;
Chromosome C in initial population P ntotal departure value:
Step 6), predicted gene fragment decoding and prediction:
Choose deviate Δ nthree minimum chromosome C n, n=1,2,3, by the predicted gene fragment D in every item chromosome 2be decoded as decimal number and be respectively S 1, S 2, S 3, they are the magnitude of traffic flow of time period similar to the current t time period magnitude of traffic flow in historical data base, the value S that utilizes them to predict the magnitude of traffic flow of current t time period is:
CN201410249337.6A 2014-06-06 2014-06-06 Genetic search Short-time Traffic Flow Forecasting Methods Expired - Fee Related CN104021665B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410249337.6A CN104021665B (en) 2014-06-06 2014-06-06 Genetic search Short-time Traffic Flow Forecasting Methods

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410249337.6A CN104021665B (en) 2014-06-06 2014-06-06 Genetic search Short-time Traffic Flow Forecasting Methods

Publications (2)

Publication Number Publication Date
CN104021665A true CN104021665A (en) 2014-09-03
CN104021665B CN104021665B (en) 2016-09-07

Family

ID=51438395

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410249337.6A Expired - Fee Related CN104021665B (en) 2014-06-06 2014-06-06 Genetic search Short-time Traffic Flow Forecasting Methods

Country Status (1)

Country Link
CN (1) CN104021665B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920662A (en) * 2018-07-04 2018-11-30 上海小蚁科技有限公司 A kind of data comparison method and device, storage medium, terminal

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110040706A1 (en) * 2009-08-11 2011-02-17 At&T Intellectual Property I, Lp Scalable traffic classifier and classifier training system
CN101982843A (en) * 2010-10-21 2011-03-02 天津大学 Method for selecting state vector in nonparametric regression short-time traffic flow prediction
CN102034351A (en) * 2010-09-30 2011-04-27 天津大学 Short-term traffic flow prediction system
CN103150609A (en) * 2013-02-18 2013-06-12 健雄职业技术学院 Modeling method for short time traffic flow predicting model
CN103413443A (en) * 2013-07-03 2013-11-27 太原理工大学 Short-term traffic flow forecasting method based on hidden Markov model
CN103730006A (en) * 2014-01-26 2014-04-16 吉林大学 Short-time traffic flow combined forecasting method
CN103745106A (en) * 2014-01-10 2014-04-23 浙江银江研究院有限公司 Short-term traffic flow forecasting method
US20140122032A1 (en) * 2012-10-26 2014-05-01 Xerox Corporation Methods, systems and processor-readable media for optimizing intelligent transportation system strategies utilizing systematic genetic algorithms

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110040706A1 (en) * 2009-08-11 2011-02-17 At&T Intellectual Property I, Lp Scalable traffic classifier and classifier training system
US20130013542A1 (en) * 2009-08-11 2013-01-10 At&T Intellectual Property I, L.P. Scalable traffic classifier and classifier training system
CN102034351A (en) * 2010-09-30 2011-04-27 天津大学 Short-term traffic flow prediction system
CN101982843A (en) * 2010-10-21 2011-03-02 天津大学 Method for selecting state vector in nonparametric regression short-time traffic flow prediction
US20140122032A1 (en) * 2012-10-26 2014-05-01 Xerox Corporation Methods, systems and processor-readable media for optimizing intelligent transportation system strategies utilizing systematic genetic algorithms
CN103150609A (en) * 2013-02-18 2013-06-12 健雄职业技术学院 Modeling method for short time traffic flow predicting model
CN103413443A (en) * 2013-07-03 2013-11-27 太原理工大学 Short-term traffic flow forecasting method based on hidden Markov model
CN103745106A (en) * 2014-01-10 2014-04-23 浙江银江研究院有限公司 Short-term traffic flow forecasting method
CN103730006A (en) * 2014-01-26 2014-04-16 吉林大学 Short-time traffic flow combined forecasting method

Non-Patent Citations (5)

* Cited by examiner, † Cited by third party
Title
刘文敏等: "短时段交通流量的预测算法研究", 《福建电脑》, no. 05, 31 May 2006 (2006-05-31), pages 5 - 6 *
张慧哲等: "数据挖掘在短时交通流预测模型中的应用研究", 《计算机集成制造系统》, vol. 14, no. 04, 30 April 2008 (2008-04-30), pages 690 - 695 *
李婧瑜等: "基于遗传算法的小波神经网络交通流预测", 《山东大学学报(工学版)》, vol. 37, no. 02, 30 April 2007 (2007-04-30), pages 109 - 120 *
李松等: "遗传算法优化BP神经网络的短时交通流混沌预测", 《控制与决策》, vol. 26, no. 10, 31 October 2011 (2011-10-31), pages 1581 - 1585 *
韩忠华等: "城市交通短时交通信息自适应遗传预测方法", 《沈阳建筑大学学报(自然科学版)》, vol. 25, no. 02, 31 March 2009 (2009-03-31), pages 390 - 394 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108920662A (en) * 2018-07-04 2018-11-30 上海小蚁科技有限公司 A kind of data comparison method and device, storage medium, terminal

Also Published As

Publication number Publication date
CN104021665B (en) 2016-09-07

Similar Documents

Publication Publication Date Title
Jin et al. Spatio-temporal recurrent convolutional networks for citywide short-term crowd flows prediction
Zhu et al. Optimal-combined model for air quality index forecasting: 5 cities in North China
Ren et al. A deep learning approach to the prediction of short-term traffic accident risk
CN106991437A (en) The method and system of sewage quality data are predicted based on random forest
CN105678398A (en) Power load forecasting method based on big data technology, and research and application system based on method
CN103714139A (en) Parallel data mining method for identifying a mass of mobile client bases
CN102737356A (en) Intelligent bus scheduling calculation method
CN107038156A (en) A kind of hot spot of public opinions Forecasting Methodology based on big data
CN110059875A (en) Public bicycles Demand Forecast method based on distributed whale optimization algorithm
CN116340830B (en) Highway electromechanical system fault classification method based on deep memory model
CN109934395A (en) A kind of more small power station areas Short-Term Load Forecasting Method based on timesharing subregion meteorological data
CN114078237A (en) Remote sensing image road change identification method and device
CN109448366A (en) A kind of space domain sector degree of crowding prediction technique based on random forest
CN110852496A (en) Natural gas load prediction method based on LSTM recurrent neural network
Zhao et al. Short-term microgrid load probability density forecasting method based on k-means-deep learning quantile regression
CN103246924A (en) Genetic algorithm based RFID system
Wu et al. A novel dynamically adjusted regressor chain for taxi demand prediction
CN104021665A (en) Gene search short time traffic flow forecasting method
Wei et al. A novel deep recurrent neural network for Short-term travel demand forecasting under on-demand ride services
Shan et al. Predicting duration of traffic accidents based on ensemble learning
Jiao et al. Multi-step traffic flow prediction method based on the Conv1D+ LSTM
Jiang et al. Congestion prediction of urban traffic employing SRBDP
CN104361407B (en) Data recombination Short-time Traffic Flow Forecasting Methods
Hu et al. A simplified deep residual network for citywide crowd flows prediction
CN105260948A (en) City water supply system daily plan scheduling decision-making method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160907

Termination date: 20190606

CF01 Termination of patent right due to non-payment of annual fee