A stadium evacuation evaluation method based on EM clustering algorithm

By combining the EM clustering algorithm with the k-nearest neighbor and PageRank algorithms, combined with the EM aggregation algorithm, the problems of factor classification, weight objectivity and algorithm complexity in stadium evacuation evaluation are solved, and more efficient and accurate evacuation evaluation results are achieved.

CN114219228BActive Publication Date: 2024-10-18HARBIN INST OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111405168.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-24
Publication Date
2024-10-18
Estimated Expiration
2041-11-24

AI Technical Summary

Technical Problem

Existing stadium evacuation evaluation methods cannot fully consider factors, lack objectivity in indicator weights, and have high algorithm complexity, resulting in insufficient accuracy and efficiency in evaluation results.

Method used

The EM clustering algorithm is used to classify factors through the k-nearest neighbor algorithm, the PageRank algorithm is weighted, and the EM aggregation algorithm is used to comprehensively process data, simplifying data collection and improving the objectivity of evaluation, and avoiding algorithm complexity.

Benefits of technology

It achieves a more comprehensive, objective and efficient stadium evacuation evaluation, simplifies factor classification and weight calculation, and reduces calculation costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114219228B_ABST
    Figure CN114219228B_ABST
Patent Text Reader

Abstract

The present invention is a stadium evacuation evaluation method based on the EM clustering algorithm. The present invention adopts the K nearest neighbor algorithm to reasonably classify the newly discovered factors, so that the factors affecting evacuation can be collected more comprehensively and the complex data can be simplified. The weights of the indicators of the factors affecting the evacuation of the stadium are mainly determined by expert predictions, which have a certain empirical inertia and are not objective enough. The present invention adopts the PageRank algorithm to add weights to make the evaluation results objective. In the face of the dilemma that the current algorithms for processing stadium evacuation evaluation are more complex when achieving close to the real results, the time cost and performance cost of the calculation are high. The present invention proposes to use the EM aggregation algorithm to comprehensively process the data, that is, avoid using neural networks to make the algorithm complicated, and can efficiently obtain the optimal stadium evacuation evaluation results.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of building safety and evacuation evaluation, and is a stadium evacuation evaluation method based on an EM clustering algorithm. Background Art

[0002] As a large public building, the stadium has the characteristics of high construction cost, complex structural calculation and multifunctional building. At the same time, the stadium is a place with dense crowds, and the evacuation of the stadium also greatly affects the construction cost, structural calculation and functional layout of the stadium. Therefore, accurate, objective and efficient evaluation of the stadium will not only ensure the safe evacuation in the stadium, but also provide optimization suggestions for the construction, structure and functional layout of the stadium design.

[0003] The main process of the existing stadium evacuation evaluation method is to establish a factor evaluation set, establish a comment set, determine the weight of the evaluation index, determine the evaluation algorithm, and determine the final evaluation result. When establishing the factor evaluation set, the existing evaluation method only takes important factors and cannot achieve a comprehensive study, because once the more factors are considered, the more complicated and difficult the evaluation method will be, and it is urgent to find a suitable solution. When determining the weight of the evaluation index, the index weight is mainly determined by expert prediction, which has a certain empirical inertia and is not objective enough. In addition, the weight is determined by a single hierarchical analysis method, resulting in insufficient weight calculation accuracy. In terms of determining the evaluation algorithm, the algorithms used in the existing methods include AHP, entropy weight method, gray correlation analysis method, fuzzy comprehensive evaluation method, neural network method, Bayesian network method, etc. When these algorithms are close to the real results, the algorithms are more complicated, and the calculation requires time cost and performance cost. There are disadvantages and they are in urgent need of improvement. Summary of the invention

[0004] The present invention aims at various drawbacks of current stadium evaluation, and aims to provide a more efficient, more comprehensive, more objective and more accurate stadium evacuation evaluation method based on EM clustering algorithm.

[0005] The present invention provides a stadium evacuation evaluation method based on the EM clustering algorithm. The present invention provides the following technical solutions:

[0006] A stadium evacuation evaluation method based on EM clustering algorithm, the method comprising the following steps:

[0007] Step 1: Establish a set of factors that affect stadium evacuation;

[0008] Step 2: Use the k nearest neighbor algorithm to classify the evaluation factor set;

[0009] Step 3: Quantitatively score the stadium evacuation based on the classified evaluation factors to form a mapping comment set;

[0010] Step 4: Use the PageRank algorithm to judge the importance of the data in the comment set and weight it to obtain the data matrix R. Calculate the mean μ of the weighted comment clusters corresponding to the factor set. j and variance Σ i ;

[0011] Step 5: Use the mean μ and covariance matrix of the score cluster as the initial quantity of the jth Gaussian model in the expectation maximization EM algorithm, and introduce the class prior information of the training set;

[0012] Step 6: Obtain the mean and variance through the EM aggregation algorithm to obtain the optimal score expectation.

[0013] Preferably, the step 1 is specifically:

[0014] The factors are divided into architectural design factors, evacuation equipment factors, evacuation management factors and crowd behavior factors. Architectural design factors are divided into three subcategories: shape factors, streamline factors and composition factors. Evacuation equipment factors are divided into four subcategories: emergency lighting system, lighting evacuation indication system, broadcast evacuation system and automatic fire alarm system. Evacuation management factors are divided into two subcategories: maintenance management and daily management. Crowd behavior factors are divided into two subcategories: inertial behavior and sudden behavior. The above classifications are used as the initial classification set.

[0015] Preferably, the step 2 is specifically:

[0016] Step 2.1: Define the distance between the factors and the initial classification sets according to the similarity between the input factors affecting stadium evacuation and each initial classification set;

[0017] Step 2.2: Sort by increasing distance;

[0018] Step 2.3: Select K points with the smallest distance;

[0019] Step 2.4: Determine the frequency of occurrence of the categories of the first K points;

[0020] Step 2.5: Return the category with the highest frequency among the first K points as the predicted classification of the factors affecting the evacuation of the stadium.

[0021] Preferably, the step 3 is specifically:

[0022] According to the classified evaluation factors, the existing stadiums are quantitatively scored, and the scores are evaluated by safety level. The scoring adopts a percentage system. In order to make the scoring more accurate, it is divided into ten levels with ten as an interval to avoid polarization of the scoring. The ten levels are very safe, relatively safe, generally safe, slightly safe, slightly unsafe, generally unsafe, relatively unsafe, unsafe, and very unsafe, corresponding to the scoring intervals of [90, 100], [80, 90], [70, 80], [60, 70], [50, 60], [40, 50], [30, 40], [20, 30], [10, 20], and [0, 10]. The obtained data set is the mapping of the factor set on the safety level evaluation, which constitutes the spatial matrix N of the stadium evacuation comment clustering clusters.

[0023] Preferably, the step 4 is specifically:

[0024] Step 4.1: The spatial matrix N of the stadium evacuation comment clusters is used as a directed graph with i×j nodes in the PageRank algorithm, and the stationary distribution R is the PageRank value of this directed graph;

[0025] Step 4.2: Let t = 0 and calculate When R t+1 With R t Close enough, let R t+1 =R t Stop iteration;

[0026] Step 4.3: Otherwise t=t+1, execute step 4.2;

[0027] Step 4.4: Finally, the PageRank vector R of the spatial matrix N of the stadium evacuation comment cluster is obtained;

[0028] Step 4.5: The data matrix R obtained by judging and weighting the importance of the data in the stadium evacuation comment set is expressed by the following formula:

[0029]

[0030] Step 4.6: Calculate the mean μ of each weighted stadium evacuation comment cluster of the data matrix R j and variance Σ i .

[0031] Preferably, step five is specifically:

[0032] The mean μ and covariance matrix of the score cluster are used as the initial quantities of the j-th Gaussian model in the expectation maximization EM algorithm, and the event quantity θ is expressed by the following formula:

[0033] θ={μ(θ),∑,(θ)|1≤j≤M},

[0034] Introduce the class prior information of the training set; use the EM aggregation algorithm to comprehensively process the stadium evacuation evaluation data. First, the data matrix R after weighted processing of the mapping N of the factors affecting the stadium evacuation set on the safety level judgment obtained in step 4 is used as the initialization data, that is, the mean μ of the scoring cluster is j and the covariance matrix Σ i As the initialization of the j-th Gaussian model in the expectation-maximization EM algorithm;

[0035] Construct a conditional density function of a Gaussian mixture model with respect to the data matrix R, and obtain an E-step formula and an M-step formula by maximizing the likelihood function of a parameter θ in the conditional density function of the Gaussian mixture model.

[0036] Preferably, the conditional density function of the Gaussian mixture model for the data x in the data matrix R is:

[0037]

[0038] Among them, C is the kth factor category in the set of factors affecting stadium evacuation, x is the data in the data matrix R, γ is the approximation between the Gaussian mixture model in the expectation maximization EM algorithm and class C, π is the probability that class C belongs to the Gaussian mixture model in the expectation maximization EM algorithm, θ is the parameter of the Gaussian model that uniquely identifies x, including the mean and covariance, θ j are the mean and covariance parameters of the j-th Gaussian model, p(x|j;θ) is the conditional probability that the training subset x belongs to the j-th Gaussian model, π jk C k The probability of the jth Gaussian model of the data satisfies γ jk is the jth Gaussian model and C k The approximation between data satisfies

[0039] The mean μ j and variance Σ i As the initial substitution of the j-th Gaussian model in the expectation maximization EM algorithm, we can get:

[0040]

[0041] Preferably, the step 6 is specifically:

[0042] Step 6.1: Input initialization parameters θ (0) , which is the mean value μ of the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation set on the safety level evaluation j and variance Σ i ;

[0043] Step 6.2: Execute the E-step calculation in the EM aggregation algorithm, using the current parameter θ (t) Calculate the Q function, the expression is:

[0044]

[0045] Step 6.3: Execute the M-step calculation in the EM aggregation algorithm to maximize the Q function and find the corresponding θ = argmaxQ(θ,θ (t) );

[0046] Step 4: Repeat the above steps 6.3 and 6.3 until convergence, and output the optimal solution of the evacuation evaluation system.

[0047] Preferably, the maximum expected value Z of the data matrix R is obtained in step E of the EM iteration equation according to the following formula: (i) :

[0048]

[0049] Assume that when t=i, the iterative calculation is completed, then the above formula can be converted into:

[0050]

[0051] The mean μ j and variance Σ i As the initial substitution of the j-th Gaussian model in the expectation-maximization EM algorithm, we can obtain:

[0052]

[0053] Where i represents the number of iterations, X represents the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation on the safety level evaluation, the latent variable Z represents the final stadium evacuation score result, and x (i) represents the feature vector of the i-th weighted stadium evacuation evaluation data, μ j represents the mean vector of the i-th weighted stadium evacuation evaluation data, represents the covariance matrix of the i-th weighted stadium evacuation evaluation data, p(x (i) ,z (i) |μ j ,Σ i ) represents the mean value μ of the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation set on the safety level judgment j and variance Σ i The probability that the weighted stadium evacuation evaluation data set belongs to the i-th weighted stadium evacuation evaluation data under the condition, Q i (z (i)) represents the mean value μ of the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation set on the safety level judgment j and variance Σ i The probability value of the weighted stadium evacuation evaluation data set belonging to the i-th weighted stadium evacuation evaluation data under the condition.

[0054] Preferably, the M step in the EM iteration equation is maximized according to the following formula:

[0055] θ=argmaxQ(θ,θ (t) ) (7)

[0056] The mean value μ of the data matrix R after weighting the mapping N of the factors affecting the evacuation of the stadium on the safety level evaluation j and variance Σ i As the initial substitution of the j-th Gaussian model in the expectation-maximization EM algorithm, we can obtain:

[0057]

[0058]

[0059] Where i represents the number of iterations, X represents the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation on the safety level evaluation, the latent variable Z represents the final stadium evacuation score result, and x (i) represents the feature vector of the i-th weighted stadium evacuation evaluation data, μ j represents the mean vector of the i-th weighted stadium evacuation evaluation data, represents the covariance matrix of the i-th weighted stadium evacuation evaluation data, p(x (i) ,z (i) |μ j ,Σ i ) represents the mean value μ of the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation set on the safety level judgment j and variance Σ i The probability that the weighted stadium evacuation evaluation data set belongs to the i-th weighted stadium evacuation evaluation data under the condition, Q i (z (i) ) represents the mean value μ of the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation set on the safety level judgment j and variance Σ i The probability value of the weighted stadium evacuation evaluation data set belonging to the i-th weighted stadium evacuation evaluation data under the condition.

[0060] The present invention has the following beneficial effects:

[0061] There are many factors that affect stadium evacuation in actual stadium engineering projects, and the influencing factors of different projects may be different or new influencing factors may be discovered. The present invention adopts the K nearest neighbor algorithm to reasonably classify the newly discovered factors, so that the collection of factors affecting evacuation can be more comprehensive and the complex data can be simplified. b. The weights of indicators of factors affecting stadium evacuation are mainly determined by expert predictions, which have a certain empirical inertia and are not objective enough. The present invention adopts the PageRank algorithm to add weights to make the evaluation results objective. c. Faced with the dilemma that the current algorithms for processing stadium evacuation evaluation are getting closer to the real results, the more complex they are, the higher the time cost and performance cost of the calculation, the present invention proposes to use the EM aggregation algorithm to comprehensively process the data, that is, to avoid using neural networks to make the algorithm complicated, and to efficiently obtain the optimal stadium evacuation evaluation results. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 for Figure 1 It is a flow chart of a stadium evacuation evaluation method based on EM clustering algorithm of the present invention;

[0063] Figure 2 A graphical representation of an initial classification set of factors affecting stadium evacuation according to the present invention;

[0064] Figure 3 This is a flow chart of the present invention using the k nearest neighbor algorithm to classify newly input factors;

[0065] Figure 4 This is a flow chart of the present invention using PageRank algorithm to judge and weight the importance of the data in the review set;

[0066] Figure 5 This is a flow chart of the comprehensive data processing using the EM aggregation algorithm of the present invention. DETAILED DESCRIPTION

[0067] The present invention is described in detail below in conjunction with specific embodiments. Specific embodiment one:

[0069] according to Figures 1 to 5 As shown, the specific optimization technical solution adopted by the present invention to solve the above technical problems is:

[0070] A stadium evacuation evaluation method based on EM clustering algorithm, the method comprising the following steps:

[0071] Step 1: Establish a set of factors that affect stadium evacuation;

[0072] The step 1 is specifically as follows:

[0073] The factors are divided into architectural design factors, evacuation equipment factors, evacuation management factors and crowd behavior factors. Architectural design factors are divided into three subcategories: shape factors, streamline factors and composition factors. Evacuation equipment factors are divided into four subcategories: emergency lighting system, lighting evacuation indication system, broadcast evacuation system and automatic fire alarm system. Evacuation management factors are divided into two subcategories: maintenance management and daily management. Crowd behavior factors are divided into two subcategories: inertial behavior and sudden behavior. The above classifications are used as the initial classification set.

[0074] Step 2: Use the k nearest neighbor algorithm to classify the evaluation factor set;

[0075] The step 2 is specifically as follows:

[0076] Step 2.1: Define the distance between the factors and the initial classification sets according to the similarity between the input factors affecting stadium evacuation and each initial classification set;

[0077] Step 2.2: Sort by increasing distance;

[0078] Step 2.3: Select K points with the smallest distance;

[0079] Step 2.4: Determine the frequency of occurrence of the categories of the first K points;

[0080] Step 2.5: Return the category with the highest frequency among the first K points as the predicted classification of the factors affecting the evacuation of the stadium.

[0081] Step 3: Quantitatively score the stadium evacuation based on the classified evaluation factors to form a mapping comment set;

[0082] The step 3 is specifically as follows:

[0083] According to the classified evaluation factors, the existing stadiums are quantitatively scored, and the scores are evaluated by safety level. The scoring adopts a percentage system. In order to make the scoring more accurate, it is divided into ten levels with ten as an interval to avoid polarization of the scoring. The ten levels are very safe, relatively safe, generally safe, slightly safe, slightly unsafe, generally unsafe, relatively unsafe, unsafe, and very unsafe, corresponding to the scoring intervals of [90, 100], [80, 90], [70, 80], [60, 70], [50, 60], [40, 50], [30, 40], [20, 30], [10, 20], and [0, 10]. The obtained data set is the mapping of the factor set on the safety level evaluation, which constitutes the spatial matrix N of the stadium evacuation comment clustering clusters.

[0084] Step 4: Use the PageRank algorithm to judge the importance of the data in the comment set and weight it to obtain the data matrix R. Calculate the mean μ of the weighted comment clusters corresponding to the factor set. j and variance Σ i ;

[0085] The step 4 is specifically as follows:

[0086] Step 4.1: The spatial matrix N of the stadium evacuation comment clusters is used as a directed graph with i×j nodes in the PageRank algorithm, and the stationary distribution R is the PageRank value of this directed graph;

[0087] Step 4.2: Let t = 0 and calculate When R t+1 With R t Close enough, let R t+1 =R t Stop iteration;

[0088] Step 4.3: Otherwise t=t+1, execute step 4.2;

[0089] Step 4.4: Finally, the PageRank vector R of the spatial matrix N of the stadium evacuation comment cluster is obtained;

[0090] Step 4.5: The data matrix R obtained by judging and weighting the importance of the data in the stadium evacuation comment set is expressed by the following formula:

[0091]

[0092] Step 4.6: Calculate the mean μ of each weighted stadium evacuation comment cluster of the data matrix R j and variance Σ i .

[0093] Step 5: Use the mean μ and covariance matrix of the score cluster as the initial quantity of the jth Gaussian model in the expectation maximization EM algorithm, and introduce the class prior information of the training set;

[0094] Preferably, step 5 is specifically:

[0095] The mean μ and covariance matrix of the score cluster are used as the initial quantities of the j-th Gaussian model in the expectation maximization EM algorithm, and the event quantity θ is expressed by the following formula:

[0096] θ={μ(θ),∑,(θ)|1≤j≤M},

[0097] Introduce the class prior information of the training set; use the EM aggregation algorithm to comprehensively process the stadium evacuation evaluation data. First, the data matrix R after weighted processing of the mapping N of the factors affecting the stadium evacuation set on the safety level judgment obtained in step 4 is used as the initialization data, that is, the mean μ of the scoring cluster is j and the covariance matrix Σ i As the initialization of the j-th Gaussian model in the expectation-maximization EM algorithm;

[0098] Construct a conditional density function of a Gaussian mixture model with respect to the data matrix R, and obtain an E-step formula and an M-step formula by maximizing the likelihood function of a parameter θ in the conditional density function of the Gaussian mixture model.

[0099] The conditional density function of the Gaussian mixture model for the data x in the data matrix R is:

[0100]

[0101] Among them, C is the kth factor category in the set of factors affecting stadium evacuation, x is the data in the data matrix R, γ is the approximation between the Gaussian mixture model in the expectation maximization EM algorithm and class C, π is the probability that class C belongs to the Gaussian mixture model in the expectation maximization EM algorithm, θ is the parameter of the Gaussian model that uniquely identifies x, including the mean and covariance, θ j are the mean and covariance parameters of the j-th Gaussian model, p(x|j;θ) is the conditional probability that the training subset x belongs to the j-th Gaussian model, π jk C k The probability of the jth Gaussian model of the data satisfies γ jk is the jth Gaussian model and C k The approximation between data satisfies

[0102] The mean μ j and variance Σ i As the initial substitution of the j-th Gaussian model in the expectation maximization EM algorithm, we can get:

[0103]

[0104] Step 6: Obtain the mean and variance through the EM aggregation algorithm to obtain the optimal score expectation.

[0105] The step 6 is specifically as follows:

[0106] Step 6.1: Input initialization parameters θ (0) , which is the mean value μ of the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation set on the safety level evaluation j and variance Σ i ;

[0107] Step 6.2: Execute the E-step calculation in the EM aggregation algorithm, using the current parameter θ (t) Calculate the Q function, the expression is:

[0108]

[0109] Step 6.3: Execute the M-step calculation in the EM aggregation algorithm to maximize the Q function and find the corresponding θ = argmaxQ(θ,θ (t) );

[0110] Step 6.4: Repeat the above steps 6.3 and 6.3 until convergence, and output the optimal solution of the evacuation evaluation system.

[0111] In the E step of the EM iteration equation, the maximum expected value Z of the data matrix R is obtained according to the following formula (i) :

[0112]

[0113] Assume that when t=i, the iterative calculation is completed, then the above formula can be converted into:

[0114]

[0115] The mean μ j and variance Σ i As the initial substitution of the j-th Gaussian model in the expectation-maximization EM algorithm, we can obtain:

[0116]

[0117] Where i represents the number of iterations, X represents the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation on the safety level evaluation, the latent variable Z represents the final stadium evacuation score result, and x (i) represents the feature vector of the i-th weighted stadium evacuation evaluation data, μ j represents the mean vector of the i-th weighted stadium evacuation evaluation data, represents the covariance matrix of the i-th weighted stadium evacuation evaluation data, p(x (i) ,z (i) |μ j ,Σ i ) represents the mean value μ of the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation set on the safety level judgment j and variance Σ i The probability that the weighted stadium evacuation evaluation data set belongs to the i-th weighted stadium evacuation evaluation data under the condition, Q i (z (i)) represents the mean value μ of the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation set on the safety level judgment j and variance Σ i The probability value of the weighted stadium evacuation evaluation data set belonging to the i-th weighted stadium evacuation evaluation data under the condition.

[0118] The M step in the EM iteration equation is maximized according to the following formula:

[0119] θ=argmaxQ(θ,θ (t) ) (7)

[0120] The mean value μ of the data matrix R after weighting the mapping N of the factors affecting the evacuation of the stadium on the safety level evaluation j and variance Σ i As the initial substitution of the j-th Gaussian model in the expectation-maximization EM algorithm, we can obtain:

[0121]

[0122]

[0123] Where i represents the number of iterations, X represents the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation on the safety level evaluation, the latent variable Z represents the final stadium evacuation score result, and x (i) represents the feature vector of the i-th weighted stadium evacuation evaluation data, μ j represents the mean vector of the i-th weighted stadium evacuation evaluation data, represents the covariance matrix of the i-th weighted stadium evacuation evaluation data, p(x (i) ,z (i) |μ j ,Σ i ) represents the mean value μ of the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation set on the safety level judgment j and variance Σ i The probability that the weighted stadium evacuation evaluation data set belongs to the i-th weighted stadium evacuation evaluation data under the condition, Q i (z (i) ) represents the mean value μ of the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation set on the safety level judgment j and variance Σ i The probability value of the weighted stadium evacuation evaluation data set belonging to the i-th weighted stadium evacuation evaluation data under the condition.

[0124] The EM aggregation algorithm is a latent variable estimation method. It first needs to input initialization data and then observe expectations. These two steps are the expectation step, i.e., the E step. If the result is biased, the parameters need to be re-estimated, which is called the maximization step, i.e., the M step. The EM aggregation algorithm is used to comprehensively process the stadium evacuation evaluation data. First, the weighted data matrix R of the mapping N of the factors affecting the stadium evacuation set on the safety level judgment obtained in step 4 is used as the initialization data, that is, the mean μ of the scoring cluster is taken as j and the covariance matrix Σ i As the initial of the jth Gaussian model in the expectation maximization EM algorithm. Then construct the conditional density function of the Gaussian mixture model about the data matrix R, and obtain the E-step formula and the M-step formula by maximizing the likelihood function of the parameter θ in the conditional density function of the Gaussian mixture model.

[0125] The algorithm process of the EM aggregation algorithm in step 6 for comprehensive data processing is: the mean μ of the data matrix R after weighted processing of the mapping N of the factors affecting the evacuation of the stadium on the safety level evaluation j and variance Σ i It is used as the initial value of θ in the expectation maximization EM algorithm and then it is iterated to gradually maximize the likelihood function.

[0126]

[0127] By Jensen's inequality: Where 0≤α i ≤1

[0128]

[0129] make

[0130] Then: L(θ)≥B(θ,θ (i) )

[0131] The optimization problem is transformed into: θ (i+1) =argmaxB(θ,θ (i) ) removes the terms that are irrelevant to θ, that is:

[0132]

[0133] Right now: (10)

[0134] Where i represents the number of iterations, X represents the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation on the safety level evaluation, the latent variable Z represents the final stadium evacuation score result, and x (i) represents the feature vector of the i-th weighted stadium evacuation evaluation data, μ jrepresents the mean vector of the i-th weighted stadium evacuation evaluation data, represents the covariance matrix of the i-th weighted stadium evacuation evaluation data.

[0135] The above is only a preferred implementation of a stadium evacuation evaluation method based on the EM clustering algorithm. The protection scope of a stadium evacuation evaluation method based on the EM clustering algorithm is not limited to the above embodiment. All technical solutions under this idea belong to the protection scope of the present invention. It should be pointed out that for those skilled in the art, several improvements and changes without departing from the principle of the present invention should also be regarded as the protection scope of the present invention.

Claims

1. A stadium evacuation evaluation method based on EM clustering algorithm, Its characteristics are: The method comprises the following steps: Step 1: Establish a set of factors that affect stadium evacuation; Step 2: Use the k nearest neighbor algorithm to classify the evaluation factor set; Step 3: Quantitatively score the stadium evacuation based on the classified evaluation factors to form a mapping comment set; Step 4: Use the PageRank algorithm to judge the importance of the data in the comment set and weight it to obtain the data matrix R. Calculate the mean μ of the weighted comment clusters corresponding to the factor set. j and variance Σ i ; The step 4 is specifically as follows: Step 4.1: The spatial matrix N of the stadium evacuation comment clusters is used as a directed graph with i×j nodes in the PageRank algorithm, and the stationary distribution R is the PageRank value of this directed graph; Step 4.2: Let t = 0 and calculate When R t+1 With R t Close enough, let R t+1 =R t Stop iteration; Step 4.3: Otherwise t=t+1, execute step 4.2; Step 4.4: Finally, the PageRank vector R of the spatial matrix N of the stadium evacuation comment cluster is obtained; Step 4.5: The data matrix R obtained by judging and weighting the importance of the data in the stadium evacuation comment set is expressed by the following formula: Step 4.6: Calculate the mean μ of each weighted stadium evacuation comment cluster of the data matrix R j and variance Σ i ; Step 5: Use the mean μ and covariance matrix of the score cluster as the initial quantity of the jth Gaussian model in the expectation maximization EM algorithm, and introduce the class prior information of the training set; Step 5 is as follows: The mean μ and covariance matrix of the score cluster are used as the initial quantities of the j-th Gaussian model in the expectation maximization EM algorithm, and the event quantity θ is expressed by the following formula: θ={μ(θ),∑,(θ)|1≤j≤M}, Introduce the class prior information of the training set; use the EM aggregation algorithm to comprehensively process the stadium evacuation evaluation data. First, the data matrix R after weighted processing of the mapping N of the factors affecting the stadium evacuation set on the safety level judgment obtained in step 4 is used as the initialization data, that is, the mean μ of the scoring cluster is j and the covariance matrix Σ i As the initialization of the j-th Gaussian model in the expectation-maximization EM algorithm; Constructing a conditional density function of a Gaussian mixture model with respect to the data matrix R, and obtaining an E-step formula and an M-step formula by maximizing a likelihood function of a parameter θ in the conditional density function of the Gaussian mixture model; Step 6: Obtain the mean and variance through the EM aggregation algorithm to obtain the optimal score expectation.

2. A stadium evacuation evaluation method based on EM clustering algorithm according to claim 1, Its characteristics are: The step 1 is specifically as follows: The factors are divided into architectural design factors, evacuation equipment factors, evacuation management factors and crowd behavior factors. Architectural design factors are divided into three subcategories: shape factors, streamline factors and composition factors. Evacuation equipment factors are divided into four subcategories: emergency lighting system, lighting evacuation indication system, broadcast evacuation system and automatic fire alarm system. Evacuation management factors are divided into two subcategories: maintenance management and daily management. Crowd behavior factors are divided into two subcategories: inertial behavior and sudden behavior. The above classifications are used as the initial classification set.

3. A stadium evacuation evaluation method based on EM clustering algorithm according to claim 2, Its characteristics are: The step 2 is specifically as follows: Step 2.1: Define the distance between the factors and the initial classification sets according to the similarity between the input factors affecting stadium evacuation and each initial classification set; Step 2.2: Sort by increasing distance; Step 2.3: Select K points with the smallest distance; Step 2.4: Determine the frequency of occurrence of the categories of the first K points; Step 2.5: Return the category with the highest frequency among the first K points as the predicted classification of the factors affecting the evacuation of the stadium.

4. A stadium evacuation evaluation method based on EM clustering algorithm according to claim 3, Its characteristics are: The step 3 is specifically as follows: According to the classified evaluation factors, the existing stadiums are quantitatively scored, and the scores are evaluated by safety level. The scoring adopts a percentage system. In order to make the scoring more accurate, it is divided into ten levels with ten as an interval to avoid polarization of the scoring. The ten levels are very safe, relatively safe, generally safe, slightly safe, slightly unsafe, generally unsafe, relatively unsafe, unsafe, and very unsafe, corresponding to the scoring intervals of [90, 100], [80, 90], [70, 80], [60, 70], [50, 60], [40, 50], [30, 40], [20, 30], [10, 20], and [0, 10]. The obtained data set is the mapping of the factor set on the safety level evaluation, which constitutes the spatial matrix N of the stadium evacuation comment clustering clusters.

5. A stadium evacuation evaluation method based on EM clustering algorithm according to claim 1, Its characteristics are: The conditional density function of the Gaussian mixture model for the data x in the data matrix R is: Among them, C is the kth factor category in the set of factors affecting stadium evacuation, x is the data in the data matrix R, γ is the approximation between the Gaussian mixture model in the expectation maximization EM algorithm and class C, π is the probability that class C belongs to the Gaussian mixture model in the expectation maximization EM algorithm, θ is the parameter of the Gaussian model that uniquely identifies x, including the mean and covariance, θ j are the mean and covariance parameters of the j-th Gaussian model, p(x|j;θ) is the conditional probability that the training subset x belongs to the j-th Gaussian model, π jk C k The probability of the jth Gaussian model of the data satisfies γ jk is the jth Gaussian model and C k The approximation between data satisfies The mean μ j and variance Σ i As the initial substitution of the j-th Gaussian model in the expectation maximization EM algorithm, we can get: 。 6. A stadium evacuation evaluation method based on EM clustering algorithm according to claim 1, Its characteristics are: The step 6 is specifically as follows: Step 6.1: Input initialization parameters θ (0) , which is the mean value μ of the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation set on the safety level evaluation j and variance Σ i ; Step 6.2: Execute the E-step calculation in the EM aggregation algorithm, using the current parameter θ (t) Calculate the Q function, the expression is: Step 6.3: Execute the M-step calculation in the EM aggregation algorithm to maximize the Q function and find the corresponding θ = argmaxQ(θ,θ (t) ); Step 6.4: Repeat the above steps 6.3 and 6.3 until convergence, and output the optimal solution of the evacuation evaluation system.

7. A stadium evacuation evaluation method based on EM clustering algorithm according to claim 1, Its characteristics are: The maximum expected value Z of the data matrix R is obtained by the E step in the EM iteration equation according to the following formula (i) : Assume that when t=i, the iterative calculation is completed, then the above formula can be converted into: The mean μ j and variance Σ i As the initial substitution of the j-th Gaussian model in the expectation-maximization EM algorithm, we can obtain: Where i represents the number of iterations, X represents the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation on the safety level evaluation, the latent variable Z represents the final stadium evacuation score result, and x (i) represents the feature vector of the i-th weighted stadium evacuation evaluation data, μ j represents the mean vector of the i-th weighted stadium evacuation evaluation data, represents the covariance matrix of the i-th weighted stadium evacuation evaluation data, p(x (i) ,z (i) |μ j ,Σ i ) represents the mean value μ of the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation set on the safety level judgment j and variance Σ i The probability that the weighted stadium evacuation evaluation data set belongs to the i-th weighted stadium evacuation evaluation data under the condition, Q i (z (i) ) represents the mean value μ of the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation set on the safety level judgment j and variance Σ i The probability value of the weighted stadium evacuation evaluation data set belonging to the i-th weighted stadium evacuation evaluation data under the condition.

8. The stadium evacuation evaluation method based on EM clustering algorithm according to claim 1, Its characteristics are: The M step in the EM iteration equation is maximized according to the following formula: θ=argmaxQ(θ,θ (t) ) (7) The mean value μ of the data matrix R after weighting the mapping N of the factors affecting the stadium evacuation on the safety level evaluation j and variance Σ i As the initial substitution of the j-th Gaussian model in the expectation-maximization EM algorithm, we can obtain: Where i represents the number of iterations, X represents the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation on the safety level evaluation, the latent variable Z represents the final stadium evacuation score result, and x (i represents the feature vector of the i-th weighted stadium evacuation evaluation data, μ j represents the mean vector of the i-th weighted stadium evacuation evaluation data, represents the covariance matrix of the i-th weighted stadium evacuation evaluation data, p(x (i) ,z (i) |μ j ,Σ i ) represents the mean value μ of the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation set on the safety level judgment j and variance Σ i The probability that the weighted stadium evacuation evaluation data set belongs to the i-th weighted stadium evacuation evaluation data under the condition, Q i (z (i) ) represents the mean value μ of the data matrix R after the mapping N weighted processing of the factors affecting the stadium evacuation set on the safety level judgment j and variance Σ i The probability value of the weighted stadium evacuation evaluation data set belonging to the i-th weighted stadium evacuation evaluation data under the condition.

Citation Information

Patent Citations

  • Method and system for evaluating road emergency evacuation capacity and method and system for grading road emergency evacuation capacity

    CN101694744A

  • Stadium emergency evacuation identification readability evaluation system based on fuzzy theory and control method thereof

    CN112836275A