Professional Documents
Culture Documents
(1)
Where,
( ) j
k
d is discrete detail coefficients,
( ) j
k
x is discrete
approximation coefficients,
0
( ) k n is low-pass filter coefficients,
1
( ) k n is high-pass filter coefficients, with
1 0
( ) ( 1) ( )
n
k n h N n
= (2)
In which N is the length of filter.
Step 2, Coefficients processing after the signal
decomposition. It uses the soft threshold function for quantitative
disposal at each level of wavelet coefficients.
The soft threshold function is chosen with,
sgn( )(| | ),| |
( , )
0 | |
h
t t
x T t
t
= =
<
(3)
Where 2log( ) t N = , x
=
(5)
Max absolute errors
( ) ( )
max | |
( )
pred real
real
Y t Y t
mxaerr
Y t
= (6)
Root-mean-square error
2
( ( ) ( ))
pred real
t
Y t Y t
rmserr
N
(7)
Fitting degree
2
2 2
( ( ) ( ))
1
( ) ( )
pred real
t
pred real
t t
Y t Y t
EC
Y t Y t
(8)
In which
real
Y is the real traffic flow data, and
pred
Y is their
prediction.
Here DB3 is chosen as wavelet, in which there are three
levels and four series. At the first decomposition, high frequency
component D1 is obtained; then at the second and third
decomposition, to get D2, D3, and A3 for the denoise and
reconstruction.
The prediction of every component is with BP Neural
Network in three levels. At input level, there are 8 vectors,
corresponding to 8 detected traffic data. At the hide layer, there
are 15 nodes, mapping to the hyperbolic tangent function tansig.
At output level, there is only one node in purelin mapping, which
is the traffic flow within one time interval. Target error of A (3)
is set as 1e-6, with maximum training number of 2000. Target
error of D (1) ~D (3) is set as 1e-5, with maximum training
number of 1000. In the parameters of Genetic Algorithm,
population size with 60crossover rate with 0.2mutation rate
with 0.05evolving algebra with 500.
300 existing data are first used for the network learning, and
to predict the vehicle number in the next 10 Intervals. Then the
existing data and 10 new data are used to train network again,
and to predict the vehicles in another 10 intervals. The process is
repeated until all 270 intervals are predicted. The predictions and
error are shown in Fig. 3.
With similar neural network structure and input, the obtained
predicting results with single neural network are shown in Fig. 4;
the predicting results with multi-scale neural networks are shown
in Fig. 5.
The comparisons of errors with three neural network
predictions are shown in table 1.
Through evaluating the three effects of the three methods
with different evaluation targets, it is known that the result with
multi-scale and neural network optimized by genetic algorithm
model is better. It can evidently decrease prediction error and
improve the forecasting veracity compared with typical neural
network.
F
l
o
w
(
v
e
h
/
2
m
i
n
)
Figure 3. Traffic flow prediction based on multi-scale analysis and neural network optimized by genetic algorithm
F
l
o
w
(
v
e
h
/
2
m
i
n
)
Figure 4. Traffic flow prediction with single neural network
F
l
o
w
(
v
e
h
/
2
m
i
n
)
Figure 5. Traffic flow prediction with multi-scale analysis and neural networks
TABLE I. THE COMPARISON OF ERRORS WITH THREE NEURAL NETWORK PREDICTIONS
measures
Mean absolute
errors (%)
Max absolute
errors (%)
Root-mean-square
error
fitting
degree
single neural network 4.6041 52.5129 6.6701 0.9737
multi-scale analysis and neural networks 0.8461 6.2835 0.8625 0.9943
multi-scale analysis and neural network
optimized by genetic algorithm
0.3986 3.1219 0.5807 0.9975
VII. CONCLUSIONS
This paper has briefly introduced a new approach for the
traffic flow prediction. The real detected traffic data are used to
test the accuracy of the model. The results show that the model of
multi-scale and neural network optimized by genetic algorithm
has advantages over the traditional neural network in
qualification-rate of prediction, and good adaptability to the
dynamic traffic flow environment. It could be an efficient method
to the prediction of the real-time dynamic traffic flow
VIII. ACKNOWLEDGEMENTS
The authors wish to acknowledge the financial support of the
Foundation of Ministry of communications of China (2008-319-
814-060) and 2008 Research Projects for Returned Experts of
Ministry of Human Resources and Social Security of China.
IX. REFERENCES
[1] Stephane G. Mallat. A Theory for Multiresolution Signal
Decomposition:The Wavelet Representation[J], IEEE Transactions on
Pattern Analysis and Machine intelligence, 1989.11(7):674~693.
[2] Maniezzo V. Genetic evolution of the topology and weigh t distribution of
neural networks [J]. IEEE Trans On Neural Networks, 1994, 5 (1) : 39253.
[3] TAN Manchun ,LI Yingjun,XU Jianmin. A Hybrid ARIMA and SVM
Model for Traffic Flow Prediction Based on Wavelet Denoising
[J],Computer Engineering and Applications,2009,26(7):127-131. (in
Chinese)
[4] MA Jun,Li Xiaodong,MENG Ying. Research of Urban Traffic Flow
Forecasting Based on Neural Network [J],Acta Electronica
Sinica,2009,37(5):1092-1093. (in Chinese)
[5] Skander Soltani ,On the use of the wavelet decomposition for time series
prediction[J] , Neurocomputing , 2002 :267277.
[6] CHANG Jianxia, YU Xingjie, HUANG Qiang.Water demand for ecasting
based on multi-scales analysis and neural network[J],Computer Engineer
ing and Applications, 2008, 44( 17) : 219- 221. (in Chinese)