Research on the Prediction Model for the Security Situation of Metro Station Based on PSO / SVM

Security situation awareness is a new technology about security. This paper brings it to the assessment of security situation of metro station which serves as a new way to secure the security of passengers as well as the operation of the metro station. This paper sets up an index system for assessing the security situation awareness and makes a prediction model for the security situation of metro station based on PSO/SVM after doing lots of researches and analyses. Furthermore, through case studies, we find that the model has high accuracy and ability to accurately predict the security situation of metro station in the future and a certain practical value.


Introduction
Metro station is a place for passengers to wait for the train which is of many characters such as profession on operation, complication on technologies and equipments that it applies for, and the mass on the number of passengers.Once security incident occurs, it will end with great loss both in life and personal injury and property.Therefore, it is of great importance to assure the security of metro station operation [1].This paper brings security situation awareness to the assessment of security situation of metro station to get a comprehensive assessment about the security situation of metro station so as to reflect the situation objectively and take measures in time to minimize security risks.It can be served as a new way to secure the security of passengers as well as the operation of the metro station.
The concept of situation awareness originates from the research of ergonomics in the space field reflecting the process in which the pilots observe, analyze and make decision.Now it is widely used in many fields such as network security, military and space [2].Endsley defines situation awareness as the perception of elements in current situation, comprehension of current situation and projection of future status based on certain condition of time and space [3,4].The three levels of situation aware-ness can be analyzed in Figure 1.
The security situation awareness of metro station can be analyzed as an extendedness of situation awareness of space in the metro system.At present, the research on security situation awareness of metro station is still in infancy, so it does not get a unified and comprehensive definition.Therefore, this paper tries to give an appropriate definition of it.
The security situation awareness of metro station is the perception, comprehension and projection of future status of the variants which affect the security of passengers and the metro station operation from the perspective of the affective elements to the metro station operation.We can get the security situation value of the past and the present through the security situation comprehension model, then forecast the security situation value of future so as to help the manager of metro station master the status of the development of security situation.
The security situation value of metro station which can reflect the operation situation of station security is the quantitative expression of metro station security situation.The security situation value changes as the rate, number and places of the security accidents change.We can take appropriate actions and make protective plan after we can accurately master the security situation of metro station.
The prediction of security situation of metro station, on the basis of security situation value in the known period in which we supervise it, forecasts the security situation value of future status so as to assure the security situation of metro station in the future.Therefore, it is where the research of security situation awareness can go to forecast the security situation value in the future by setting up an appropriate model for security situation awareness.
The key point of the research of security situation prediction lies on how to use artificial Intelligence accounting to set up a prediction model with high accuracy.Typical prediction methods include time order prediction, neutral network prediction, grey model and SVM [5,6].SVM is the hot pot among the researches in security situation prediction because it is of many advantages such as being fast in convergence rate, small in absolute error, strong in the ability against over fitting and accurate in the prediction of developing tendency in security situation [4].However, a problem that we are blind in selecting the training parameters will appear if we only use SVM as prediction model [6].
Therefore, this paper comes up with a prediction model of security situation composed of PSO/SVM.It can optimize the training parameters to use the method of PSO, so we can get developed SVM prediction model.Furthermore it can be used to predict the security situation with high accuracy.

The Index System of Assessing Security Situation Awareness
The change of Security situation of metro station is the result of interaction and interrelationship of the four elements-humans, equipment, environment and management.Basing on the survey of Guangzhou metro, analyzing the statistics of the injured passengers and analyzing of the elements which affect the security, this paper sets up index system of assessing security situation awareness of metro station from the basic connotation of metro station security.Figure 2 is the index system of subway station security situation awareness.The index system of assessing security situation awareness of metro station makes an assessment about the insecure situation of human's behavior, environment and management.It can reflect and describe accurately the security situation and its developing tendency via assessing the security of the traveling of passengers so as to take action to keep off the origin of danger and ensure the security of the station operation and passengers.
The paper analyzes influence of indicators on the station's security situation, and on the basis of field investigation and literature analysis, deduces the formula of each index, as shown in Table 1.Quantitative values of each index calculated can objectively reflect the station's security situation; increase the subway station security situation assessment result is scientific and accurate.

The meaning of indicators Calculation formula & parameters
C 1 is the ratio of the actual assembling on the station platform and the actual area of the station platform during the peak times of passenger flow   1 0.9 1 The response time of the people, min; Q 1 -Train passenger numbers; Q 2 -The total number of waiting passengers and staff on the station platform; A 1 -Through capacity of escalator, people/min•m; A 2 -Through capacity of stairway, people/min•m; N-The number of escalator; B-The total width of the stairway, m; 0.9 is reduction factor node corresponds to a support vector, and its weight value is the corresponding Lagrange multiplier, shown in Figure 3.
For a group of contiguous sequence x(i), the  as an input vector, x(k + i) as the output value, in order to establish the training sample, and SVM regression model is described as: where, k is the dimension of input vector.Training samples shown in Table 2.

Basic Principles of PSO
PSO was proposed by Dr. Eberhart and Dr. Kennedy, originated from the study on the behavior of birds foraging [9,10].Assuming a D-dimensional search space, there are N particles forming a population in which the position of each particle is represented as a D-dimensional vector with representation; particles' flight speed recorded as ; particle i have been found as the optimal position so far, denoted P best ; the best position of whole swarm have been searched so far, denoted by g best ; after finding the two positions, the particles update their speed and position according to the following formula: where, is the flight speed of i-th particle in (k + 1) generations; is the position of i-th particle in (k + 1) generations; is the best position of i-th particle to Table 2. Training samples.
Input Output is the best position populations to kgeneration; is the population cognition; w is the inertia weight; id is the velocity of the particle; c 1 and c 2 are learning factors; r 1 and r 2 is the random number of uniformly distribution in [0,1]; i = 1, 2, •••, N.

Security Situation Prediction Model
Based on PSO/SVM metro station security situation prediction model is divided into three modules: 1) data preprocessing module is that experimental data are normal-ized to obtain the required model for training and testing data sets; 2) PSO parameter optimization module is the use of the PSO algorithm to optimize the SVM parameters, then the optimal parameters pass to the SVM; 3) SVM prediction module using the training data set has been training to obtain prediction model, and use the test data set for prediction.The structure of prediction model has been shown in Figure 4.
In PSO parameter optimization module, we need to determine the fitness function.PSO algorithm used fitness value to evaluate the merits of an individual or population in the search process of evolution, and as the basis of the particle velocity and position changes, it gradually evolved to the optimal solution.In this paper, the mean square error (MSE) is the fitness function: where y is the actual value of the training sample, i y  is the predicted value of the model, N is the number of data samples.The MSE is smaller, which means the higher prediction accuracy, the predicted value closer to the target value.
In SVM prediction module, we need to determine the kernel function.Introducing of kernel function enables inner product operation of high-dimensional space implement by input space, to avoid the curse of dimensionality.Since the radial basis function only needs to determine a variable, compared with other kernel functions easy to determine, therefore, the use of Gaussian radial basis kernel function, SVM can make optimal performance.RBF kernel function is described as: where, σ is kernel parameters.Based on the above prediction model, security situation prediction algorithm steps based on PSO/SVM will be shown in Figure 5.

Examples and Analysis
To verify the validity of PSO/SVM security situation prediction model, Guangzhou Chen clan academy station, for example, according to the data requirements for each index in the evaluation index system, we got year 2011 data and quantified each index as the original experimental data sample.Using the literature [11] multidimensional contact number method to establish the security situation understanding model to calculate the value of Chen clan academy station 365 days' security situation, using the formula (6) on the security situation value data are normalized, normalized security trend values shown in Figure 6.Taking the dimension input vector is 7, building a experimental sample set whose capacity is 358 Open Access JILSA In order to measure the accuracy of the prediction model, this paper selected mean square error as predictive accuracy of fitness function evaluation model.However, due to the small mean square error value, it is difficult to visually give the difference between the actual value of the security situation and the predicted value of PSO/SVM security situation prediction model, and analysis the correlation through linear regression analysis.Therefore, using the correlation coefficient R to further measure the curve fitting and linear regression analysis between the predicted value and the actual value of the prediction model security situation: where, i y is the average of the test sample, i y  is the average of the predicted value.R-value is closer to 1, which means that the model prediction has higher accuracy, the closer to the actual system.
Set PSO parameters are: population size is 40; inertia weight initial w max = 0.9; inertia weight final value w min = 0.4; learning factor c 1 = c 2 = 2; maximum velocity V max = 5; maximum speed and position limits scaling factor k = 0.6; maximum evolution generation T max = 200.Training process adaptation curve shown in Figure 7.
Analyzed follows: PSO/SVM security situation prediction model training MSE was 2.428 × 10 −3 , testing MSE was6.172× 10 −4 .Figure 8 shows the comparison between the predicted and actual value of the security situation model.We can see, it has good relevance between the predicted and actual value.Both in the training data or in the test data can basically fit on the actual value.Figure 9 shows us the correlation curve of security situation prediction model predicted value and the   actual value, the correlation coefficient R in the training is 0.80935, the test is 0.92264, showing that the model predicted values had a higher degree of curve fitting on the actual values.Table 4 gives us the results of prediction model training and test data.

Conclusions
1) Based on the Guangzhou Metro research analysis, statistical analysis of passengers' injury and security factors, this paper established the evaluation system of 2) This paper established metro station security situation prediction model based on PSO/SVM, and through case analysis, it verified the model having high prediction accuracy, which has some practical value.The next step should be to enhance comparative study of prediction algorithm.
Security situation awareness in the field of urban rail transportation applications is still in infancy, and it still needs further study in order to better solve practical problems.

Figure 1 .
Figure 1.The three levels of situation awareness.
The pitted people of per second; Q 2 -The Outbound people of per second; S-Actual area of the station platform, m 2 ; T 1 -Train arrived in time interval, s;T 2 -The longest travel time from the platform to the station hall, s; Φ-The platform uneven coefficient of passenger flow density C 2 is the comprehensive value of staff's performance evaluation results during statistical

NN
The average performance evaluation results of the i class staff; α i -Importance degree of the i class staff; m-The number of the i class staff; d-The performance evaluation results score of the i-th class j-th staff C 3 is the number of passenger injury accidents caused by passengers of their responsibilities during statistical period 3 C N  N-The number of passenger injury accidents caused by passengers of their responsibilities C 4 is the number of FAS system false alarm(omission) during statistical period 4 C M N   M-The number of FAS system false alarm; N-The number of FAS system omission alarm C 5 is the ratio of the equipment failure maintenance time of elevator system and the program run-time during statistical period number of vertical elevators and escalators; T-The equipment failure repair time of i-th vertical elevator or escalator; T plan -The program run-time of i-th vertical elevator or escalator C 6 is the ratio of the train doors/PSD non-normal switching number of times and the total number of normal switch during statistical doors/PSD -The i-th train doors/PSD's non-normal switching number of times; Alt doors/PSD -The i-th train doors/PSD's total number of normal switch; n-The number of train doors/PSD C 7 is the ratio of the equipment failure maintenance time of AFC system and the program run-time during statistical period number of floodgate machine and ticket machines; T-The equipment failure repair time of i-th machines; T plan -The program run-time of i-th machines C 8 is the total equipment alarms number of ISCS and integrated subsystems during number of ISCS and integrated subsystems; M i -The i-th system's equipment alarms number C 9 is the ratio of the number of times of train punctuality arrival and all number of times of the opening line on time -The number of times of train punctuality arrival; N-All number of times of the opening line C 10 is the load degrees of the pass type of facilities and equipment during the peak times of passenger flow 10 1

I 2 C
The load degrees of the i-th equipment; λ i -The weight of the i-th equipment; Q i -The actual passenger traffic of the i-th equipment;C i -The traffic capacity of the i-th equipment; n-The number of the pass type of facilities and equipment Continued C 11 is the comprehensive evaluation for the environment inside the station during max -Maximum mass sub-indices; I γ -Average quality sub-indices; c i -The i-th factor's measurement values; S 1 -The i-th factor's standard values; i are the temperature, humidity and CO 12 is the comprehensive evaluation for the safety management institutions, safety production responsibility system, safety education, accident rescue etc.The i-th expert's evaluation scores of the safety management capability; F max -The maximum evaluation score; F min -The minimum evaluation score; n-The number of expert C 13 is the accident evacuation time of the platform layer during the peak times of passenger flow.

Figure 4 .
Figure 4.The structure of prediction model.

Figure 5 .
Figure 5. Security situation prediction algorithm steps based on PSO/SVM.groups, where the data of the first 280 groups as the training sample set, the data of the last 78 groups as the test sample set.      min max min

Figure 9 .
Figure 9.The correlation curve of predicted value and the actual value.(a) Correlation of the training set; (b) Correlation of the testing set.

Table 1 . The calculation formula of each index.
[7,8]asicPrinciples of SVMSVM[7,8]was come up with by Vapnik and Cortes in 1995.SVM is originally used to do some classifying.In order to extend to regression estimation, we can introduce insensitive loss function ε.The basic idea is through a nonlinear mapping Φ training set data x mapped into a high dimensional linear feature space G, and construct regression estimates function in this space.SVM similar to a neural network, the output is a linear combination of intermediate nodes, each intermediate