- About this Journal ·
- Abstracting and Indexing ·
- Aims and Scope ·
- Annual Issues ·
- Article Processing Charges ·
- Articles in Press ·
- Author Guidelines ·
- Bibliographic Information ·
- Citations to this Journal ·
- Contact Information ·
- Editorial Board ·
- Editorial Workflow ·
- Free eTOC Alerts ·
- Publication Ethics ·
- Reviewers Acknowledgment ·
- Submit a Manuscript ·
- Subscription Information ·
- Table of Contents
Journal of Applied Mathematics
Volume 2013 (2013), Article ID 195824, 7 pages
Adaptive Correction Forecasting Approach for Urban Traffic Flow Based on Fuzzy -Mean Clustering and Advanced Neural Network
1Shanghai Urban-Rural Construction and Transportation Development Institute, Shanghai 300032, China
2Department of Automation, Shanghai Jiao Tong University, Key Laboratory of System Control and Information Processing, Ministry of Education, Shanghai 200240, China
Received 5 July 2013; Revised 8 October 2013; Accepted 9 October 2013
Academic Editor: Baocang Ding
Copyright © 2013 He Huang et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.
Forecasting of urban traffic flow is important to intelligent transportation system (ITS) developments and implementations. The precise forecasting of traffic flow will be pretty helpful to relax road traffic congestion. The accuracy of traditional single model without correction mechanism is poor. Summarizing the existing prediction models and considering the characteristics of the traffic itself, a traffic flow prediction model based on fuzzy -mean clustering method (FCM) and advanced neural network (NN) was proposed. FCM can improve the prediction accuracy and robustness of the model, while advanced NN can optimize the generalization ability of the model. Besides these, the output value of the model is calibrated by the correction mechanism. The experimental results show that the proposed method has better prediction accuracy and robustness than the other models.
Real-time forecasting of traffic flow is an important issue in advanced traffic management . The traffic simulation is correspondingly needed to make these forecasting models reliable way, which aim to influence travel behavior, reduce traffic congestion, improve mobility, and enhance air quality. Traffic forecasting models can be used to provide urban traffic control centers with an automated tool for anticipating the congestion that may arise on road facilities and its expected duration .
The urban traffic flow forecasting models rely on historical and current flow data. The problem of traffic flow forecasting belongs to a standard time series prediction task and the purpose is to fetch the function which can relates future values of traffic flow to previous and current measurement of traffic flow . A variety of forecasting techniques has been applied to forecast the urban traffic flow. In , Danech-Pajouh and Aron designed a layered statistical method with a mathematical clustering technique to group the traffic flow data and a separately tuned linear regression model for each cluster. The ARIMA model, initially developed by Kim et al., is one of the most popular approaches in traffic flow forecasting [5–7]. However, the limitation of ARIMA models is that their natural tendency, concentrated on the mean values of the past series data, seems unable to capture the rapid varying process changes underlying of traffic flow. The artificial neural network (ANN) is widely applied in traffic flow forecasting. Yin et al.  developed a fuzzy-neural model (FNM) to predict traffic flow in an urban street network. The empirical results showed that the FNM model provides more accurate forecasting results than the BPNN model. These researches are committed to improve the performance of the algorithms. However, there are many factors which can affect the traffic flow, the traditional single model can hardly improve the prediction accuracy and no online correction mechanism was considered. This motivates the paper.
In this paper, the traffic flow forecasting model has 3 techniques: first, the input data of the model is divided into several categories according to FCM, and different categories have different model. Second, a training model based on a well-defined part-connected neural network (NN) was proposed and the cooperative quantum-particle swarm evolutionary algorithm (CQGAPSO) is used to train the model. Last, the error between predicted value and real value is used to compensate the output of the model. These methods can improve the accuracy and generalization of the forecasting model can also overcome the model mismatch.
This paper is organized as follows. The forecasting methodology is introduced in Section 2. Cases of studying of urban traffic flow forecasting are given in Section 3. Conclusions are finally made in Section 4.
2. Forecasting Methodology
2.1. The Framework of the Proposed Method
According to the change rule of traffic flow time series, there is an essential linkage between the future and the previous flow . Thus, the previous traffic flow value can be used to forecast the future flow. Set as the traffic flow at time , as the value at time . In this paper, , , and are the input values of the model at time and is the predicted value at time . The input values are denoted as and the predicted value is denoted . The traffic flow forecasting model is made to build the relationship between and . Therefore, once the relationship is obtained, the model can be used to predict the future traffic flow based on the real-time measured data in practice.
In the previous studies, the single prediction model mentioned above was adopted to forecast the urban traffic flow. However, it is not universally applicable for all the traffic scenarios. Since the urban traffic system is an unstable system, which exhibits significant variation in different periods, it is necessary to establish different prediction models to forecast the future traffic state accurately. According to the measured data from the float car, Guo et al.  analyzed the degree of traffic congestion on different days in a week. The results showed that the traffic congestion of Monday is more serious than the other days, especially in the morning peak hour, and the most serious traffic congestion of evening peak hour occurred in Friday. Moreover, the degree of traffic congestion during commuting time on the weekend is less than the degree on weekdays. It can be concluded that by observing the traffic flow data, the travel modes and travel demand are different on each day of a week, and the data characteristic of the same day for every week is similar. Therefore, in order to improve the accuracy of prediction for traffic flow or travel speed on the road, it is necessary to classify the traffic flow pattern and apply a suitable model to forecast each pattern. This classification would guarantee that each prediction model has a good performance in a particular period. As urban traffic flow system is a complicated process influenced by many factors, it is believed that using the multimodel method to predict the traffic flow is appropriate.
From the analysis made above, in this paper, for the sake of modeling, the historical traffic data should be divided into seven classes corresponding to each day of a week. Besides, considering the widely variation of traffic flow from morning to night, especially in the rush hour, using a single model to describe a complex nonlinear object usually results in low accuracy and poor generalization. So we use FCM to process the data and choose the reasonable clustering number by the experiments and use the approach based on multiple-input-single-output three-layer feedforward neural network with switches to model each cluster. Meanwhile, in order to overcome the model mismatch, the adaptive correction mechanism is added to our approach. The framework of the proposed method is illustrated in Figure 1.
2.2. Fuzzy -Means Clustering
The model of forecasting traffic flow is a multiinput single-output system; the training sample set can be expressed as . Here, is the sample number of training set, is the number of input variables; denotes the th input vector. Suppose is divided into clusters ; thus, submodels should be built for each , and the result of the FCM can be expressed as membership matrix . denotes the degree of the element in training sample set belonging to the th cluster. The value of is between 0 and 1. The architecture of FCM method is shown in Figure 2 [11, 12].
Clustering number is a very important parameter. Here, we do experiments to choose the appropriate clustering number . Let increase from 2 to a constant. Then, make models separately based on FCM and calculate the mean square error and the maximum error according to (1). Last, we can obtain the best clustering number .
2.3. The Forecasting Model Based on Neural Network with Switches
In the architecture of FCM method, each model needs a modeling tool. NN, SVM, and Kalman filtering are always used to forecast the traffic flow. Here, we adopt an advanced NN, the multiple-input-single-output three-layer feedforward neural network with switches was proposed and well defined in . A multiple-input-single-output (MISO) three-layer feedforward neural work with switches is shown in Figure 3.
Various methods were proposed to train the NN with switches [13–15]. In those methods, the population was partitioned to parameters and structure population. The parameters population was composed of the weight of the links, while the structure population was composed of the link switches. This model could eliminate some ill effects of approximation ability caused by redundant structure of NN.
2.4. The Adaptive Correction Mechanism
The traffic flow is the measurable variable, and the real-time data is used to predict the future traffic flow . For example, at current time , we can obtain the real value from the sensors and the predicted value by forecasting the model. Here is an error because of the model mismatch. At time , the model should forecast the traffic flow at time ; the error can be used to compensate the initial predicted value according to (2). is the offline correction coefficient.
The training set can be used to fetch ; to fetch is to find the relationship between and , and here, , is the sample number of training set. can be calculated by least square method (SLM).
When the model is forecasting the traffic flow online, the correction coefficient should be refreshed in real time. For example, at current time , we can calculate using a small piece of historical data to obtain the relationship between and . Here, is a small positive integer. The online correction coefficient can be obtained by SLM and (2) should be modified.
3. Experimental Results
In order to explain the effectiveness of the proposed method, we choose the data gathered from Shanghai north-south highway including from August to October. The historical data on August and September is used to build the training set, while the data on October is used to build the testing set. There is a large difference of traffic flow every day in a week, thus we build different models for every day. Here, we use the first two Monday, Wednesday and Sunday on October to verify the proposed model.
The number of training sample is 2800 and the testing sample number is 650. There is 2 minutes between each data. Based on the experience, we choose 3 as the dimension of input data. On request, we should predict the traffic flow after 10 minutes. Thus the width of the prediction is 5. We totally do 3 experiments: (1) the traditional single model; (2) the multimodels based on FCM; (3) the multimodels based on FCM and adaptive correction mechanism.
First, all the data should be filtered before modeling and NN with switches is used as the modeling tool. Then we should determine the Clustering number by FCM, “CQGAPSO” algorithm is used to train the NN model and the parameter of “CQGAPSO” algorithm is given in . The hidden nodes number is 6. The training accuracy is and the iteration times of training the NN are 2000. The experiments are implemented for 50 times. Table 1 gives the result of FCM.
Form Table 1, we can find MSE and MAXE get better after an initial increase in growth of clustering number . However, if continues to grow, MSE and MAXE will get worse. That is because with the increasing of the clustering number, the generalization ability of the model gets poorer. The best clustering number is at the turning point. Then the model should be added the adaptive correction mechanism. In order to obtain an appropriate correction coefficient, is a fixed number which is calculated offline while is a changed number which calculated online and we should limit the scope of . Table 2 gives the result of adding the adaptive correction mechanism. From Table 2, we can find if the adaptive correction mechanism parameter value is , MSE and MAXE is the best. If the scope of is very wide, MSE and MAXE will get worse because the compensation value is too large. Table 3 gives the comparison of every approach. Model (a) is the traditional single model, model (b) is the model (a) with FCM, model (c) is the model (b) with the correction mechanism. We can find the reasonable clustering number and correction mechanism can improve the forecasting ability.
The Comparison of every approach is illustrated in Figure 3. Figure 4(a) is the traditional single model, Figure 4(b) is the model with FCM, Figure 4(c) is the model with FCM and the correction mechanism. In Figure 4(a), the predictive curve is smooth and cannot track exactly especially at the peak value because the approximation capability of the traditional single model is limited. In Figure 4(b), we can get some submodels by FCM and multimodel can improve the forecasting ability. Without the correction mechanism, the model error cannot be corrected in real time. In Figure 4(c), we use the correction mechanism and it compensates the initial forecasting value with the model error value. From Table 3 and Figure 4, we can find that the predictive accuracy is better than model (a) and (b).
Aiming at solving the problem of forecasting urban traffic flow, this paper proposes a forecasting model by the use of FCM and correction mechanism. The experimental results indicate that the proposed method can perform better than other methods and show the application prospect.
This paper is supported by the National Science Foundation of China (Grant nos. 71361130012, 61221003), the Specialized Research Fund for the Doctoral Program of Higher Education (Grant no. 20120073110017), and the State Key Laboratory of Synthetical Automation for Process Industries.
- M.-W. Li, W.-C. Hong, and H.-G. Kang, “Urban traffic flow forecasting using Gauss-SVR with cat mapping, cloud model and PSO hybrid algorithm,” Neurocomputing, vol. 99, no. 1, pp. 230–240, 2013.
- T. Pohlmann and B. Friedrich, “A combined method to forecast and estimate traffic demand in urban networks,” Transportation Research C, vol. 31, pp. 131–144, 2013.
- J. Abdi, B. Moshiri, B. Abdulhai, and A. K. Sedigh, “Forecasting of short-term traffic-flow based on improved neurofuzzy models via emotional temporal difference learning algorithm,” Engineering Applications of Artificial Intelligence, vol. 25, no. 5, pp. 1022–1042, 2012.
- M. Danech-Pajouh and M. Aron, “Athena: a method for short-term inter-urban motorway traffic forecasting,” Recherche Transports Sécurité, vol. 6, pp. 11–16, 1991.
- H.-W. Kim, J.-H. Lee, Y.-H. Choi, Y.-U. Chung, and H. Lee, “Dynamic bandwidth provisioning using ARIMA-based traffic forecasting for Mobile WiMAX,” Computer Communications, vol. 34, no. 1, pp. 99–106, 2011.
- G. E. P. Box and G. M. Jenkins, Time Series Analysis: Forecasting and Control, Wiley, 1976.
- Y. Kamarianakis and P. Prastacos, “Space-time modeling of traffic flow,” Computers and Geosciences, vol. 31, no. 2, pp. 119–133, 2005.
- H. Yin, S. C. Wong, J. Xu, and C. K. Wong, “Urban traffic flow prediction using a fuzzy-neural approach,” Transportation Research Part C, vol. 10, no. 2, pp. 85–98, 2002.
- M. Castro-Neto, Y.-S. Jeong, M.-K. Jeong, and L. D. Han, “Online-SVR for short-term traffic flow prediction under typical and atypical traffic conditions,” Expert Systems with Applications, vol. 36, no. 3, pp. 6164–6173, 2009.
- J. Guo, M. Liu, L. Yu, J. Guan, S. Guo, and X. Zhang, “Development and applications of macroscopic measurement of traffic congestion in Beijing,” in Proceedings of the 7th China Annual Conference on Intelligent Transportation Systems, Beijing, China, 2007.
- J. C. Bezdek, R. Ehrlich, and W. Full, “FCM: the fuzzy c-means clustering algorithm,” Computers and Geosciences, vol. 10, no. 2-3, pp. 191–203, 1984.
- Z. Liu and Q. Liu, “Studying cost-sensitive learning for multi-class imbalance in Internet traffic classification,” The Journal of China Universities of Posts and Telecommunications, vol. 19, no. 6, pp. 63–72, 2012.
- H. K. Lam, S. H. Ling, F. H. F. Leung, and P. K. S. Tam, “Tuning of the structure and parameters of neural network using an improved genetic algorithm,” in Proceedings of the 27th Annual Conference of the IEEE Industrial Electronics Society (IECON '2001), pp. 25–30, December 2001.
- J.-T. Tsai, J.-H. Chou, and T.-K. Liu, “Tuning the structure and parameters of a neural network by using hybrid Taguchi-genetic algorithm,” IEEE Transactions on Neural Networks, vol. 17, no. 1, pp. 69–80, 2006.
- G. Yu, G. Li, Y. Bai, and X. Jin, “Tuning of the structure and parameters of wavelet neural network using improved chaotic PSO,” in Proceedings of the 26th Chinese Control Conference (CCC '07), pp. 228–232, July 2007.
- Q. Tang, D. Li, Y. Xi, and D. Yin, “Soft-sensing design based on semiclosed-loop framework,” Chinese Journal of Chemical Engineering, vol. 20, no. 6, pp. 1213–1218, 2012.
- Q. F. Tang, The cooperative quantum-particle swarm algorithm and its application in the energy utilization optimization of the steam network [M.E. thesis], East China University of Science&Technology, China, 2011, (Chinese).