Pedestrian flow evacuation simulation method based on leader-follower structure

By combining transfer entropy and maximum policy entropy reinforcement learning to improve the social force model, we identify and optimize the leader and follower roles in the pedestrian flow, solve the role conversion and evacuation problems in complex scenarios in the existing technology, and improve the pedestrian flow evacuation. efficiency and scientificity.

CN118822293APending Publication Date: 2024-10-22BEIJING JIAOTONG UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410785376.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-18
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

When simulating the evacuation of pedestrian flow, the existing technology is difficult to correctly identify and describe the role transition in the leader-follower structure, and may lead to unscientific and reasonable movement of pedestrian flow in complex scenarios.

Method used

The transfer entropy method is used to identify the roles of leaders and followers, and combined with maximum policy entropy reinforcement learning and an improved social force model, the leader's path selection and follower movement behavior are optimized. By calculating the transfer entropy and net influence between evacuators, the Leader and follower identities, and introducing policy entropy in reinforcement learning to improve the algorithm’s exploration capabilities.

Benefits of technology

Effectively identify and simulate the leader-follower structure, improve the efficiency of pedestrian flow evacuation and the scientific nature of movement, and adapt to evacuation scenarios in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118822293A_ABST
    Figure CN118822293A_ABST
Patent Text Reader

Abstract

The invention provides a pedestrian flow evacuation simulation method based on a leader-follower structure. The method comprises the steps that the walking speed of a pedestrian is obtained through a simulation method, and roles, namely a leader, a follower and others, of the pedestrian are distinguished through a transfer entropy method according to the speed and direction. Maximum strategy entropy reinforcement learning is used to describe path planning and exit selection of a leader, an improved social force model is used to describe walking behaviors of followers, and a classic social force model is used to describe walking behaviors of others. The invention provides a new method to simulate a spontaneously formed leader-follower structure in crowd evacuation. A leader-follower structure is identified by using a transfer entropy method, the transfer entropy method is integrated into a social force model, the follower updates the expected speed direction and is subjected to the leader force of the leader, and the leader performs path planning / exit selection based on maximum strategy entropy reinforcement learning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technology, and in particular to a pedestrian flow evacuation simulation method based on a leader-follower structure. Background Art

[0002] During the evacuation process, the primary need of individuals is to obtain decision-making information from the environment. Relatively speaking, those who are familiar with the environment are individuals with prior knowledge. They will make decisions based on the information of the environment in the shortest time and are less affected by others. However, the vast majority of individuals will make decisions based on the behavior of other individuals in their field of vision, and some pedestrians will spontaneously form a leader-follower structure. The leadership generated by the leader in the following behavior is usually based on the information difference between pedestrians. The leader decides the direction or path of the entire walking process. There is no stable social relationship between pedestrians in the leader-follower structure. The reason for forming this structure is to seek support and information, rather than blindly follow others. Constructing a walking behavior model based on the leader-follower structure is conducive to revealing the cooperation mechanism between leaders and followers, verifying the conditions under which the leader role in the group has positive and negative effects in walking / evacuation, and providing a new idea for studying the relevant directions of pedestrian group evacuation.

[0003] For the pedestrian flow model, the walking mechanism of the leader-follower structure includes:

[0004] (1) Leaders are predefined and randomly distributed at the beginning of the simulation, and followers are assumed to follow the nearest leader. Comparative experiments show that evacuation with leaders is usually more effective than evacuation without leaders. When the number of leaders reaches a certain value, the crowd evacuation efficiency reaches the maximum value.

[0005] (2) Design a group aggregation algorithm and construct an initialization model for role division in the leader-follower structure.

[0006] (3) The TE method is used to identify different roles in the leader-follower structure. The social force model is integrated under this structure to construct a pedestrian walking behavior model. The impact of the leader's position in this structure on the group's walking efficiency is explored.

[0007] Existing methods mainly focus on pre-defining leaders, and most of them start from the single perspective of leaders or followers, only simulating the unilateral behavior of leaders or followers, without considering the role conversion in the leader-follower structure. Most of the existing studies assume that the leader has complete evacuation information and can make the correct and optimal decision. However, the validity of the conclusions in the real world is still questionable. Leaders do not necessarily have complete information and need to continuously explore in a chaotic environment to obtain the optimal decision (path planning / exit selection). Therefore, a method to identify spontaneous leader-follower structures and finely describe the movement behaviors of leaders and followers is necessary.

[0008] At present, a method in the prior art for identifying a spontaneous leader-follower structure and describing the leader and follower walking behaviors in detail includes:

[0009] Step 1: Pedestrian grouping based on clustering algorithm

[0010] The small groups that appear during pedestrian evacuation are realized through the clustering algorithm. Individuals initialize their positions according to distance control, and groups and small groups are divided based on the clustering probability or the distance between pedestrians. The pedestrian closest to the target position is selected as the leader.

[0011] Step 2: Optimize the leader’s path planning using the neural network-based Q-learning algorithm

[0012] Execute the Q-learning algorithm, interact with the environment, calculate and update the reward value, and select the direction with the maximum reward for output, which is the optimal direction.

[0013] Step 3: Update the follower's movement parameters based on the improved social force model

[0014] The repulsive force and friction force between the follower and other pedestrians and obstacles in the environment, as well as the leadership, aggregation, and collision avoidance force between the groups, are calculated, and the resultant force on the pedestrian is calculated to obtain the speed and acceleration of the movement, which is further converted into displacement. Driven by the social force model, the follower performs actions.

[0015] The disadvantages of the above-mentioned prior art methods for identifying spontaneous leader-follower structures and describing the walking behaviors of leaders and followers in detail include: (1) selecting leaders by grouping cannot correctly reflect the corresponding relationship between followers and leaders; (2) when the evacuation scene is relatively complex, such as a scene with multiple rooms and exits, simply using reinforcement learning to find the path will cause some scene information to be ignored, and there may be a situation where pedestrians are congested at a certain exit while no pedestrians choose another more hidden exit, resulting in the overall movement of pedestrians not being scientific and reasonable. Summary of the invention

[0016] The embodiment of the present invention provides a pedestrian flow evacuation simulation method based on a leader-follower structure, so as to effectively improve the efficiency of pedestrian flow evacuation.

[0017] In order to achieve the above object, the present invention adopts the following technical scheme.

[0018] A pedestrian flow evacuation simulation method based on a leader-follower structure, comprising:

[0019] Evacuate the evacuees within the evacuation range, record the movement information of the evacuees at each time step, calculate the transfer entropy between the evacuees within the evacuation range based on the movement information, and identify the leader and follower roles based on the transfer entropy;

[0020] For the leader, the maximum strategy entropy reinforcement learning (MSERL) algorithm is used to select and execute actions to optimize the leader's path selection.

[0021] The improved social force evacuation (ISFM) algorithm is implemented for followers. The force between pedestrians, the repulsive force from obstacles, and the self-driving force of following the leader are applied to each follower, and Newton's second law is used to update the velocity and position coordinates of the follower.

[0022] Preferably, before evacuating the evacuees within the evacuation range, the method further includes: allocating the layout of walls and exits within the evacuation range, initializing the distribution of pedestrians within the evacuation range, the number of evacuees, transfer entropy and environmental parameters.

[0023] Preferably, the evacuation of the evacuees within the evacuation range, recording the movement information of the evacuees at each time step, and calculating the transfer entropy between the evacuees within the evacuation range according to the movement information includes:

[0024] (1) Evacuate the evacuees within the evacuation range, record the movement information of the evacuees at each time step, consider the walking speed parameters of the two evacuees, and use phase space reconstruction to construct the walking speed of each evacuee during the movement into an M-dimensional time series: X = (X1, X2, ... X N ) T ,Y=(Y1,Y2,...Y N ) T , i=1,2,...,N is the i-th characteristic time series, X i =(x i,1 ,x i,2 ,...,x i,M ), Y i =(y i,1 ,y i,2 ,...,y i,M< ), xi,M and i,M Take the value of the time series of the i-th feature.

[0025] (2) Reconstruct the phase space lag of the individual walking time series and calculate the lag τ of X and Y = (τ1, τ2, ..., τ N ), that is, the delay time, and the embedding dimension of the time series D = (d1, d2, ..., d N );

[0026] 1) The AMI self-mutual information method is used to find the optimal time delay embedding phase space, and the time delay τ of all dimensions in the data is estimated through AMI;

[0027] According to Takens' theorem, the D-dimensional transformation from the speed of individual evacuees to the dynamic time series y(t) is used to illustrate the phase space reconstruction by embedding the 1-dimensional time series x(t).

[0028] X D,1 (t)=(x(t),x(t+τ),…,x(t+(d―1)τ)) (1)

[0029] 2) The optimal embedding dimension D is calculated by the nearest neighbor KNN. The rth nearest neighbor point of the coordinate vector y(t) is (r) The square of the Euclidean distance between (t) Calculated by formula (2);

[0030]

[0031] For a multidimensional time series x1(t),x2(t),…,x d (t) is embedded, and for every step the embedding dimension D increases, the square of the distance between y(t) and the rth nearest neighbor is calculated by formula (3).

[0032]

[0033] in is the rth nearest neighbor of the coordinate vector y(t) and y (r) The square of the Euclidean distance between (t);

[0034] Select the D value where the pseudo-distance no longer changes, and reconstruct the time series representing the walking status of different individuals based on the D value;

[0035] 3) The time series X = (X1, X2, ... X N ) T and Y=(Y1,Y2,...Y N ) T Linearization into time series scalars P and U

[0036]

[0037] Where k≤M―max(d j )×max(τ j ),k+(d j ―1)τ j ≤M, j=1,2,...,N. τ=(τ1,τ2,…,τ N ) and D=(d1,d2,…,d N ) are the time lag and embedding dimensions respectively;

[0038] Calculate P k and U k The transfer entropy between

[0039]

[0040] In the formula, the transfer entropy Defined as the difference between the conditional entropies, I(P t ; U t―1 |P t―1 ) is mutual information, which refers to the degree of reduction of the uncertainty of random variable U under the condition that the probability distribution of random variable P is known, or the degree of reduction of the uncertainty of P after knowing U. H(P t |U t―1 ) is the conditional entropy, which refers to the uncertainty of the random variable P under the condition that the random variable U occurs;

[0041] (4) Calculate the transfer entropy between X and Y

[0042]

[0043] In the formula, k max =M―max(d j )×max(τ j ), TE Y→X It is a measure of the asymmetry of the time series;

[0044] (5) Calculate the net impact between pedestrians

[0045]

[0046] In the formula, is the net impact, is the net impact threshold, when The net impact Equivalent to the net transfer entropy, TE j→i ―TE i→j Otherwise, the net impact is zero and the cumulative impact is I j(t) is obtained by summing the net impacts over the time period.

[0047] Preferably, the identifying the leader and follower roles according to the transfer entropy includes:

[0048] Set the transfer entropy decision threshold to 0. When , it indicates that the influence of pedestrian j on pedestrian i is greater than the influence of pedestrian i on pedestrian j, then pedestrian j is judged to be a potential leader;

[0049] The pedestrians within the visual range of pedestrian i are defined as the set As shown in formula (11), if pedestrian j has the largest net influence on pedestrian i at the threshold, pedestrian j is determined to be the leader of pedestrian i; otherwise, pedestrian i will not follow the leader but walk towards the exit independently.

[0050]

[0051] Preferably, the method of executing the maximum strategy entropy reinforcement learning (MSERL) algorithm for the leader, selecting and executing actions, and optimizing the path selection of the leader includes:

[0052] For the leader, the MSERL algorithm is executed and the state of the pedestrian as the leader is represented by S, s t ∈S represents the location of the pedestrian at time t. During the learning period, S is the location of the agent at each step, and the action is represented by A. t ∈A represents the action taken by the agent to select the next state based on the current state, s t+1 =a(s t ), s t+1 Represents the state of the agent at the next moment, and the reward is represented by R, which represents the immediate return of the environment state after the agent performs action a to the action performed. The reward function is set as follows:

[0053]

[0054] The Q function is represented by Q, which represents the estimated value of the state-action pair. The iterative calculation formula of the state-action value function uses the calculation formula of the standard Q learning algorithm. The Q function is initialized to zero, s t Indicates the current state, a t Indicates the current action, s t+1 represents the next state, a t+1 The Q-table update for each leader representing the next action is calculated by formula (13);

[0055] Q(s t ,α t )=(1―α)Q(s t ,a t)+α[R+γ×maxQ(s t+1 ,a t+1 )] (13)

[0056] In the formula, Q(s t ,a t ) represents the expected maximum benefit, by t Action t The reward for the next step depends on the action in the next stage. α represents the learning rate, which is between 0 and 1 (0<α<1), and is set to 0.01. γ represents the discount factor, which is also between 0 and 1 (0<γ<1), and is set to 0.9. R represents the immediate reward, Q(s t+1 ,a t+1 ) refers to the maximum estimated Q-value of the next state;

[0057] π represents the update strategy, which is used to describe the selection of action a from the action set at time t t ∈A, find the optimal strategy π * Make the cumulative reward expectation reach the maximum value, that is:

[0058]

[0059] In the formula, ρ π is the state-action trajectory distribution formed by strategy π, s t ,a t and r are the state, action and immediate reward at step t respectively, and E represents the mathematical expectation operation;

[0060] In recursive solution of the optimal strategy π * When , the Q function Bellman iteration formula is used, see formula (15):

[0061]

[0062] In the formula, s t+1 ,a t+1 is the state and action after the environment state is transferred, γ is the discount factor;

[0063] The strategy entropy is introduced to discretize the evacuation space to form a uniform grid. The speed of pedestrians is discretized into 8 intervals with equal spacing to describe the degree of confusion of the crowd state during the evacuation process. The total number of pedestrians in each interval is counted to calculate the entropy value. The speed direction entropy value H n1 , speed magnitude entropy value H n2 and the total entropy H n is calculated by formula (16)(17)(18);

[0064]

[0065] Where N is the total number of pedestrians in each discretized grid, n is the total number of pedestrians in the i-th speed direction space, m is the total number of pedestrians in the j-th speed magnitude space, z is the weight coefficient, and z1=z2=0.5 is set;

[0066] Integrate the policy entropy into the reinforcement learning model, and the objective function is shown in formula (19);

[0067]

[0068] In the formula, ∑ t r(s t ,a t ) represents the cumulative reward for a specific period of time, H is the state s t The entropy value of the strategy distribution under , β is the entropy coefficient, and,

[0069]

[0070] In the process of exploring the optimal strategy, we maximize the expected cumulative reward and the entropy of the strategy at the same time;

[0071]

[0072] In the formula, is the strategy sampled from the distribution Φ;

[0073] The strategy distribution is proportional to the exponential form of the Q function, and the strategy is optimized through the KL divergence constraint;

[0074]

[0075] Where D KL (·) represents the KL divergence constraint, represents the Q function under the original strategy, Represent the logarithmic partition function of the original strategy, represent the Q function and strategy function according to the neural network, add the strategy entropy to the value error function, and use the gradient descent method to optimize the strategy network and evaluation network. When the error function converges, the direction of the strategy network output is the direction of the leader's final decision, that is, the action a taken t+1 .

[0076] Preferably, the improved social force evacuation ISFM algorithm is executed on the followers, the force between pedestrians, the repulsive force from obstacles and the self-driving force of the followers to follow the leader are applied to each follower, and the velocity and position coordinates of the followers are updated using Newton's second law, including:

[0077] For followers, the ISFM algorithm is used to describe the walking behavior of pedestrians as followers using the traditional social force model consisting of the combined forces of self-driving force, repulsive force, and attractive force.

[0078]

[0079] In the formula, For self-drive, is the force between pedestrian i and pedestrian j, is the force between pedestrian i and obstacle w;

[0080] Pedestrian self-drive refers to the pedestrian's own power, the internal driving force that determines the walking speed and direction independently without external interference. The calculation formula is shown in formula (24):

[0081]

[0082] In the formula, m i is the mass of pedestrian i, is the expected speed of pedestrian i at time t, is the expected speed direction of pedestrian i at time t, is the actual speed of pedestrian i at time t, τ i is the reaction time of pedestrian i;

[0083] The forces between pedestrians include psychological repulsion and physical repulsion between pedestrians and other pedestrians. Psychological repulsion is a driving force generated by pedestrians to avoid collision with obstacles. If pedestrians come into contact with each other, physical repulsion will be generated. Physical repulsion includes contact pressure and contact friction. Contact pressure is the force generated when pedestrians come into contact with each other, while contact friction is generated due to friction between pedestrians. The forces between pedestrians are calculated by formula (25):

[0084]

[0085] In the formula, r ij is the sum of the radii of pedestrian i and pedestrian j, d ij is the distance between pedestrian i and pedestrian j, is the unit vector from pedestrian i to pedestrian j, is the tangent direction of the line connecting pedestrian i and pedestrian j and vertical, is the speed difference between pedestrian i and pedestrian j in the tangent direction, A ij , B ij is the strength and range of the force between pedestrian i and pedestrian j, K c , K f is the normal pressure coefficient and friction coefficient between pedestrian i and pedestrian j;

[0086] σ is a piecewise function,

[0087] When ij ―d ij >0, that is, when pedestrian i and pedestrian j are in contact, there is a positive pressure between them. When pedestrian i and pedestrian j are not in contact, there is no positive pressure between them, and τ is 0;

[0088] The interaction force between pedestrians and obstacles includes the psychological repulsion force and physical repulsion force between pedestrians and obstacles. The resultant force between pedestrians and obstacles is calculated by formula (26);

[0089]

[0090] In the formula, r i is the radius of pedestrian i, d iw is the distance between pedestrian i and obstacle w, is the unit vector from obstacle w to pedestrian i, is the unit tangent vector, acting on the contact point between pedestrian i and obstacle w, pointing in the tangent direction; A iw , B iw is the strength and range of the force between pedestrian i and obstacle w; K cw , K fw is the normal pressure coefficient and sliding friction coefficient between pedestrian i and obstacle w;

[0091] When a leader is identified, followers will follow, thus forming a leader-follower structure. When following, followers are attracted by both the attraction of the target exit and the attraction of the leader.

[0092]

[0093] The improved social force model is shown in formula (31);

[0094]

[0095] In the formula, It is the leadership that followers receive. is the driving force of the follower itself, d is the distance between the follower and the leader, r leader―follower is the sum of the radii of the follower and the leader, α′ is the weight, which is 0.5; the individual position of the follower in the coordinate system on the 2D plane The change is calculated by:

[0096]

[0097] β is the angle of change in walking direction. It can be seen from the technical solutions provided by the above embodiments of the present invention that the method of the present invention can simulate the emergence of a leader-follower structure in an evacuation scenario and reproduce the walking decisions of leaders, followers and other pedestrians. Setting specific conditions or thresholds for identifying the role of a leader helps to identify the role of a pedestrian during walking.

[0098] Additional aspects and advantages of the present invention will be given in part in the following description, which will become obvious from the following description, or may be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0099] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0100] Figure 1 (a), (b) and (c) are schematic diagrams for realizing a leader-follower walking behavior simulation method of an integrated transfer entropy method and a maximum strategy entropy reinforcement learning-improved social force model provided by an embodiment of the present invention;

[0101] Figure 2 A processing flow chart of a leader-follower walking behavior simulation method that integrates a transfer entropy method and a maximum strategy entropy reinforcement learning-improved social force model provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0102] The embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be interpreted as limiting the present invention.

[0103] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or coupling. The term "and / or" used herein includes any unit and all combinations of one or more associated listed items.

[0104] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless defined as herein.

[0105] To facilitate understanding of the embodiments of the present invention, several specific embodiments will be further explained below with reference to the accompanying drawings, and each embodiment does not constitute a limitation on the embodiments of the present invention.

[0106] The embodiment of the present invention provides a pedestrian flow evacuation simulation method based on a leader-follower structure to simulate the spontaneously formed leader-follower structure in crowd evacuation. The transfer entropy method is used to identify the leader-follower structure, and the transfer entropy method is integrated into the social force model. The followers update their expected speed direction and are influenced by the leadership of the leader, while the leader performs path planning / exit selection based on maximum policy entropy reinforcement learning.

[0107] In view of the problem that existing research cannot correctly reflect the corresponding relationship between the leader-follower structure, the present invention uses the TE (Transfer Entropy) method to identify the leader and follower roles and other pedestrians; in view of the problem that the leader cannot fully explore the environment using reinforcement learning, resulting in local optimality, the leader is executed with the MSERL (Maximum Strategy Entropy Reinforcement Learning) algorithm to grasp as much information in the environment as possible, so as to enable the leader to fully explore the environment, improve the exploration ability and stability of the algorithm, and enable the algorithm to adapt to more complex environments.

[0108] The implementation principle of the leader-follower walking behavior simulation method of the integrated transfer entropy method and the maximum strategy entropy reinforcement learning-improved social force model provided by the embodiment of the present invention is as follows Figure 1 (a), (b) and (c), the processing flow of this method is as follows Figure 2 As shown, the processing steps include the following:

[0109] Step S1: Allocate the layout of walls and exits within the evacuation range, initialize the pedestrian distribution, evacuation number, transfer entropy and environmental parameters within the evacuation range;

[0110] Step S2: Evacuate the evacuees within the evacuation range, record the movement information of the evacuees at each time step, calculate the transfer entropy between the evacuees within the evacuation range based on the movement information, and identify the leader and follower roles based on the transfer entropy;

[0111] Step S3: The leader executes the MSERL algorithm, selects an action and executes it, obtains the reward of the corresponding environment state, stores the reward value of the environment state as experience in the experience library, and iterates 100 episodes to store the parameters once. If the experience in the experience library reaches the upper limit, 50 experiences will be randomly selected to further update the neural network parameters of the corresponding state.

[0112] Step S4: Execute the ISFM algorithm for the followers, apply the force between pedestrians, the repulsive force from obstacles, and the self-driving force of the followers to follow the leader, and use Newton's second law to update the velocity and position coordinates of the followers.

[0113] Specifically, the above step 2 includes:

[0114] (1) Considering the walking speed parameters of the two evacuees, the phase space reconstruction is used to construct the walking speed of each evacuee during the movement into an M-dimensional time series: X = (X1, X2, ... X N ) T ,Y=(Y1,Y2,...Y N ) T Where X i =(x i,1 ,x i,2 ,...,x i,M ), Y i =(y i,1 ,y i,2 ,...,y i,M ), i=1,2,...,N.

[0115] where X and Y are the time series of the two evacuees.

[0116] (2) Reconstruct the phase space time lag of the individual walking time series. Calculate the time lag τ of X and Y = (τ1, τ2, ..., τ N ) and the embedding dimension D = (d1, d2, ..., d N ).

[0117] 1) The Auto Mutual Information (AMI) method is used to find the optimal time delay embedding phase space, and the time delay τ of all dimensions in the data is estimated through AMI.

[0118] According to Takens' theorem, the D-dimensional transformation from the speed of evacuated individuals to the dynamic time series y(t) is reconstructed by embedding the 1-dimensional time series x(t).

[0119] y(t)=(x(t),x(t+τ),…,x(t+(D―1))) (1)

[0120] 2) The embedding dimension D can now be estimated using K Nearest Neighbors (KNN), which examines the change in distance between adjacent points in phase space. The distance between KNNs does not change as the embedding changes, indicating that the current embedding dimension is sufficient, which is achieved by continuously increasing the embedding dimension D until subsequent embeddings do not change the number of KNNs. The rth nearest neighbor of the coordinate vector y(t) is equal to y (r) The square of the Euclidean distance between (t) is calculated by formula (2).

[0121]

[0122] Based on this, for the multidimensional time series x1(t),x2(t),…,x d (t) is embedded, and for every step the embedding dimension D increases, the square of the distance between y(t) and the rth nearest neighbor is calculated by formula (3).

[0123]

[0124] in is the rth nearest neighbor of the coordinate vector y(t) and y (r) The square of the Euclidean distance between (t).

[0125] The D value at which the pseudo-distance no longer changes is taken, and the time series representing the walking status of different individuals is reconstructed by the D value.

[0126] 3) The time series X = (X1, X2, ... X N ) T and Y=(Y1,Y2,...Y N )T Linearize into time series scalars P and U.

[0127]

[0128] Where k≤M―max(d j )×max(τ j ),k+(d j ―1)τ j ≤M, j=1,2,...,N. τ=(τ1,τ2,…,τ N ) and D=(d1,d2,…,d N ) are the time lag and embedding dimensions respectively.

[0129] (3) Calculate P k and U k The transfer entropy between

[0130]

[0131] In the formula, the transfer entropy Defined as the difference between the conditional entropies, I(P t ; U t―1 |P t―1 ) is mutual information, which refers to the degree of reduction of the uncertainty of random variable U under the condition that the probability distribution of random variable P is known, or the degree of reduction of the uncertainty of P after knowing U. H(P t |U t―1 ) is the conditional entropy, which refers to the uncertainty of the random variable P under the condition that the random variable U occurs.

[0132] (4) Calculate the transfer entropy between X and Y.

[0133]

[0134] In the formula, k max =M―max(d j )×max(τ j ), TE Y→X It is a measure of the asymmetry of the time series. Obviously, TE is calculated Y→X >TE X→Y , X can be considered as the dominant individual and Y as the response role, thereby detecting the causal relationship between the two time series.

[0135] (5) Calculate the net impact among pedestrians.

[0136]

[0137] In the formula, is the net impact, is the net impact threshold. The net impact Equivalent to the net transfer entropy, TE j→i ―TE i→j , otherwise, the net impact is zero. Cumulative impact I j (t) is obtained by summing the net impacts over the time period.

[0138] (6) Role discrimination in the leader-follower structure.

[0139] condition It indicates that the influence of pedestrian j on pedestrian i is greater than the influence of pedestrian i on pedestrian j. The individual who meets this condition is a potential leader. Secondly, the leader of pedestrian i is selected from the pedestrians within his field of vision. The pedestrians within the field of vision of pedestrian i are defined as the set As shown in formula (11), if pedestrian j exerts the largest net influence on pedestrian i at the threshold, pedestrian j is determined to be the leader of pedestrian i. Otherwise, pedestrian i will not follow the leader but walk towards the exit independently.

[0140]

[0141] Specifically, the above step 3 includes: executing the MSERL algorithm for the leader.

[0142] State is represented by S, s t ∈S represents the location of the pedestrian at time t. During learning, S is the location of the agent at each step. Action is represented by A, a t ∈A represents the action taken by the agent to select the next state based on the current state. t+1 =a(s t ), s t+1 Represents the state of the agent at the next moment. Reward is represented by R, which represents the immediate return of the environment state after the agent performs action a to the action performed. The reward function is set as follows:

[0143]

[0144] The Q function is represented by Q, which represents the estimated value of the state-action pair. The iterative calculation formula of the state-action value function uses the calculation formula of the standard Q learning algorithm. The Q function is initialized to zero, s t Indicates the current state, a t Indicates the current action, s t+1 represents the next state, a t+1 The Q-table update representing the next action for each leader is calculated by formula (13).

[0145] Q(st ,a t )=(1―α)Q(s t ,a t )+α[R+γ×maxQ(s t+1 ,a t+1 )] (13)

[0146] In the formula, Q(s t ,a t ) represents the expected maximum benefit, by t Action t The reward for the next step depends on the action in the next stage. α represents the learning rate, which is between 0 and 1 (0<α<1), and is set to 0.01. γ represents the discount factor, which is also between 0 and 1 (0<γ<1), and is set to 0.9. R represents the immediate reward, Q(s t+1 ,a t+1 ) refers to the maximum estimated Q value of the next state.

[0147] π represents the update strategy, which is used to describe the selection of action a from the action set at time t t ∈A. The training goal of the traditional reinforcement learning model is to find the optimal strategy π * , so that the expected cumulative reward reaches the maximum value, that is,

[0148]

[0149] In the formula, ρ π is the state-action trajectory distribution formed by strategy π, s t ,a t and r are the state, action and immediate reward at the tth step respectively, and E represents the mathematical expectation operation.

[0150] In recursive solution of the optimal strategy π * When , the Q function Bellman iteration formula is used, see formula (15).

[0151]

[0152] In the formula, s t+1 ,a t+1 is the state and action after the environment state is transferred, and γ is the discount factor.

[0153] Introduce strategy entropy, that is, the distribution entropy of the strategy. When the strategy entropy is high, the agent has better exploration ability and can avoid falling into the local optimal solution. Discretize the evacuation space to form a uniform grid, discretize the speed (direction and size) of pedestrians into 8 intervals with equal spacing to describe the degree of confusion of the crowd state during the evacuation process, and count the total number of pedestrians in each interval to calculate the entropy value. Speed ​​direction entropy value H n1, speed magnitude entropy value H n2 and the total entropy H n is calculated by formula (16)(17)(18).

[0154]

[0155] Where N is the total number of pedestrians in each discretized grid, n is the total number of pedestrians in the i-th speed direction space, m is the total number of pedestrians in the j-th speed magnitude space, and z is the weight coefficient, which is usually set to z1=z2=0.5.

[0156] When the policy entropy is integrated into the reinforcement learning model, the objective function is shown in formula (19).

[0157]

[0158] In the formula, ∑ t r(s t ,a t ) represents the cumulative reward for a specific period of time. H is the state s t The entropy value of the strategy distribution under , β is the entropy coefficient, and,

[0159]

[0160] In the process of exploring the optimal strategy, we should not only maximize the expected cumulative reward, but also maximize the strategy entropy.

[0161]

[0162] In the formula, is a strategy sampled from the distribution Φ.

[0163] The policy distribution is proportional to the exponential form of the Q function, and the policy can be optimized by the Kullaback-Leibler (KL) divergence constraint.

[0164]

[0165] Where D KL (.) represents the KL divergence constraint, represents the Q function under the original strategy, represents the logarithmic partition function of the original strategy.

[0166] The Q function and policy function are represented by neural networks. The main thing is to add policy entropy to the value error function, and then use the gradient descent method to optimize the policy network and evaluation network. When the error function converges, the direction of the policy network output is the direction of the leader's final decision, that is, the action a taken. t+1 .

[0167] Specifically, the above step 4 includes: executing the ISFM algorithm for the follower.

[0168] The traditional social force model composed of the combined force of self-driving force, repulsive force and attractive force based on Newtonian mechanics can be used to describe the walking behavior of pedestrians.

[0169]

[0170] In the formula, For self-drive, is the force between pedestrian i and pedestrian j, is the force between pedestrian i and obstacle w.

[0171] Pedestrian self-drive refers to the pedestrian's own power, as shown in formula (24). It is the internal driving force that pedestrians use to independently determine their walking speed and direction based on their own wishes and target points without external interference. This power encourages pedestrians to choose the best route and move towards the target location at a certain speed and direction.

[0172]

[0173] In the formula, m i is the mass of pedestrian i, is the expected speed of pedestrian i at time t, is the expected speed direction of pedestrian i at time t, is the actual speed of pedestrian i at time t, τ i is the reaction time of pedestrian i.

[0174] The forces between pedestrians include psychological repulsion and physical repulsion between pedestrians and other pedestrians. Psychological repulsion is a driving force generated by pedestrians to avoid collision with obstacles. When pedestrians encounter walls, railings or other obstacles during walking, they usually instinctively keep a certain distance to avoid collision with them. However, if pedestrians come into contact with each other, physical repulsion will be generated, mainly including contact normal pressure and contact friction. Contact normal pressure is the force generated when pedestrians come into contact with each other, which depends on factors such as pedestrian weight, walking speed and obstacles, while contact friction is generated due to friction between pedestrians. The forces between pedestrians are calculated by formula (25).

[0175]

[0176] In the formula, r ij is the sum of the radii of pedestrian i and pedestrian j, d ij is the distance between pedestrian i and pedestrian j, is the unit vector from pedestrian i to pedestrian j, is the tangent direction of the line connecting pedestrian i and pedestrian j and vertical, is the speed difference between pedestrian i and pedestrian j in the tangent direction, A ij , B ij is the strength and range of the force between pedestrian i and pedestrian j, K c , K f is the normal pressure coefficient and friction coefficient between pedestrian i and pedestrian j

[0177] σ is a piecewise function,

[0178] When ij ―d ij >0, that is, when pedestrian i and pedestrian j are in contact, there is a positive pressure between them. When pedestrian i and pedestrian j are not in contact, there is no positive pressure between them, and τ is 0.

[0179] The interaction force between pedestrians and obstacles also includes the psychological repulsion and physical repulsion between pedestrians and obstacles. The resultant force between pedestrians and obstacles is calculated by formula (26).

[0180]

[0181] In the formula, r i is the radius of pedestrian i, d iw is the distance between pedestrian i and obstacle w, is the unit vector from obstacle w to pedestrian i, is the unit tangent vector, acting on the contact point between pedestrian i and obstacle w, pointing in the tangent direction; A iw , B iw is the strength and range of the force between pedestrian i and obstacle w; K cw , K fw is the normal pressure coefficient and sliding friction coefficient between pedestrian i and obstacle w.

[0182] When a leader is identified, the followers will follow, thus forming a leader-follower structure. When following, the followers are no longer attracted only by the attraction of the target exit, but also by the attraction of the leader. In order to more realistically simulate the evacuation behavior of followers in an emergency, the present invention incorporates the attraction of the leader into the traditional social force model, making the model closer to reality and more accurately depicting the dynamic performance of the crowd in an emergency.

[0183]

[0184] The improved social force model is shown in formula (31).

[0185]

[0186] In the formula, It is the leadership that followers receive. is the driving force of the follower itself, d is the distance between the follower and the leader, r leader―follower is the sum of the radii of the follower and the leader, α′ is the weight, which is 0.5. The individual position of the follower in the coordinate system on the 2D plane The change is calculated by the following formula,

[0187]

[0188] β is the angle of change in the traveling direction.

[0189] In summary, compared with the best existing technologies, the method of the embodiment of the present invention can simulate the emergence of a leader-follower structure in an evacuation scenario and reproduce the walking decisions of the leader, followers and other pedestrians.

[0190] (1) Setting specific conditions or thresholds for identifying the role of the leader is helpful for identifying the role of pedestrians during walking. Through simulation analysis, we can obtain the transfer entropy threshold information for identifying the role of the leader and the characteristics of the leader-follower structure, which is helpful for revealing the cooperation mechanism between leaders and followers and for verifying the conditions under which the leader-follower structure has positive and negative effects in walking / evacuation.

[0191] (2) The MSERL-ISFM model is constructed for the leader-follower structure, and the actual movement of pedestrians is reproduced through computer simulation experiments. The movement of leaders and followers is more consistent with the actual situation.

[0192] Those skilled in the art can understand that the accompanying drawings are only schematic diagrams of an embodiment, and the modules or processes in the accompanying drawings are not necessarily required to implement the present invention.

[0193] It can be known from the description of the above implementation methods that those skilled in the art can clearly understand that the present invention can be implemented by means of software plus a necessary general hardware platform. Based on such an understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art can be embodied in the form of a software product, which can be stored in a storage medium such as ROM / RAM, a magnetic disk, an optical disk, etc., and includes a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention or certain parts of the embodiments.

[0194] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0195] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A pedestrian evacuation simulation method based on leader-follower structure, It is characterized in that include: Evacuate the evacuees within the evacuation range, record the movement information of the evacuees at each time step, calculate the transfer entropy between the evacuees within the evacuation range based on the movement information, and identify the leader and follower roles based on the transfer entropy; For the leader, the maximum strategy entropy reinforcement learning (MSERL) algorithm is used to select and execute actions to optimize the leader's path selection. The improved social force evacuation (ISFM) algorithm is implemented for followers. The force between pedestrians, the repulsive force from obstacles, and the self-driving force of following the leader are applied to each follower, and Newton's second law is used to update the velocity and position coordinates of the follower.

2. The method according to claim 1, It is characterized in that Before evacuating the evacuees within the evacuation range, the steps also include: allocating the layout of the walls and exits within the evacuation range, initializing the distribution of pedestrians within the evacuation range, the number of evacuees, the transfer entropy and the environmental parameters.

3. The method according to claim 1 or 2, It is characterized in that The evacuation of the evacuees within the evacuation range, recording the movement information of the evacuees at each time step, and calculating the transfer entropy between the evacuees within the evacuation range according to the movement information include: (1) Evacuate the evacuees within the evacuation range, record the movement information of the evacuees at each time step, consider the walking speed parameters of the two evacuees, and use phase space reconstruction to construct the walking speed of each evacuee during the movement into an M-dimensional time series: X = (X 1 ,X 2 ,...X N ) T , Y=(Y 1 ,Y 2 ,...Y N ) T , i=1,2,...,N is the i-th characteristic time series, X i =(x i,1 ,x i,2 ,...,x i,M ), Y i =(y i,1 ,y i,2 ,...,y i,M ), x i,M and i,M Take the value of the time series of the i-th feature. (2) Reconstruct the phase space lag of the individual walking time series and calculate the lag τ between X and Y = (τ 1 ,τ 2 ,...,τ N ), that is, the delay time, and the embedding dimension of the time series D = (d 1 ,d 2 ,...,d N ); 1) The AMI self-mutual information method is used to find the optimal time delay embedding phase space, and the time delay τ of all dimensions in the data is estimated through AMI; According to Takens' theorem, the D-dimensional transformation from the speed of individual evacuees to the dynamic time series y(t) is used to illustrate the phase space reconstruction by embedding the 1-dimensional time series x(t). X D,1 (t)=(x(t),x(t+τ),…,x(t+(d-1)τ)) (1) 2) The optimal embedding dimension D is calculated by the nearest neighbor KNN. The rth nearest neighbor point of the coordinate vector y(t) is (r) The square of the Euclidean distance between (t) Calculated by formula (2); For a multidimensional time series x 1 (t),x 2 (t),…,x d (t) is embedded, and for every step the embedding dimension D increases, the square of the distance between y(t) and the rth nearest neighbor is calculated by formula (3). in is the rth nearest neighbor of the coordinate vector y(t) and y (r) The square of the Euclidean distance between (t); Select the D value where the pseudo-distance no longer changes, and reconstruct the time series representing the walking status of different individuals based on the D value; 3) The time series X = (X 1 ,X 2 ,...X N ) T and Y=(Y 1 ,Y 2 ,...Y N ) T Linearization into time series scalars P and U Where k≤M―max(d j )×max(τ j ),k+(d j ―1)τ j ≤M, j=1,2,...,N. τ=(τ 1 ,τ 2 ,…,τ N ) and D=(d 1 ,d 2 ,…,d N ) are the time lag and embedding dimensions respectively; Calculate P k and U k The transfer entropy between In the formula, the transfer entropy Defined as the difference between the conditional entropies, I(P t ; U t―1 |P t―1 ) is mutual information, which refers to the degree of reduction of the uncertainty of random variable U under the condition that the probability distribution of random variable P is known, or the degree of reduction of the uncertainty of P after knowing U. H(P t |U t―1 ) is the conditional entropy, which refers to the uncertainty of the random variable P under the condition that the random variable U occurs; (4) Calculate the transfer entropy between X and Y In the formula, k max =M―max(d j )×max(τ j ), TE Y→X It is a measure of the asymmetry of the time series; (5) Calculate the net impact between pedestrians In the formula, is the net impact, is the net impact threshold, when The net impact Equivalent to the net transfer entropy, TE j→i ―TE i→j Otherwise, the net impact is zero and the cumulative impact is I j (t) is obtained by summing the net impacts over the time period.

4. The method according to claim 3, It is characterized in that The identifying of the leader and follower roles according to the transfer entropy includes: Set the transfer entropy decision threshold to 0. When , it indicates that the influence of pedestrian j on pedestrian i is greater than the influence of pedestrian i on pedestrian j, then pedestrian j is judged to be a potential leader; The pedestrians within the visual range of pedestrian i are defined as the set As shown in formula (11), if pedestrian j has the largest net influence on pedestrian i at the threshold, pedestrian j is determined to be the leader of pedestrian i; otherwise, pedestrian i will not follow the leader but walk towards the exit independently.

5. The method according to claim 4, It is characterized in that The above-mentioned execution of the maximum strategy entropy reinforcement learning (MSERL) algorithm for the leader, selecting and executing actions, and optimizing the path selection of the leader include: For the leader, the MSERL algorithm is executed and the state of the pedestrian as the leader is represented by S, s t ∈S represents the location of the pedestrian at time t. During the learning period, S is the location of the agent at each step, and the action is represented by A. t ∈A represents the action taken by the agent to select the next state based on the current state, s t+1 =a(s t ), s t+1 Represents the state of the agent at the next moment, and the reward is represented by R, which represents the immediate return of the environment state after the agent performs action a to the action performed. The reward function is set as follows: The Q function is represented by Q, which represents the estimated value of the state-action pair. The iterative calculation formula of the state-action value function uses the calculation formula of the standard Q learning algorithm. The Q function is initialized to zero, s t Indicates the current state, a t Indicates the current action, s t+1 represents the next state, a t+1 The Q-table update for each leader representing the next action is calculated by formula (13); In the formula, Q(s t ,a t ) represents the expected maximum benefit, by t Action t The reward for the next step depends on the action in the next stage. α represents the learning rate, which is between 0 and 1 (0<α<1), and is set to 0.

01. γ represents the discount factor, which is also between 0 and 1 (0<γ<1), and is set to 0.

9. R represents the immediate reward, Q(s t+1 ,a t+1 ) refers to the maximum estimated Q-value of the next state; π represents the update strategy, which is used to describe the selection of action a from the action set at time t t ∈A, find the optimal strategy π * Make the cumulative reward expectation reach the maximum value, that is: In the formula, ρ π is the state-action trajectory distribution formed by strategy π, s t ,a t and r are the state, action and immediate reward at step t respectively, and E represents the mathematical expectation operation; In recursive solution of the optimal strategy π * When , the Q function Bellman iteration formula is used, see formula (15): In the formula, s t+1 ,a t+1 is the state and action after the environment state is transferred, γ is the discount factor; The strategy entropy is introduced to discretize the evacuation space to form a uniform grid. The speed of pedestrians is discretized into 8 intervals with equal spacing to describe the degree of confusion of the crowd state during the evacuation process. The total number of pedestrians in each interval is counted to calculate the entropy value. The speed direction entropy value H n1 , speed entropy value H n2 and the total entropy H n is calculated by formula (16)(17)(18); Where N is the total number of pedestrians in each discretized grid, n is the total number of pedestrians in the i-th speed direction space, m is the total number of pedestrians in the j-th speed magnitude space, and z is the weight coefficient. 1 =z 2 =0.5; Integrate the policy entropy into the reinforcement learning model, and the objective function is shown in formula (19); In the formula, ∑ t r(s t ,a t ) represents the cumulative reward for a specific period of time, H is the state s t The entropy value of the strategy distribution under , β is the entropy coefficient, and, In the process of exploring the optimal strategy, we maximize the expected cumulative reward and the entropy of the strategy at the same time; In the formula, is the strategy sampled from the distribution Φ; The strategy distribution is proportional to the exponential form of the Q function, and the strategy is optimized through the KL divergence constraint; Where D KL (·) represents the KL divergence constraint, represents the Q function under the original strategy, Represent the logarithmic partition function of the original strategy, represent the Q function and strategy function according to the neural network, add the strategy entropy to the value error function, and use the gradient descent method to optimize the strategy network and evaluation network. When the error function converges, the direction of the strategy network output is the direction of the leader's final decision, that is, the action a taken t+1 .

6. The method according to claim 4, It is characterized in that The improved social force evacuation ISFM algorithm is executed for the followers, and the force between pedestrians, the repulsive force from obstacles and the self-driving force of the followers to follow the leader are applied to each follower, and the velocity and position coordinates of the followers are updated using Newton's second law, including: For followers, the ISFM algorithm is used to describe the walking behavior of pedestrians as followers using the traditional social force model consisting of the combined forces of self-driving force, repulsive force, and attractive force. In the formula, For self-drive, is the force between pedestrian i and pedestrian j, is the force between pedestrian i and obstacle w; Pedestrian self-drive refers to the pedestrian's own power, the internal driving force that determines the walking speed and direction independently without external interference. The calculation formula is shown in formula (24): In the formula, m i is the mass of pedestrian i, is the expected speed of pedestrian i at time t, is the expected speed direction of pedestrian i at time t, is the actual speed of pedestrian i at time t, τ i is the reaction time of pedestrian i; The forces between pedestrians include psychological repulsion and physical repulsion between pedestrians and other pedestrians. Psychological repulsion is a driving force generated by pedestrians to avoid collision with obstacles. If pedestrians come into contact with each other, physical repulsion will be generated. Physical repulsion includes contact pressure and contact friction. Contact pressure is the force generated when pedestrians come into contact with each other, while contact friction is generated due to friction between pedestrians. The forces between pedestrians are calculated by formula (25): In the formula, r ij is the sum of the radii of pedestrian i and pedestrian j, d ij is the distance between pedestrian i and pedestrian j, is the unit vector from pedestrian i to pedestrian j, is the tangent direction of the line connecting pedestrian i and pedestrian j and vertical, is the speed difference between pedestrian i and pedestrian j in the tangent direction, A ij , B ij is the strength and range of the force between pedestrian i and pedestrian j, K c , K f is the normal pressure coefficient and friction coefficient between pedestrian i and pedestrian j; σ is a piecewise function, When ij ―d ij >0, that is, when pedestrian i and pedestrian j are in contact, there is a positive pressure between them. When pedestrian i and pedestrian j are not in contact, there is no positive pressure between them, and τ is 0; The interaction force between pedestrians and obstacles includes the psychological repulsion force and physical repulsion force between pedestrians and obstacles. The resultant force between pedestrians and obstacles is calculated by formula (26); In the formula, r i is the radius of pedestrian i, d iw is the distance between pedestrian i and obstacle w, is the unit vector from obstacle w to pedestrian i, is the unit tangent vector, acting on the contact point between pedestrian i and obstacle w, pointing in the tangent direction; A iw , B iw is the strength and range of the force between pedestrian i and obstacle w; K cw , K fw is the normal pressure coefficient and sliding friction coefficient between pedestrian i and obstacle w; When a leader is identified, followers will follow, thus forming a leader-follower structure. When following, followers are attracted by both the attraction of the target exit and the attraction of the leader. The improved social force model is shown in formula (31); In the formula, It is the leadership that followers receive. is the driving force of the follower itself, d is the distance between the follower and the leader, r leader―follower is the sum of the radii of the follower and the leader, α′ is the weight, which is 0.5; the individual position of the follower in the coordinate system on the 2D plane The change is calculated by: β is the angle of change in the traveling direction.