Paper_SLIMANI_INTIS'19
Paper_SLIMANI_INTIS'19
6000
3. PROPOSED METHODOLOGY
5000
The aim of this work is to make traffic volume forecasts using 4000
two approaches: the first parametric approach using the ARIMA 3000
model and the second non-parametric approach using artificial 2000
neural networks that were the subject of our previous work [1]. 1000
Then, a comparison of the results obtained will be made on the
0
basis of previously defined criteria.
In order to mitigate the impact of outliers in the hourly traffic flow The absolute error component of the index serves as the primary
data (see Fig.3) these data were aggregated at monthly intervals. measure of model accuracy. The measure simply describes how
far one would expect a predicted volume of traffic to deviate from 4.2 Modeling process of SARIMA model
(either above or below) the real traffic recorded. The main steps of establishing the seasonal ARIMA model are
[20]:
The relative error this measurement takes into account the
difference between the predicted and the real value, divided by the (a) Determine the period length.
real value. If it is positive, it is because the predicted value is (b) Identify the stationarity of the time series that is to determine d
higher than the exact value (we speak of an error by excess), and and D, the common identifying tool is autocorrelogram.
if it is negative, it is because it is lower (default error). If the autocorrelation function tends to zero quickly, then we can
say that the time series is stationary time series. If the time series
The standard error or Error’s distribution it measures the has some tendency, then difference to the time series is needed. If
dispersion of the predicted values from the traffic recorded. It is the time series has seasonal law, then seasonal difference to the
defined as the square root of the variance or, equivalently, as the time series is needed. If the time series has heteroscedasticity,
root mean square of the deviations from the mean. then logarithmic transformation to the time series is needed.
(c) Identify the model and determine the order of the ARIMA
Root Mean Square Error (RMSE) is the most frequently used model p , q , P and Q . In general, we can estimate the value of p,
metrics of prediction performance in previous work [16]. It is the q, P and Q by observing autocorrelogram and partial
square root of the MSE (Mean Square Error) index. MSE is autocorrelogram.
defined as the arithmetic mean of the squares of the differences (d) Obtain the estimated value of the all parameters of the model
between model forecasts and observations. by maximum likelihood estimation.
(e) Forecast.
In this paper, the modeling process is realized by the software
4. EXPERIMENTS AND RESULTS Excel by downloading the function NUMXL.
1200000
1000000
800000
600000
400000 Traffic
200000
0
1 2 3 4 5 6 7 8 9 1011 12 1 2 3 4 5 6 7 8 9 10 1112 1 2 3 4 5 6 7 8 9 1011 12
2015 2016 2017
Table 2. Prediction results using SARIMA and ANN Table 3. Comparison of performance criteria
Month Recorded Forecasted Forecasted Performance SARIMA ANN Model
traffic traffic using traffic using criterion
Model
SARIMA ANN*
Ease of model Difficult Medium
Jan-18 855.016 754.851 843.918
implementation
Feb-18 773.178 740.389 770.904 See Table 4 See Table 4
Absolute error
Mar-18 838.361 747.625 833.108 7,27% 0,57%
Relative error
Apr-18 934.568 784.813 934.573
Standard error 126.018 11.515
May-18 835.100 826.381 837.943 RMSE 51.446 4.701
Jun-18 827.913 841.929 815.076
*Based on the sum of forecasted daily traffic by ANN. Table 4. Comparison of absolute error using
SARIMA and ANN
A graphical illustration with a comparison between the actual Month SARIMA ANN
Absolute Absolute
traffic and the predicted traffic flow is presented in the next figure
error error
(see Fig.3).
Jan-18 100.165 11.098
Fig. 5. Recorded traffic vs traffic forecasting results Feb-18 32.789 2.274
Mar-18 90.736 5.253
200.000
Recorded traffic This paper presents a review of several works related to the
modelling traffic flow prediction that is a key component of traffic
Forecasted traffic using SARIMA model
control.
Forecasted traffic using ANN
In this study, we propose to experiment and compare two different
methods of forecasting traffic flow with a horizon of six months
4.4 Discussion of results SARIMA and ANN. Results clearly indicate that ANN model was
In our case and from the results obtained for the test series, it’s able to predict vehicle count accurately even if some exogenous
concluded that the artificial neural network and SARIMA provide factors weren’t included as inputs (weather conditions, incidents,
forecasting values with an absolute error less than 10%. It can be road works...). Therefore it is concluded that ANN can be applied
used to produce traffic forecasts with a better accuracy. for traffic flow prediction with mixed traffic conditions for
The comparison of the observed and modelled traffic flows in Moroccan highways for the toll station we studied.
Tables 3 and 4 shows the forecasts were made with less than ± The accuracy of forecasted traffic flow is calculated comparing
5.0% error. It can be seen that SARIMA model slightly under- with a real dataset recorded on a road section and provided by a
forecast during high traffic volume periods. A closer look at the recognized infrastructure manager in Morocco. The results show
significantly different forecasts by ANN indicated that the that the accuracy of ANN best topology for this case study is a
apparent deficiency in the forecasts was due to the inconsistent Multi-Layer Perceptron networks composed by three hidden
exogenous inputs [1] that can influence traffic (weather layers (5-8-2) with an absolute relative error 0, 57%.
conditions, incidents, road works...).
A future research direction consists in coupling the forecasting
performance of the artificial neural networks to other prediction
models as Kalman filter [21], ARIMAX…
6. ACKNOWLEDGMENTS in 2008 Workshop on Power Electronics and Intelligent
Transportation System, Guangzhou, China, 2008, p.
We are grateful to each person that contributes to conduct this
621‑625.
study. [13] B. L. Smith, B. M. Williams, et R. Keith Oswald,
« Comparison of parametric and nonparametric models for
traffic flow forecasting », Transp. Res. Part C Emerg.
7. REFERENCES Technol., vol. 10, no 4, p. 303‑321, août 2002.
[14] B. L. Smith et M. J. Demetsky, « Traffic Flow Forecasting:
Comparison of Modeling Approaches », J. Transp. Eng.,
[1] N. Slimani, I. Slimani, N. Sbiti, et M. Amghar, « Traffic
vol. 123, no 4, p. 261‑266, juill. 1997.
forecasting in Morocco using artificial neural networks »,
[15] B. L. Smith et M. J. Demetsky, « Short-term traffic flow
Procedia Comput. Sci., vol. 151, p. 471‑476, 2019.
prediction models-a comparison of neural network and
[2] J. Wang et Y. Liu, « Mean Velocity Prediction Information
nonparametric regression approaches », in Proceedings of
Feedback Strategy in Two-Route Systems under ATIS »,
IEEE International Conference on Systems, Man and
Adv. Mech. Eng., vol. 7, no 2, p. 640416, févr. 2015.
Cybernetics, San Antonio, TX, USA, 1994, vol. 2, p.
[3] S. Lee et D. B. Fambro, « Application of Subset
1706‑1709.
Autoregressive Integrated Moving Average Model for Short-
[16] X. Luo, L. Niu, et S. Zhang, « An Algorithm for Traffic
Term Freeway Traffic Volume Forecasting », Transp. Res.
Flow Prediction Based on Improved SARIMA and GA »,
Rec. J. Transp. Res. Board, vol. 1678, no 1, p. 179‑188, janv.
KSCE J. Civ. Eng., vol. 22, no 10, p. 4107‑4115, oct. 2018.
1999.
[17] J. Adamowski, H. Fung Chan, S. O. Prasher, B. Ozga-
[4] B. M. Williams, P. K. Durvasula, et D. E. Brown, « Urban
Zielinski, et A. Sliusarieva, « Comparison of multiple linear
Freeway Traffic Flow Prediction: Application of Seasonal
and nonlinear regression, autoregressive integrated moving
Autoregressive Integrated Moving Average and Exponential
average, artificial neural network, and wavelet artificial
Smoothing Models », Transp. Res. Rec. J. Transp. Res.
neural network methods for urban water demand forecasting
Board, vol. 1644, no 1, p. 132‑141, janv. 1998.
in Montreal, Canada: WATER DEMAND FORECASTING
[5] I. Slimani, I. E. Farissi, et S. Achchab, « Coordination by
USING WAVELET-NEURAL NETWORKS », Water
sharing demand forecasts in a supply chain using game
Resour. Res., vol. 48, no 1, janv. 2012.
theoretic approach », in 2016 4th IEEE International
[18] G. Box, « Box and Jenkins: Time Series Analysis,
Colloquium on Information Science and Technology (CiSt),
Forecasting and Control », in A Very British Affair, London:
2016, p. 122‑127.
Palgrave Macmillan UK, 2013, p. 161‑215.
[6] Y. Rong, X. Zhang, X. Feng, T. Ho, W. Wei, et D. Xu,
[19] M. S. Ahmed et A. R. Cook, « Analysis of Freeway Traffic
« Comparative analysis for traffic flow forecasting models
Time-Series Data by Using Box-Jenkins Techniques », p. 9.
with real-life data in Beijing », Adv. Mech. Eng., vol. 7, no
[20] M. Tong et H. Xue, « Highway Traffic Volume Forecasting
12, p. 168781401562032, déc. 2015.
Based on Seasonal ARIMA Model », J. Highw. Transp. Res.
[7] Y. Bai, X. Jin, X. Wang, T. Su, J. Kong, et Y. Lu,
Dev. Engl. Ed., vol. 3, no 2, p. 109‑112, déc. 2008.
« Compound Autoregressive Network for Prediction of
[21] A. Emami, M. Sarvi, et S. Asadi Bagloee, « Using Kalman
Multivariate Time Series », Complexity, vol. 2019, p. 1‑11,
filter algorithm for short-term traffic flow prediction in a
sept. 2019.
connected vehicle environment », J. Mod. Transp., vol. 27,
[8] Y. Huang, L. Qian, A. Feng, N. Yu, et Y. Wu, « Short-Term
no 3, p. 222‑232, sept. 2019.
Traffic Prediction by Two-Level Data Driven Model in 5G-
Enabled Edge Computing Networks », IEEE Access, vol. 7,
p. 123981‑123991, 2019.
[9] I. Loumiotis, K. Demestichas, E. Adamopoulou, P.
Kosmides, V. Asthenopoulos, et E. Sykas, « Road Traffic
Prediction Using Artificial Neural Networks », in 2018
South-Eastern European Design Automation, Computer
Engineering, Computer Networks and Society Media
Conference (SEEDA_CECNSM), Kastoria, 2018, p. 1‑5.
[10] D. Xu, Y. Wang, L. Jia, Y. Qin, et H. Dong, « Real-time
road traffic state prediction based on ARIMA and Kalman
filter », Front. Inf. Technol. Electron. Eng., vol. 18, no 2, p.
287‑302, févr. 2017.
[11] D. Xu, H. Dai, Y. Wang, P. Peng, Q. Xuan, et H. Guo,
« Road traffic state prediction based on a graph embedding
recurrent neural network under the SCATS », Chaos
Interdiscip. J. Nonlinear Sci., vol. 29, no 10, p. 103125, oct.
2019.
[12] D. Zeng, J. Xu, J. Gu, L. Liu, et G. Xu, « Short Term Traffic
Flow Prediction Using Hybrid ARIMA and ANN Models »,