The Research of Urban Rail Transit Sectional Passenger Flow Prediction Method

This paper studies the short-term prediction methods of sectional passenger flow, and selects BP neural network combined with the characteristics of sectional passenger flow itself. With a case study, we design three different schemes. We use Matlab to realize the prediction of the sectional passenger flow of the Beijing subway Line 2 and make comparative analysis. The empirical research shows that combining data characteristics of sectional passenger flow with the BP neural network have good prediction accuracy.


Introduction
In recent years, the domestic urban rail transit develops very rapidly, for example, the future network of urban rail transit in Beijing will show a complex road network structure, high passenger demand growth and so on.Therefore, no matter in planning, construction or operation stage, it is inseparable from the close control and forecast of the passenger flow.Short-term forecast for sectional passenger flow is a very important part.The research of forecasting methods is also very necessary.This text will combine the Beijing subway Line 2 to study short-term sectional passenger flow forecasting methods.

Overview of Sectional Passenger Flow
The sectional passenger flow refers to the passenger flow volume through a particular place of the subway line in unit of time.The prediction of sectional passenger flow is an essential element of forecasting.Grasp the present situation and changes of the passenger flow is the premise of traffic organization works smoothly, it is of great significance to manage and control, set reasonable operation scheduling plan, track the Quality of Services.
Passenger flow analysis in forecasting is indispensable.Combined with the passenger flow characteristics of Beijing subway Line 2, we can see the passenger flow of Beijing subway Line 2 belongs to bimodal pattern in a day time, the weekend passenger flow is greater than usual.Passenger flow is also affected by holidays, weather conditions, season, emergencies and many other factors [1].

Short-Term Passenger Flow Forecasting Methods
In the short-term passenger flow forecasting, the commonly used forecasting methods [2] mainly include:  Traditional algorithms, such as regression method, time series and so on, their research focus on the law of the passenger flow sequence itself. Modern algorithms, such as genetic algorithms, neural networks. Combinational algorithms combined with traditional methods and modern algorithms.Among them, the artificial neural network, referred to as neural networks, is based on physiological changes in the brain, mimicking the brain's structure and function, is a information processing system using computers to realize.
In this paper, we use the BP neural network to forecast.

The Instance of Predicting Sectional Passenger Flow
This paper based on the characteristics of sectional passenger flow, takes advantage of BP neural network model, to study the sectional passenger flow prediction problem of urban rail transit, and using Matlab neural network toolbox to realize design schemes.

Sample Analysis and Data Selection
The raw data I collected is from 1, March, 2012 to31, March, 2012, the daily passenger flow volume from 6:00 to 23:00 every 30 minutes of each section of Beijing subway Line 2. Reasonable sample selection requires enough samples, representative and uniform distribution, therefore, before carrying out passenger flow forecasting, we must analyze the characteristics of sectional passenger flow first.Since Monday morning rush hour and Friday evening peak is more prominent than the other days, therefore, a week can be divided into four types, Monday, Tuesday to Thursday, Friday, weekends.
This paper selected the section of Fuxingmen to Fuchengmen, Beijing Subway Line 2, because it has large passenger flow, also Fuxingmen is a transfer station.Choose the data of Tuesday to Thursday morning peak hours (6:00 to 10:00, down line) to predict, in this way, it has some representation.In order to ensure that the sample is reasonable, normalized preprocess the selected data before training.

Solutions Design of Sectional Passenger Flow Forecast
The passenger flow volume of one section is intrinsically linked with the near time of this section.Each section is a part of the network; therefore, the passenger flow volume of one section is intrinsically linked with its near section.Sectional passenger flow is also relevant with a variety of external factors, such as weekends, holidays, weather, season and so on.Take these factors into account can also increase the prediction accuracy [4].
Based on the analysis above, the following three scenarios using BP neural network will be used to predict sectional passenger flow, as shown in Table 1.

Sectional Passenger Flow Forecast Based on the
Relevant Time The current period and the previous three periods can be used as input vectors to forecast the next period of the sectional passenger flow.
In this case, the network is four-dimensional input, one-dimensional output, the structure is shown in Figure 2.  In accordance with the selection method based on 4.1, samples obtained 52 pairs, treated 70% of sample pairs as training samples to train the network, 15% of sample pairs as the validation sample set, 15% of sample pairs as the test.
As a result, Figure 3 is the error performance curve, Figure 4 is the relationship between the predicted value and the true value.Observe the predicted value and the actual value of the curve, the predicted results almost coincide with the actual value.It proves that the scheme can predict the future trend of sectional passenger flow [5].

Sectional Passenger Flow Forecast Based on the
Relevant Section The sectional passenger flow of Fuxingmen to Fuchengmen has a strong correlation with its adjacent sections.Accordingly, select four sections such as section of Fuxingmen transfer station, Changchunjie to Fuxingmen, Fuxingmen to Fuchengmen, Xuanwumennei to Changchunjie current period passenger volume and the section of Fuxingmennei to Fuchengmen in front of three periods as the input vector to predict the next time passenger volume of Fuxingmen to Fuchengmen section.
As a result, Figure 5 is the error performance curve, Figure 6 is the relationship between the predicted value and the true value.Observe the predicted value and the actual value of the curve, the predicted results almost    coincide with the actual value.It proves that the scheme can predict the future trend of sectional passenger flow.

Sectional Passenger Flow Forecast Considering
Other Factors The impact of external factors also can improve the prediction accuracy, such as weekends, holidays, weather conditions, season, and other unexpected events.This paper considers the factors of weekends and the weather conditions.Defined weekend as 1, weekday as 0, sunny weather as 0, overcast sky as 0.5, rain and snow as 1.
As a result, Figure 7 is the error performance curve.Figure 8 is the relationship between the predicted value and the true value.Observing the predicted value and the actual value of the curve, the predicted results almost coincide with the actual value.It is proved that the scheme can predict the future trend of sectional passenger flow.

Comparison of Several Prediction Schemes
From Figures 4, 6 and 8, we can see that three schemes above all revealed the relations between the actual section flow and the predicted section flow.Therefore, the method is feasible to forecast section flow.
Select the result from 8:00 to 10:00 on March 7th of three schemes, the comparison results is shown in Table 2.
By the data above, using the relevant section data has a higher precision than only use the relevant time, considering other external factors can make error smaller.

Conclusion
Combining with the characteristics of sectional passenger flow, we used BP neural network to predict.The prediction results show that the three schemes are all feasible.This paper used collected historical data [6].If combin-   ing neural network with station control system, making real-time training and on-line prediction, we believe we can get a better prediction effect.

Figure 1 .
Figure 1.Schematic diagram of BP neural network.

Table 1 .
Solutions design of sectional passenger flow forecast.passenger flow of the T + 1 time period by using passenger flow of researched section of the T time period and previous 30 minutes time period Based on the relevant section Predict the sectional passenger flow of the T + 1 time period by using passenger flow of researched section and the relevant section of the T time period and previous 30 minutes time period Consider other factors Predict the sectional passenger flow of the next day by using the sectional passenger flow of the previous day and influencing factors (holidays, weather, season) of the next day

Neural Network 3.2.1. Network Structure
Input layer has p nodes, representing different sectional passenger flow.Y in output layer can represent forecast sectional flow.The number of hidden layer nodes according to the actual situation.

.2. Build a Network Model
Reasonable network structure is the basis of accurate forecast.Through a large number of experiments, the transfer function of hidden layer take s-shaped tangent function tansig, output unit adopts s-shaped logarithmic function logsig, training function adopts gradient descending training function training dx when training the BP neural network.After repeated study and training, adjusting parameters, set up reasonable mapping relationship between input and output.