Next Article in Journal
Insights from Smart City Initiatives for Urban Sustainability and Contemporary Urbanism
Previous Article in Journal
Review of Authentication, Blockchain, Driver ID Systems, Economic Aspects, and Communication Technologies in DWC for EVs in Smart Cities Applications
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Agent-Based Evacuation Modeling: Enhancing Building Safety in Emergency Scenarios

1
Departamento de Ciencias Computacionales, Universidad de Guadalajara, CUCEI, Av. Revolución 1500, Guadalajara 44160, Jal, Mexico
2
Departamento de Ingeniería Electro-Fotónica, Universidad de Guadalajara, CUCEI, Av. Revolución 1500, Guadalajara 44160, Jal, Mexico
*
Author to whom correspondence should be addressed.
Smart Cities 2024, 7(6), 3165-3187; https://doi.org/10.3390/smartcities7060123
Submission received: 1 August 2024 / Revised: 26 September 2024 / Accepted: 10 October 2024 / Published: 25 October 2024

Abstract

:

Highlights

What are the main findings?
  • The agent-based evacuation model accurately reflects the real-life reactions of individuals during evacuation scenarios by incorporating behavioral conditions such as accidents, hysteria, and disorientation. This allows the model to provide more realistic and applicable results compared to traditional models that do not account for these factors.
  • The proposed model offers valuable insights into the evacuation process by simulating interactions between individuals, obstacles, and exits in diverse urban environments. Through comprehensive experiments and case studies, the model demonstrates its ability to provide a more precise assessment of evacuation behavior and effectiveness during emergency scenarios.
What is the implication of the main finding?
  • By accurately simulating the behaviors of individuals under stress, this model enables planners to better predict and prepare for real-world evacuation scenarios. This can improve the design of safety protocols, optimize evacuation routes, and help reduce the risks associated with emergency evacuations in both natural and human-made disasters.
  • The model’s accurate evaluation of evacuation patterns provides crucial knowledge that can guide the creation of more robust urban structures and regulations. By comprehending how people navigate around barriers, locate exits, and interact with one another during evacuations, we can enhance architectural designs, optimize exit locations, and implement specific measures to reduce crowding and improve the overall effectiveness of evacuation procedures.

Abstract

Buildings and their supporting infrastructure are vulnerable to both natural and human-made disasters, which pose significant risks to the safety of the occupants. Evacuation models are essential tools for assessing these risks and for ensuring the safety of individuals during emergencies. The primary objective of an evacuation model is to realistically simulate the process by which a large group of people can reach available exits efficiently. This paper introduces an agent-based evacuation model that represents the environment as a rectangular grid, where individuals, obstacles, and exits interact dynamically. The model employs only five rules to simulate evacuation dynamics while also accounting for complex factors such as movement and stagnation. Different from many evacuation models, this approach includes rules that account for common behaviors exhibited in stressful evacuation situations such as accidents, hysteria, and disorientation. By incorporating these behavioral conditions, the model more accurately reflects the real-life reactions of individuals during evacuation, leading to more realistic and applicable results. To validate the effectiveness of the proposed model, comprehensive experiments and case studies are conducted in diverse urban settings. The results of these experiments demonstrate that the model offers valuable insights into the evacuation process and provides a more precise assessment of its behavior in emergency scenarios.

1. Introduction

Cities and their infrastructure face a high possibility of suffering disasters due to a combination of natural and human-made factors [1,2]. Rapid urbanization often leads to overcrowded areas with inadequate planning and resilience measures, making cities vulnerable to events such as earthquakes, floods, hurricanes, and fires. Additionally, climate change exacerbates the frequency and intensity of natural disasters [3], while human activities like industrial accidents, terrorism, and infrastructure failures further increase risk. The concentration of population and assets in urban areas amplifies the potential impact of these disasters [4], necessitating robust planning and preparedness to mitigate their effects and ensure the safety and sustainability of urban environments.
Evacuation models [5] are crucial for evaluating risk and ensuring safety in the development of cities. These models enable city planners to simulate various emergency scenarios, such as natural disasters or fires, and understand how people will likely behave and move in these situations. By incorporating advanced paradigms, evacuation models provide interesting data and insights that help optimize resource allocation [6], enhance emergency preparedness, and improve infrastructure design. The use of these models not only mitigates risks but also ensures that smart cities are resilient, safe, and capable of protecting their inhabitants effectively during emergencies.
Several evacuation models have emerged to address the characterization of the evacuation process, offering a range of strategies and methodologies. Among these, continuous flow models, such as the Greenshields model [7] and various pedestrian continuous flow models [8,9,10,11], apply fluid mechanics principles to represent the movement of people in specific environments. These models are widely used to analyze the flow of people in different types of buildings and public spaces. Additionally, agent-based models like the Social Force Model (SFM) [12] and Cellular Automata Models (CAMs) [13,14,15] focus on the individual and collective interactions of evacuating agents, considering social forces and behavioral rules. SFM treats individuals as agents interacting with each other and the environment, factoring in social forces like attraction between individuals and repulsion from obstacles. CAMs, on the other hand, discretize space into cells and simulate the movement of individuals from one cell to another according to specific rules, making them effective for studying crowd dynamics in particular environments. Dynamic network models [16,17] use network theory to map connections and routes in complex environments, while popular route optimization algorithms [18,19], such as Dijkstra’s algorithm [18], focus on finding efficient paths in predefined networks. Although these algorithms are not specifically designed as evacuation models, they can be instrumental in planning evacuations by identifying the shortest routes between points in a network. Lastly, the Pathfinder evacuation simulator [20] models crowd behavior in buildings and other environments by considering exit capacity, movement speed, and individual decisions, allowing for the visualization of people’s flow and the evaluation of evacuation routes’ effectiveness. Table 1 shows a summary of the evacuation models proposed in the literature and their main characteristics. Despite the interesting results of all these approaches, several drawbacks exist in traditional evacuation models [21]. Firstly, these methods rely on complex mathematical models, making them difficult to understand and modify for simulating different conditions or characterizing other scenarios [22]. Additionally, these models are often static [23,24,25], meaning they do not account for changing environments during an evacuation. This is unrealistic because, in real-life evacuation situations caused by disasters, fires, or terrorism, conditions frequently change, such as doors closing or roads being blocked by falling objects [26]. Another limitation is that these models primarily focus on individuals, characterizing them as agents that consistently act according to mathematical formulations. These approaches do not account for the emotional states of individuals, such as hysteria and disorientation caused by fear, which significantly influence evacuation behavior, timing, and outcomes [27]. Hence, the inability to incorporate these dynamic and emotional factors limits the realism and effectiveness of traditional evacuation models.
Agent-based models (ABMs) [28] are computational frameworks used to simulate the actions and interactions of autonomous agents, which can be individuals, groups, or entities, within a defined environment [29]. Each agent operates based on a set of rules and behaviors [30], allowing them to make decisions, adapt to changes, and interact with other agents and the environment. ABMs are particularly useful for studying complex systems and emergent phenomena, where the collective behavior of agents leads to patterns and outcomes that are not easily predictable from individual actions alone. These models are widely applied in several fields [31] such as social sciences, economics, epidemiology, and urban planning, offering insights into how decentralized interactions can lead to the emergence of complex behaviors and system-level dynamics. By capturing the heterogeneity and adaptability of agents, ABMs provide a powerful tool for analyzing scenarios ranging from market dynamics to evacuation processes, making them essential for understanding and managing complex, adaptive systems.
The key difference between ABMs and traditional models based on equations and mathematical formulations lies in their approach to representing and simulating systems [32]. Equation-based models use mathematical equations to describe the average behavior of a system as a whole, often relying on differential equations to capture the relationships between different variables [33]. These models are typically deterministic and assume homogeneous behavior across the system, making them suitable for scenarios where the overall dynamics can be accurately captured by aggregate equations. In contrast, ABMs simulate the actions and interactions of individual agents, each with distinct behaviors and characteristics, within a defined environment [34]. This agent-centric approach allows ABMs to capture the heterogeneity and adaptability of individuals, reflecting the diversity of behaviors and decision-making processes in a population. ABMs are particularly advantageous for characterizing heterogeneity because they can model complex interactions and emergent phenomena that arise from individual differences, providing a more nuanced and realistic representation of systems where individual variations significantly impact outcomes. Considering the main characteristics of ABMs, it can be said that they are particularly well-suited for building evacuation models due to their ability to simulate the diverse behaviors and interactions of individuals in dynamic environments. Unlike traditional equation-based models that assume uniform behavior across a population, ABMs allow for the representation of heterogeneous agents [35], each with unique characteristics and decision-making processes. This makes it possible to capture the complexity of human behavior during evacuations, such as panic, cooperation, and the influence of social relationships. Additionally, ABMs can dynamically adapt to changing conditions, such as blocked exits or evolving hazards, providing a more realistic simulation of emergency scenarios. By incorporating individual variability and environmental changes, ABMs offer a robust framework for evaluating evacuation strategies, optimizing resource allocation, and improving overall safety and efficiency in emergency planning. This adaptability and realism make ABMs superior for developing comprehensive and effective evacuation models.
This study presents an evacuation model based on agents. The model has a simple design, incorporating only five rules to imitate the dynamics of evacuation. The rules capture complex aspects such as movement and stagnation and common behaviors of individuals in emergency situations, including accidents, hysteria, and disorientation. This approach differs from many conventional evacuation models by incorporating rules that simulate typical behaviors observed in high-stress evacuation scenarios, such as accidents, panic, and confusion. By integrating these behavioral factors, the model provides a more accurate representation of how people respond during evacuations, resulting in more true-to-life and practical outcomes. To assess the performance of the proposed model, it was tested in three experiments: one conducted in a real-world setting at the Hospital “Civil Viejo Fray Antonio Alcal-de” in Guadalajara, Mexico, and two hypothetical scenarios, including a labyrinth and a train station. The outcomes of these experiments suggest that this model offers valuable insights into the evacuation process and enables more precise evaluations of its behavior during emergencies.
The structure of the remainder of this paper is as follows: Section 2 considers the foundational principles of agent-based models. Section 3 then presents the proposed evacuation agent-based model. Section 4 subsequently conducts a series of experiments to evaluate the effectiveness of the proposed evacuation model. Lastly, Section 5 draws conclusions from the aforementioned analysis.

2. Agent-Based Models

An ABM is a computational simulation framework that represents and analyzes the actions and interactions of autonomous agents, which can be individuals, groups, or entities, within a specific environment [36]. Each agent operates based on a set of rules and behaviors, allowing them to make decisions, adapt to changes, and interact with other agents and their surroundings. This agent-centric approach enables ABMs to capture the heterogeneity and complexity of individual behaviors and their collective impact on the system. In contrast, traditional mathematical models use equations to describe the average behavior of a system as a whole, often relying on differential equations to represent the relationships between aggregated variables. These models assume homogeneity and predict outcomes based on average trends, which can overlook individual variations and localized interactions. The key difference is that ABMs focus on the micro-level interactions and individual variability [37], leading to emergent phenomena that can be more realistic and nuanced, making them particularly effective for studying complex, adaptive systems like social dynamics, market behavior, and evacuation processes.
Rules in ABMs [38] are crucial as they define the behavior and interactions of individual agents within the simulation. These rules determine how agents make decisions, respond to their environment, and interact with each other, ultimately driving the dynamics of the entire system. The most common types of rules in ABMs include movement rules, which dictate how agents navigate their space; interaction rules, which govern how agents influence and are influenced by other agents; and decision-making rules, which outline the criteria for agents’ choices based on internal states or external stimuli.
The process of an agent-based model involves the interaction of a population  P  of  p  different agents which are defined as follows:
P = a 1 , a 2 , , a p
An ABM considers several important steps. Initially, the  p  agents ( P ) are initialized. In this process, to each agent, random attributes that determine their position, state, or condition are assigned. With these random attributes, the population of agents will be heterogeneous. During the processing, agents are then randomly selected or follow a predefined order. The selected agent,  a i  (where  i     1 ,   .   .   .   ,   p ), follows a set of established rules, modifying its state, position, or relations with other agents. These rules commonly consider the current agent, their neighboring counterparts, and the environment. Finally, a stop criterion is defined to conclude the process once a determined state or condition is reached. This structured approach allows for the simulation of complex, dynamic systems, providing insights into emergent behaviors and interactions within heterogeneous populations.
Rules in ABMs are essential as they dictate the behavior and interactions of individual agents, driving the dynamics and outcomes of the simulation [39]. These rules enable the model to capture the complexity and diversity of behaviors within a population, reflecting how agents respond to various stimuli and interact with each other and their environment. The importance of rules lies in their ability to create realistic and adaptable simulations, which can be used to study a wide range of scenarios and phenomena. IF–THEN rules are a common type of rule used in ABMs, providing a straightforward way to encode agent behaviors. These rules allow for conditional responses based on the current state or environment of the agent, facilitating the modeling of complex decision-making processes and adaptive behaviors. By using IF–THEN rules, ABMs can simulate how agents react to different situations, leading to emergent patterns and insights into the system being studied.
ABMs and traditional mathematical models differ fundamentally in their approach to representing and simulating systems [30]. ABMs focus on the micro-level interactions of individual agents, each with unique characteristics and behaviors, within a defined environment. This agent-centric approach allows for the modeling of heterogeneity and complex interactions, leading to emergent phenomena that arise from the bottom-up. In contrast, traditional mathematical models, often using differential equations, represent systems from a top-down perspective by describing the aggregate behavior of the system as a whole. These models typically assume homogeneity and average out individual differences, providing a deterministic and continuous representation of the system dynamics. While traditional models are powerful for capturing broad trends and steady-state behaviors, ABMs excel in scenarios where individual variability, local interactions, and adaptive behaviors play a crucial role, offering a more granular and dynamic understanding of complex systems.
The concept of emergence in the context of ABMs refers to the phenomenon where complex patterns, behaviors, and properties arise from the simple interactions of individual agents within the system [40]. These emergent properties are not explicitly programmed into the model but instead result from the collective dynamics and local interactions of agents following basic rules. Emergence illustrates how decentralized and individual-level interactions can lead to organized and often unpredictable macro-level phenomena, providing insights into the underlying mechanisms driving complex systems.

3. The Proposed Evacuation Agent-Based Model

This section discusses the proposed agent-based model designed to emulate evacuation processes in complex scenarios. This model captures the diversity of individual behaviors and complex interactions, particularly under difficult emotional conditions such as hysteria or disorientation that individuals might experience during the evacuation process. For clarity, the discussion is divided into three main parts: (A) environment setup, (B) agents and rules, and (C) computational procedure. Part A focuses on creating the environment using a grid as location map to position individuals, exits, and obstacles. It also discusses the Chamfer distance algorithm, which calculates efficient escape paths while integrating dynamic changes such as new obstacles or blocked exits to add realism and complexity. Part B defines the behavioral rules assigned to the agents, explaining how these rules determine responses under various conditions and allow the visualization of emergent patterns in the evacuation process. Part C presents the entire computational procedure, discussing the pseudo-code and other elements that provide a clear guide for implementation.

3.1. Environment Setup

In agent-based models, the use of an environment is critical to provide an essential spatial context for simulations. In our approach, we use as environment a bidimensional discrete grid  G  of  M × N  cells to represent the environment of agents. This offers several advantages. Firstly, it provides a clear and intuitive framework for modeling spatial relationships and movements, making it easy to visualize and analyze the interactions between agents and their surroundings. Each cell in the grid can represent different environmental features, such as open spaces, individuals, obstacles, and exits, allowing for a detailed and flexible representation of the scenario. This approach also simplifies the implementation of rules governing agent behavior, as movement and interaction can be easily mapped onto the discrete grid. Additionally, a bidimensional grid facilitates the use of computational algorithms, such as pathfinding and distance calculations, enhancing the model’s efficiency and realism. Overall, the discrete grid approach balances simplicity and detail, making it a powerful tool for simulating complex systems and emergent phenomena in agent-based models.
In the initialization of the environment, all the elements  x i j  of the grid  G  are initialized to zero ( i 1 , , M ,   j 1 , , N ) . Then, the elements corresponding to the outputs in the evacuation model are set to one ( x i j = 1 ). This information is used to create a distance map  M P . This map visualizes in each grid cell the shortest distance to the element with value 1 (the exit in the evacuation model). In order to produce the distance map. The Chamfer method is used. The Chamfer algorithm is a technique used to calculate approximate distances within a discrete grid, typically employed in the context of pathfinding and shape analysis. It operates by iteratively propagating distance values through the grid, creating a distance map that represents the shortest path from each cell to a set of target cells, such as obstacles or exit points. The algorithm typically uses a forward and backward pass to update the distance values. In the forward pass, each cell’s distance is updated based on its neighboring cells to the top and left (using a mask  M M I ), while in the backward pass, updates are based on the neighboring cells to the bottom and right (using a mask  M M D ). This two-pass approach ensures that distance values are accurately propagated throughout the grid. The distances are calculated using a set of predefined weights that approximate the Euclidean distance, allowing the algorithm to efficiently handle various grid configurations. As a result of the process, the distance map  M P  is produced. The Chamfer algorithm’s ability to quickly generate distance maps makes it an ideal tool for real-time applications in agent-based models, enabling dynamic updates and realistic simulations of agent movements and interactions within complex environments.
Figure 1 illustrates the evolution of the process performed by the Chamfer algorithm to generate the distance map. Figure 1a represents the original grid  G , where all its values are zero except for two elements representing the outputs ( x 1,1 = x 4,4 = 1 ). Under these conditions, the Chamfer technique calculates the distance from each cell (with a value of zero) to the grid element(s) with a value of one. Considering Figure 1a as an input, the Chamfer transform is applied using a dual process with the masks shown in Figure 1b. The result of this processing is the distance map,  M P , displayed in Figure 1c. In this final map,  M P , all cells with an initial value of zero in the grid  G  have been assigned a value corresponding to the distance from that cell to the nearest output. For example, in Figure 1c, the element  x 3,6  has a value of 3, indicating its distance to one of the defined outputs. This visualization highlights how the Chamfer algorithm effectively calculates and assigns distance values across the grid, reflecting the proximity of each cell to the nearest target or output point.
Once the distance map  M P  is created, obstacles can be configured. Obstacles represent cells or groups of cells that cannot be occupied, so their distance  O  value to the doors is set to a very large number. By assigning such a high distance value, these cells are effectively blocked from being used as an evacuation path. The  O  value must be greater than the product of the grid dimensions  M × N . Figure 1c illustrates this process, showing how the element at position  x 6,2  is set as an obstacle in the distance map by assigning it a value of 60. This high value ensures that the cell is considered inaccessible, preventing agents from including it in their evacuation routes and thereby accurately reflecting the presence of physical barriers in the modeled environment.

3.2. Agents and Rules

In the proposed model, the  N A  agents { A 1 , A 2 , , A N A } are initialized or located randomly within the valid cells  ( x , y )  of the grid  M × N , specifically in cells that are not occupied by obstacles or other agents. This setup ensures that each agent starts from a feasible location, facilitating realistic movement patterns within the environment. The number of agents  N A  represents the number of individuals that it is desired to evacuate in our model. By positioning agents in accessible and unoccupied cells, the model accurately reflects the initial conditions of an evacuation scenario, allowing for the simulation of realistic interactions and movements as agents navigate towards exits while avoiding obstacles and each other.
Agents in the evacuation model are governed by a set of rules that define their interactions, movement, and decision-making processes. These rules are designed to emulate human behavior in evacuation situations, including potential cases of accidents, panic, and disorientation. The model has five rules. These comprise a movement rule, a stagnation rule, and three behavioral rules. The movement rule dictates how agents navigate the environment, choosing paths based on distance map and avoiding obstacles. The stagnation rule addresses situations where agents are unable to move due to congestion or blockages, guiding their responses to such scenarios. The three behavioral rules consider the emotional and psychological aspects of evacuation, such as panic-induced irrational movements or hesitation due to disorientation. Each of these rules will be explained below in detail.

3.2.1. Movement Rule

The movement rule dictates how agents navigate the environment, choosing paths based on the distance map and avoiding obstacles. In our evacuation model, each agent attempts to move towards the nearest exit based on the shortest path provided by the Chamfer distance map  M P , adjusting their route in response to environmental changes. In this rule, each agent  A p  explores their immediate neighborhood  N E , defined by the Moore neighborhood (see Figure 2a), to decide their next move. The Moore neighborhood includes all eight adjacent cells surrounding the agent. Therefore, agents can move vertically, horizontally, or diagonally to an adjacent cell that is not occupied by another agent. The rule specifies that the agent will move to any cell within the  N E  neighborhood that has a smaller or equal distance value than the current agent position. If multiple surrounding cells within the neighborhood have the same minimum distance value, the agent will randomly choose one of these cells. Thus, if agent  A p  is at position  x i , j  on the grid, it must check which of the eight  N E  cells have a distance value less than distance in position  x i , j . The elements to be analyzed and members of the  N E  neighborhood are defined as follows:
N E ( x i , j ) = x i 1 , j 1 , x i 1 , j , x i 1 , j + 1 , x i , j 1 , x i , j + 1 , x i + 1 , j 1 , x i + 1 , j , x i + 1 , j + 1
Once the cell that satisfies this condition is found, the agent can move to that new cell position. Thus, the motion rule  R M  can be defined as the change of the position of the agent  A p  from  x i , j  to  x a , b  such that the distance of the position  x a , b  is smaller than that of  x i , j  within the  N E  neighborhood of  x i , j . This rule can be schematized as follows:
R M :    x a , b A p         x a , b N E x i , j Λ d ( x a , b ) d ( x i , j )
where  d ( · )  represents the distance of a particular position of the grid. Figure 2b shows an example of this rule. In the figure, we assume that there is an agent  A p  in the grid at position  x 2,6 . Its neighbors are the elements of the  N E  set  x 1,5 , x 1,6 , x 1,7 , x 2,5 , x 2,7 , x 3,5 , x 3,6 , x 3,7 . As shown, the current distance from the agent’s position to the exit is 4, and within the neighborhood is a cell with a distance of 2. This cell, at position  x 3,5 , will be the new position of the agent, demonstrating how the agent moves to a position that brings it closer to the exit, as part of the operation of this rule.

3.2.2. Stagnation Rule

On several occasions, agents tend to concentrate at the exits, leaving at a slow pace, or encounter obstacles that block the movement in one direction. When this happens, the agents try to keep moving, just as humans do in real life, seeking alternate paths that allow them to reach the exit faster. Under the movement rule alone, this adaptive behavior would not be possible. According to the movement rule, an agent  A p  can move from its current cell  x i , j  to another cell  x a , b  (where  x a , b N E x i , j ) only if the new cell  x a , b  has a distance value  d ( x a , b )  smaller than the current  d ( x i , j ) . If the agent does not find a cell with these conditions, it cannot move and remains in the same cell. When this happens, the agent presents a state of stagnation,  E s . This limitation necessitates additional rules to enable agents to dynamically seek alternative routes and avoid congestion, thereby reflecting more realistic human behavior during evacuation scenarios.
To avoid over clustering, the stagnation rule  R S  is defined. According to this rule, every time an agent cannot move ( E s ) because there is no cell with a smaller distance, its current distance value is artificially increased by one ( d ( x i , j ) = d ( x i , j ) + 1 ). As a result of this rule, there will come a moment when the distance value of the agent’s current cell  d x i , j  will be greater, enabling the agent  A p  to move to another cell  x a , b  with a smaller distance by applying the movement rule  d x a , b < d x i , j . This mechanism prevents agents from becoming indefinitely stuck and promotes continuous movement, allowing them to eventually find alternative paths and reducing the likelihood of congestion at exits. This adjustment ensures a more fluid and realistic simulation of evacuation dynamics. The stagnation rule  R S  is defined as the artificial increase in each iteration that represents the distance from the current position  d x i , j  of an agent  A p  that has presented a stagnant state  E s . This can be described as follows:
R S :    I F   A p   i s   E s   T H E N   d ( x i , j ) = d ( x i , j ) + 1
Figure 3 shows an example of the effect of the stagnation rule. Figure 3a displays the distance map representing the environment. As shown, agent  A p  is at position  x 3,1 , blocked by three obstacles at  x 2,1 ,   x 2,2 , and  x 3,2 . Under these circumstances, agent  A p  would be stuck in this position without being able to move further. By applying the stagnation rule, the distance value  d ( x 3,1 )  of the position where agent  A p  is located will be artificially increased. Following this rule, after 2 iterations, the distance value of the position will increase from 2 to 4 units. With this new distance value, when the movement rule is applied, the agent will move to a new cell  x 4,2 , which has a smaller distance ( d ( x 4,2 ) = 3 ) than  d ( x 3,1 )  after the increments. This example demonstrates how the stagnation rule enables the agent to overcome obstacles and continue moving toward the exit, thus preventing it from remaining indefinitely stuck.

3.2.3. Behavioral Rules

The behavioral conditions of individuals, such as accidents ( A c ), hysteria ( H ), and disorientation ( D ), play a crucial role in the evacuation of a physical space. Accidents ( A c ) can lead to injuries and obstacles, slowing down the evacuation process and creating areas of congestion. Hysteria ( H ), driven by panic and fear, can cause chaotic and unpredictable behaviors, such as pushing, stampeding, and ignoring safety instructions, which can further complicate the evacuation. Disorientation ( D ), often resulting from confusion or unfamiliarity with the environment, can lead individuals to move in the wrong direction or fail to find exits, significantly hindering their escape. According to several studies, in typical evacuation scenarios, no more than 10% of the population experiences behaviors such as accidents, hysteria, or disorientation [41,42,43]. However, this percentage can be adjusted based on changing conditions within the population, such as increased stress levels or external factors, or the model can be adapted to specific behavioral characteristics of different groups. By allowing the adjustment of this value, the model gains flexibility, making it applicable to a wider range of real-world situations and enabling more accurate simulations of different evacuation dynamics. This adaptability is crucial for tailoring the model to specific environments or population behaviors, providing more relevant insights into evacuation processes.
Considering these behavioral profiles in an evacuation model is essential for accurately simulating real-life scenarios. It allows for the development of more effective evacuation strategies by identifying potential problem areas and improving response plans. Incorporating these elements helps emergency planners and responders anticipate and manage the complex dynamics of human behavior during crises, ultimately enhancing safety and efficiency and potentially saving lives during actual evacuations.
In our model, three rules have been defined to simulate the conditions of accidents ( R A c ), hysteria ( R H ), and disorientation  ( R D )  that an agent  A p  can experience during the evacuation process. The first step is to determine whether the agent  A p  will experience one of these behaviors. This is carried out using a probabilistic test. In this test, a uniformly distributed random number  r  is generated. If the value of  r  is less than or equal to 0.1 (10%), the test is positive, and the agent will experience one of the three behaviors:  A c ,   H ,  or  D . If the value is greater than 0.1, the agent will not experience any of these behaviors. This probabilistic approach ensures that only a subset of agents will exhibit these behaviors, reflecting the varied and unpredictable nature of human reactions in real-life evacuation scenarios.
Once it has been decided that agent  A p  will experience one of the three behaviors  A c ,   H , and  D , one of them is randomly chosen with equal probability to choose one of the three.
If the  A c  condition is selected as the behavior of agent  A p , the accident rule  R A c  is triggered. Under  R A c , the agent  A p  is considered to have suffered an accident or injury, rendering the agent immobile. As a result, agent  A p  remains as an obstacle  O  in the cell  x i , j  it occupies on the grid. This means that the agent will block the cell for the remainder of the simulation (for the rest of the iterations), preventing other agents from moving through or occupying that cell.  R A c  can be described as follows:
R A c :    I F   A p   i s   A c   T H E N   A p   i s   O   a l w a y s
This rule simulates the impact of accidents during evacuation, highlighting how injuries can create additional barriers and complicate the evacuation process, thereby providing a more realistic and challenging scenario for emergency planning and response strategies.
If condition  H  has been selected as the behavior of agent  A p , the hysteria rule  R H  is triggered. According to this rule, agent  A p  remains as an obstacle in the same position for a fixed number of iterations  n  ( i t e r = n ). During this period, the agent is immobilized, effectively blocking the cell,  x i , j , it occupies and impacting the movement of other agents around it. After the specified number of iterations  n  has passed, agent  A p  assumes a normal behavior and can move according to the standard movement rule ( R M ), just like any other agent.  R H  can be described as follows:
R H : I F   A p   i s   H   T H E N   A p   i s   O   i t e r = n
This rule simulates the temporary paralysis or irrational behavior that can occur due to hysteria, providing a more realistic depiction of how panic can affect evacuation dynamics and potentially cause temporary bottlenecks or delays.
If condition  D  is selected as the behavior of agent  A p , the disorientation rule  R D  is triggered. This rule affects the agent for  m  iterations. During this period, the agent becomes confused and moves erratically from its current position  x i , j  to another random cell  x c , d  within its neighborhood  N E ( x i , j ) . In this rule, the agent will randomly move to any neighboring cell, regardless of the distance values, with the only restriction that the cell is not occupied.  R D  can be described as follows:
R D :    I F   A p   i s   D   T H E N   x c , d A p
This rule emulates the disorientation that can occur for an individual during the evacuation process, causing the agent to make seemingly irrational moves that do not necessarily lead towards the exit. This rule helps to model the impact of confusion and lack of spatial awareness on the evacuation process, adding another layer of realism to the simulation by accounting for the unpredictable nature of human behavior in emergency situations.

3.3. Computational Procedure

This section discusses the complete computational procedure of the agent-based model to emulate the evacuation process. All operations are detailed in pseudocode in Algorithm 1 and Figure 4. The method starts by initializing its general operating parameters (line 1), such as the size of the grid ( M × N ), the number of people in the room to be evacuated ( N A ), the number of iterations that the agents could be disoriented according to the disorientation rule ( n ), and the maximum number of iterations ( i t e r a m a x ) for which the evacuation process will be displayed. The initialization parameters are critical as they define the simulation environment and the conditions under which the evacuation will occur. The grid size  M × N  determines the spatial layout, while the number of agents  N A  represents the population to be evacuated. The disorientation iterations parameter  n  specifies the duration of confusion for affected agents, and the maximum iterations  i t e r a m a x  parameter limits the simulation’s runtime, ensuring it remains computationally feasible. This comprehensive setup allows for a detailed analysis of the evacuation dynamics, capturing the effects of various behaviors and environmental factors on the overall process.
To construct the environment (line 2), the simplest method is to generate an  M × N  binary image of the enclosure plane with values of 0 and 255. In this binary grid, cells with a value of zero represent points that can be occupied by an individual, indicating free space within the environment. Conversely, cells with a value of 255 represent obstacles ( O ), indicating spaces that cannot be occupied by individuals. This binary image approach allows for a clear and straightforward representation of the physical layout, distinguishing between navigable areas and impassable barriers. By defining the environment in this manner, the model can easily simulate movement, interactions, and the impact of obstacles on the evacuation process, providing a realistic and manageable framework for analyzing evacuation dynamics.
The next step is the construction of the distance map  M P  using the Chamfer method (line 3). It is applied over the generated  M × N  binary image of the environment. In this image, cells with a value of zero represent navigable space, and cells with a value of 255 represent obstacles. The Chamfer method is then applied to this binary grid to calculate the shortest path distances from each cell to the nearest exit or target point.
Algorithm 1 Pseudocode of the proposed method
1:Input:  N A ,   i t e r a m a x M ,   N , n  
2: G  EnvironmentConfiguration( M , N , N A )
3: M P  ChamferAlgorithm( G )
4:for iteration=1:   i t e r a m a x  
5: for  p =1:   N A
6: G  Rule_ R M ( A p )
7: G , M P  Rule_ R S ( A p )
8: G  Rule_ R A C ( A p )
9: G  Rule_ R H ( A p , n )
10: G  Rule_ R D ( A p )
11: end for
12:end for
13:Output:  G  
Once the  M P  distance map is created, a cycle is initiated that is repeated for a maximum number of iterations. This number represents the number of visualizations that will be made of the evacuation process. During each iteration, all  N A  agents are processed. Each of the five rules is applied to each agent  A p  (lines 5–10). These rules include the movement rule ( R M ), stagnation rule ( R S ), accident rule ( R A C ), hysteria rule ( R H ), and disorientation rule ( R D ) . Each rule is applied only if the conditions for its application are met; otherwise, only the necessary rules are applied. Each application of a rule modifies the state of the grid by moving individuals within the space, trying to reach the exit. Agents will navigate towards the exit based on the  M P  distance map, adjust their paths to avoid obstacles and other agents, and react according to their specific behavioral conditions (accidents, hysteria, or disorientation). The model continues this cyclic application of rules until the maximum number of iterations is reached, providing a detailed simulation of the evacuation process and the dynamic interactions within the environment.

4. Experimental Results

This section demonstrates the capabilities and flexibility of the proposed agent-based evacuation model through a series of structured experiments. Each experiment is designed to evaluate the model’s performance in various complex environments: a real-world scenario at the Hospital “Civil Viejo Fray Antonio Alcalde” in Guadalajara, Mexico, a maze, and a train station. These scenarios were specifically chosen to illustrate the model’s adaptability to different spatial complexities and emergent behaviors of agents under varied conditions.
The experimental section includes a set of simulations where the performance of the model is analyzed under different conditions, such as varying numbers of agents and their behavioral states—including hysteria, collective learning, and disorientation. For each environment, we present six snapshots, illustrating the evolution of the evacuation process at significant intervals. This visual information aids in understanding how the agents interact with the environment and with each other, highlighting the model’s ability to identify critical risk areas and optimize evacuation strategies effectively. By observing these images, we can analyze the dynamic patterns of movement, congestion points, and the effects of different behaviors on the overall efficiency of the evacuation process. This approach ensures a thorough evaluation of the model’s robustness and practical applicability in diverse disaster scenarios.
Furthermore, the model’s robustness is validated by testing its applicability across these distinct scenarios, demonstrating its potential to be employed in any setting that requires evacuation planning and safety analysis. The following discussions and visual representations (Figure 5, Figure 6 and Figure 7) provide a comprehensive insight into the dynamics of evacuation, emphasizing the model’s innovative approach to enhancing building safety in emergency situations. The following experiments in this section were implemented using MATLAB, running for an average time of 141 s on a computer with the characteristics shown below.
  • Device: Huawei Matebook E.
  • Processor: 11th Gen Intel(R) Core(TM) i7-1160G7 @ 1.20 GHz 2.11 GHz.
  • OS: Windows 11 Home.
  • RAM: 16 GB.
  • SSD: 512 GB.
  • GPU: 8 GB Intel(R) Iris(R) Xe Graphics.
To better understand the implications of the experimental results, it is crucial to consider the real-world equivalent of the agents’ movements within the simulated environments. Human walking speed averages around 1.4 m per second (m/s), which equates to approximately 5 km per hour (km/h). In the proposed model, agents move one cell per iteration, where each cell represents a pixel in the environment. The environments are scaled to 100 × 100 pixels, and in the case of the Fray Antonio Alcalde Hospital, to 160 × 160 pixels, reflecting its actual size of 160 m by 160 m.

4.1. Fray Antonio Alcalde Hospital Environment

For Experiment A (Figure 5), conducted in the Fray Antonio Alcalde Hospital environment, 1500 agents successfully evacuated the 160 × 160 pixel hospital through 10 designated exits in 278 iterations out of a total of 500 iterations. The 500 iterations were executed in 102.448458 s. To translate this into real-world terms, considering the hospital’s actual dimensions and the average human walking speed, the 278 iterations correspond to the agents traversing 278 pixels, or approximately 278 m. Given that the average walking speed is 1.4 m per second, this translates to approximately 198.57 s (278 m/1.4 m per second) in real-world evacuation time, which is about 3.31 min.
In a real-world evacuation drill at the Fray Antonio Alcalde Hospital, 320 employees and 956 users were evacuated in ten minutes. The drill involved 80 personnel from security, stretcher-bearers, and Civil Protection brigades [44]. It is important to note that in the real drill, some users required assistance as they were hospitalized patients, which added complexity to the evacuation process. This highlights the practicality and efficiency of the model in simulating real-life scenarios where different levels of assistance are required.
Figure 5 illustrates the iterative evolution of the Fray Antonio Alcalde Hospital environment with 1500 agents:
  • Figure 5a shows the initialized environment in the first iteration with agents randomly distributed within the hospital.
  • Figure 5b shows the progress at iteration 25, where patterns and agent followings start to emerge. Clusters of agents are indicated by colors: white for single agents with no obstructions, green for two agents nearby, yellow for three agents, orange for four agents, and red for five or more agents in a zone. This color-coding helps identify bottleneck areas where experts can plan infrastructure improvements to increase evacuation flow and prevent congestion.
  • Figure 5c shows the environment at iteration 50.
  • Figure 5d shows the system at iteration 100.
  • Figure 5e shows the environment at iteration 200, where approximately 17 agents remain in the system.
  • Figure 5f shows the environment at iteration 350, with the area now clear and circles indicating zones of highest agent concentration.
  • Figure 5g presents a graph of the system’s evolution, showing the evacuation progress of agents over iterations, with all 1500 agents evacuated by iteration 278.
  • Figure 5h displays the map with optimal evacuation routes, allowing experts to identify the best paths for evacuating the environment. These optimal routes are determined by the emergent behaviors that arise within the agent-based model. As agents move through the environment, their collective behaviors naturally converge towards paths that offer both the shortest distance to the exits and the least congestion. This emergent behavior reflects how individuals adapt to both distance and crowd density, leading to the formation of the most efficient evacuation routes.
The results of experiment A conducted in the Fray Antonio Alcalde Hospital environment reveal an interesting correlation between the model evacuation time and the times reported in the real scenario. Although the evacuation time in the model is approximately 3.31 min and the time reported in the real scenario was 10 min, it is important to consider the factors that contribute to this difference. In the real simulation, various elements such as inpatient care, delays in communicating instructions, and the physical limitations of some patients slow down the evacuation process. In contrast, the agent-based model in its first simulations obtained similar evacuation times; however, as emergent events arose and the model was retrained, the evacuation routes were optimized and the agents evacuated the environment in considerably less time. In addition, the emergent behaviors observed, such as the formation of congestion points (Figure 5f), highlight areas where improvements could be made to the infrastructure of the Fray Antonio Alcalde Hospital to increase evacuation efficiency. For example, areas of high agent concentration could be improved by widening exits, optimizing corridors, or placing evacuation signs to help distribute the flow more uniformly. The routes identified as optimal (Figure 5h) allow the generation of strategic evacuation plans. The model also demonstrates a strong ability to mimic human behaviors in evacuation situations, such as grouping and adaptive movement according to local conditions. These behaviors validate the effectiveness of the proposed model to simulate complex evacuation scenarios, providing practical recommendations for building planning and optimization of evacuation procedures. Finally, the ability to identify critical areas of congestion allows experts to propose adjustments to evacuation strategies, highlighting the usefulness of the model for safety planning in high-traffic environments.

4.2. Maze Environment

For Experiment B (Figure 6), conducted in a maze environment, 1000 agents were tasked with evacuating through three designated exits in a 100 × 100 pixel maze. The agents successfully evacuated the maze in approximately 2000 iterations, which took around 230 s in simulation time. To translate this into real-world terms, considering the maze’s actual dimensions and the average human walking speed, the 2000 iterations correspond to the agents traversing 2000 pixels, or approximately 2000 m. Given that the average walking speed is 1.4 m per second, this translates to approximately 1428.57 s (2000 m/1.4 m per second) in real-world evacuation time, which is about 23.81 min.
This model can be run multiple times to train the agents, which helps in reducing evacuation time. Through repeated simulations, agents can discover the optimal routes, and collective behaviors enable agents to follow those who have already identified the best paths.
Figure 6 illustrates the iterative evolution of the system:
  • Figure 6a shows the initialized environment in the first iteration with agents randomly distributed within the maze.
  • Figure 6b shows the progress at iteration 500, where some evacuation routes start to become apparent.
  • Figure 6c shows the environment at iteration 1000.
  • Figure 6d shows the system at iteration 1500.
  • Figure 6e shows the environment at iteration 2000, where only five agents remain in the maze.
  • Figure 6f shows the end of the 2500 iterations, with red circles indicating zones with the highest agent concentration.
  • Figure 6g presents a graph of the system’s evolution, showing the evacuation progress of agents over iterations.
  • Figure 6h displays the three routes found by the agents to exit the maze.
This experiment highlights the model’s capability to handle complex environments and its effectiveness in finding optimal evacuation routes even in constrained and intricate layouts like a maze.
The results of Experiment B in the maze environment demonstrate the model’s capability in complex scenarios. The evacuation time of 23.81 min, although longer than in less complex environments, highlights the complexity of the environment. The need for agents to move through multiple paths and dead ends significantly affects evacuation time, delaying the evacuation process. One of the strengths of the proposed model is its ability to improve evacuation times through repeated simulations, which allow agents to be retrained, resulting in better routes that emerge from collective emergent behaviors. The emergent behavior observed in this experiment, where agents follow those who have already discovered the optimal routes, mimics real-world behavior, where individuals tend to follow others in uncertain situations. This adaptive learning process, as seen in Figure 6h, highlights the importance of training agents to efficiently navigate complex environments. Moreover, the identification of three main evacuation routes (Figure 6h) further underscores the model’s effectiveness in managing complex environments. These routes provide valuable insights into how bottlenecks can be avoided and how to optimize the flow of evacuees in environments with limited exit points. Finally, the model’s applicability offers practical insights for real-world safety planning in complex structures such as large office buildings and shopping malls. The ability to repeatedly simulate and optimize evacuation strategies makes this model a valuable tool for emergency preparedness and infrastructure design.

4.3. Train Station Environment

For Experiment C (Figure 7), conducted in a 100 × 100 pixel train station environment with two exits and a mini labyrinth representing the platform change, 1500 agents were tasked with evacuating. The agents successfully evacuated the system in approximately 450 iterations out of a total of 1000 iterations, which took around 92 s in simulation time. To translate this into real-world terms, considering the average human walking speed of 1.4 m per second, the 450 iterations correspond to the agents traversing 450 pixels, or approximately 450 m. This translates to approximately 321.43 s (450 m/1.4 m per second) in real-world evacuation time, which is about 5.36 min.
Figure 7 illustrates the iterative evolution of the system:
  • Figure 7a shows the initialized environment in the first iteration with agents randomly distributed within the train station.
  • Figure 7b shows the progress at iteration 50, where evacuation routes start to become visible.
  • Figure 7c shows the environment at iteration 200, where disoriented and hysterical agents were blocking other users. In this iteration, some of the agents have found the route to the exits.
  • Figure 7d shows the system at iteration 250.
  • Figure 7e shows the environment at iteration 300.
  • Figure 7f shows the system at iteration 600, with a circle indicating the bottleneck congestion zone.
  • Figure 7g presents a graph of the system’s evolution, showing the evacuation progress of agents over iterations.
  • Figure 7h displays the evacuation routes generated by the agents.
This experiment demonstrates the model’s capability to manage complex environments with obstacles and bottlenecks, highlighting its effectiveness in finding optimal evacuation routes and dealing with agent behaviors such as disorientation and hysteria that can impact the evacuation process.
The results of Experiment C in the train station environment reveal an interesting emergent behavior that highlights the model’s ability to simulate adaptive decision-making during evacuation. Initially, most agents followed the collective behavior, moving toward the nearest exit. This behavior, observed in Figure 7b, led to the formation of bottlenecks and a high concentration of agents near the exit, delaying the evacuation for those at the back of the group. However, a notable observation was the behavior of agents who, upon encountering congestion, decided to explore alternative routes (Figure 7c), even if they were slightly farther away. These agents, by avoiding the bottleneck and opting for a less congested exit, managed to evacuate more quickly than those who continued following the collective route. This adaptive response is an interesting feature of the model, as it mimics real-world behavior where individuals reevaluate their decisions when faced with obstacles or delays. The emergent behavior of agents self-organizing into groups that either follow the majority or explore alternative routes demonstrates the model’s flexibility in handling complex environments with dynamic conditions. Moreover, the presence of disoriented and hysterical agents (Figure 7b), who temporarily blocked others, illustrates how psychological factors can influence the overall efficiency of the evacuation process.

4.4. Discussion

The experimental results highlight several key findings about the behavior of agents under varying conditions and the corresponding effects on evacuation efficiency. In all scenarios tested, from the confined spaces of a room to the complex environments of hospitals, mazes, and train stations, we observed that increasing the number of agents generally exacerbated congestion, which in turn prolonged the evacuation times. This correlation underscores the importance of optimal agent density calculations in emergency planning to prevent dangerous bottlenecks. In addition, the introduction of complex behavioral states such as hysteria and disorientation added significant variability to the agents’ behavior. These states were designed to simulate real human responses in panic situations:
Hysteria: Agents experiencing hysteria tended to freeze or move unpredictably, causing sudden halts and disruptions in the flow of movement, which could create localized congestion. However, this behavior also led to the emergence of alternative paths as other agents navigated around the immobilized individuals, sometimes resulting in faster evacuation routes being identified.
Disorientation: Disoriented agents often took inefficient paths or circled back on themselves, which increased their individual evacuation times. Interestingly, this sometimes-dispersed crowds more evenly across the available exits, reducing pressure on any single exit point.
Moreover, the variability introduced by different states sometimes facilitated unexpected, beneficial emergent patterns. For instance, when certain agents altered their routes in response to blocked paths or congested areas, they often inadvertently discovered more efficient pathways. These emergent behaviors highlight the potential of agent-based models to identify innovative evacuation strategies that might not be immediately obvious in standard planning procedures.
One of the most practical outcomes of this study was the model’s ability to identify potential risk zones areas where overcrowding is likely or where unusual behaviors frequently emerge. Such zones are critical points for infrastructural or procedural intervention. Based on the simulation, we can recommend specific areas within each environment for capacity enhancement, structural modification, or targeted evacuation drills.
The insights garnered from these experiments have profound implications for emergency evacuation planning. By understanding how agents respond to different layouts and stimuli, planners can better design evacuation protocols that are not only efficient but also resilient to the unpredictable elements of human behavior. Furthermore, the ability to simulate various scenarios allows for the testing of emergency response strategies in a risk-free environment, ensuring that procedures are optimized before they are needed in real-world situations.

4.5. Model Applicability and Novel Contributions

The proposed agent-based model introduces innovative aspects to the field of evacuation modeling, notably through its dynamic adaptation of agent behaviors, which are influenced by both environmental changes and interactions with other agents. Unlike static models, this dynamic approach allows for real-time adjustments in agent strategies, enhancing the realism and applicability of the model in diverse emergency scenarios. The flexibility of the model is demonstrated through its ability to seamlessly adapt to a variety of environments, from the constrained layouts of rooms and buildings to the complex settings of hospitals, mazes, and train stations without the need for significant modifications. This adaptability makes it an invaluable tool for safety engineers and emergency planners who must prepare for a wide range of emergency situations. Moreover, the model’s capacity to simulate detailed agent interactions and complex behavioral dynamics offers profound insights into crowd behavior under stress. The simulation of psychological states such as hysteria, disorientation, and collective learning reveals emergent patterns that can both hinder and facilitate the evacuation process. These patterns provide critical information for identifying risk zones and optimizing evacuation routes, thereby improving overall building safety and emergency response strategies. The scalability of the model and the detailed visualization of evacuation progress through iterative graphics further enhance its practical utility. These features allow planners to visualize potential evacuation scenarios and develop strategies that are informed by a comprehensive understanding of agent behaviors and environmental influences.

5. Conclusions

This paper presented an evacuation model that utilizes agent-based approach, which employs only five rules to capture the interactions between individuals in an environment with obstacles and exits. This model not only demonstrates the movement of agents during the evacuation process in response to changing environmental conditions but also illustrates the consequences of unpredictable agent behavior caused by accidents, hysteria, and disorientation. This approach differs from many conventional evacuation models by incorporating rules that simulate typical behaviors observed in complex evacuation scenarios, such as accidents, panic, and confusion. By integrating these behavioral factors, the model provides a more accurate representation of how people actually respond during evacuations, resulting in more true-to-life and practical outcomes. To validate the effectiveness of the proposed agent-based model, a series of comprehensive experiments and case studies focusing on diverse urban settings were conducted. The experiments include the Hospital “Fray Antonio Alcalde”, a maze, and a train station. They demonstrate the model’s flexibility and effectiveness in different spatial complexities.
In the Fray Antonio Alcalde Hospital environment, 1500 agents successfully evacuated through 10 designated exits, highlighting the model’s ability to simulate real-world scenarios where varying levels of assistance are required. The maze experiment showed how agents navigate through complex environments with multiple exits, emphasizing the importance of optimal route discovery and collective behavior in reducing evacuation times. The train station experiment further validated the model’s robustness in handling environments with bottlenecks and obstacles, demonstrating its capability to adapt to disorientation and hysteria among agents.
An example of the model’s ability to identify innovative evacuation strategies can be seen when agents encounter unexpected blockages or congestion during their movement. For instance, in the train station experiment, agents initially faced a crowded or blocked path, forcing them to reroute through less obvious corridors. This adaptive behavior led them to discover a more efficient, less congested exit route. Such emergent patterns, which might not be immediately apparent in static planning, highlight the model’s potential to reveal alternative evacuation strategies through real-time agent interactions.
The model’s adaptability is further exemplified by its potential application to large-scale scenarios, such as the hypothetical 7.2 magnitude earthquake scenario affecting the University of Guadalajara. In this scenario, 190,000 people were evacuated in the morning session, with additional evacuations planned for the afternoon, totaling over 350,000 participants [45]. This case underscores the model’s scalability and its utility in planning and optimizing evacuation strategies for large populations in various urban contexts.
The agent-based model’s dynamic adaptation, detailed visualization, and real-time adjustments make it a powerful tool for safety engineers, emergency planners, and civil protection agencies. By providing a comprehensive understanding of agent behaviors and environmental influences, the model enhances the ability to identify risk zones, optimize evacuation routes, and improve overall building safety in emergency situations.
Future work will focus on refining the model to incorporate more detailed psychological factors and exploring its application in other urban environments. This ongoing research aims to contribute to the development of safer and more efficient evacuation strategies, ultimately enhancing public safety in smart cities worldwide.

Author Contributions

Conceptualization, E.C. and M.I.-T.; methodology, H.E.; software, M.I.-T. and H.E.; validation, M.P.-C. and E.C.; formal analysis M.P.-C. and E.C.; investigation, M.I.-T.; resources, M.I.-T.; data curation, H.E.; writing—original draft preparation, Miguel Islas Toski; writing—review and editing, E.C.; visualization, H.E.; supervision, M.P.-C.; project administration, M.I.-T.; funding acquisition, M.P.-C. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

Data and abm of this research can be requested via e-mail.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Huq, S.; Kovats, S.; Reid, H.; Satterthwaite, D. Reducing risks to cities from disasters and climate change. Environ. Urban. 2007, 19, 3–15. [Google Scholar] [CrossRef]
  2. Lv, Y.; Sarker, M.N.I.; Firdaus, R.R. Disaster resilience in climate-vulnerable community context: Conceptual analysis. Ecol. Indic. 2024, 158, 111527. [Google Scholar] [CrossRef]
  3. De Sherbinin, A.; Schiller, A.; Pulsipher, A. The vulnerability of global cities to climate hazards. In Adapting Cities to Climate Change; Routledge: London, UK, 2012; pp. 129–157. [Google Scholar]
  4. Xie, J.; Wei, N.; Gao, Q. Assessing spatiotemporal population density dynamics from 2000 to 2020 in megacities using urban and rural morphologies. Sci. Rep. 2024, 14, 14166. [Google Scholar] [CrossRef]
  5. Sun, Y.; Zhao, X.; Lovreglio, R.; Kuligowski, E. Ai for large-scale evacuation modeling: Promises and challenges. In Interpretable Machine Learning for the Analysis Design Assessment and Informed Decision Making for Civil Infrastructure; Woodhead Publishing: Cambridge, UK, 2024; pp. 185–204. [Google Scholar]
  6. Ding, Z.; Xu, S.; Xie, X.; Zheng, K.; Wang, D.; Fan, J.; Li, H.; Liao, L. A building information modeling-based fire emergency evacuation simulation system for large infrastructures. Reliab. Eng. Syst. Saf. 2024, 244, 109917. [Google Scholar] [CrossRef]
  7. Greenshields, B.D.; Bibbins, J.R.; Channing, W.S.; Miller, H.H. A study of traffic capacity. In Highway Research Board Proceedings; National Research Council: Washington, DC, USA, 1935; Volume 14, pp. 448–477.
  8. Karunathilake, A.; Perera, P.; Herath, O.; Sivakumar, T.; Kumarage, A. A Comparative Study of Traffic Flow Models: A Case Study in Colombo, Sri Lanka. In Proceedings of the Conference: Research for Transport & Logistics Industry R4TLI, Virtual, 16 October 2021. [Google Scholar]
  9. Burgos, F.A.G. Flujos Peatonales en Infraestructuras Continuas: Marco Conceptual y Modelos Representativos; Revista Virtual Universidad Católica del Norte: Medellín, Colombia, 2010; pp. 179–203. [Google Scholar]
  10. Chanca Razón, M.D.; Dávalos Ancori, M.C. Modelado y Predicción del Comportamiento de Entidades Peatonales en Estado de Pánico en Edificaciones Verticales, a Través de un Análisis Descriptivo-Macroscópico; Tesis de grado, Universidad Peruana de Ciencias Aplicadas (UPC): Lima, Perú, 2023. [Google Scholar] [CrossRef]
  11. Piedrahíta, G.; Buitrago, H.A. Simulación de flujo peatonal en estaciones de transporte público masivo a través de modelado basado en agentes (ABM). In Proceedings of the Encuentro Internacional de Educación en Ingeniería 2021, Bogota, Colombia, 27–29 October 2021. [Google Scholar]
  12. Helbing, D.; Molnar, P. Social force model for pedestrian dynamics. Phys. Rev. E 1995, 51, 4282. [Google Scholar] [CrossRef]
  13. Kirchner, A.; Schadschneider, A. Simulation of evacuation processes using a bionics-inspired cellular automaton model for pedestrian dynamics. Phys. A Stat. Mech. Its Appl. 2002, 312, 260–276. [Google Scholar] [CrossRef]
  14. Huang, K.; Zheng, X.; Cheng, Y.; Yang, Y. Behavior-based cellular automaton model for pedestrian dynamics. Appl. Math. Comput. 2017, 292, 417–424. [Google Scholar] [CrossRef]
  15. Liu, Y.; Li, J.; Sun, C. Cellular automaton model for pedestrian evacuation considering impacts of fire products. Fire 2023, 6, 320. [Google Scholar] [CrossRef]
  16. Darvishan, A.; Lim, G.J. Dynamic network flow optimization for real-time evacuation reroute planning under multiple road disruptions. Reliab. Eng. Syst. Saf. 2021, 214, 107644. [Google Scholar] [CrossRef]
  17. Shen, W.; Nie, Y.; Zhang, H.M. Dynamic network simplex method for designing emergency evacuation plans. Transp. Res. Rec. 2007, 2022, 83–93. [Google Scholar] [CrossRef]
  18. Singh, N.M. Dijkstra’s Algorithm: An Analysis. 2018. Available online: https://ssrn.com/abstract=3201629 (accessed on 27 May 2024).
  19. Ahuja, R.K.; Mehlhorn, K.; Orlin, J.; Tarjan, R.E. Faster algorithms for the shortest path problem. J. ACM JACM 1990, 37, 213–223. [Google Scholar] [CrossRef]
  20. Thornton, C.; O’Konski, R.; Hardeman, B.; Swenson, D. Pathfinder: An agent-based egress simulator. In Pedestrian and Evacuation Dynamics; Springer: Boston, MA, USA, 2011; pp. 889–892. [Google Scholar]
  21. Wang, L.; Zhang, Z.; Lu, S.; Wang, J. Behavior Selection Models of Fire Evacuations with the Consideration of Adaptive Evacuation Psychologies. Sustainability 2024, 16, 3607. [Google Scholar] [CrossRef]
  22. Zhu, Q.; Zhang, H.; Ma, Z.; Chen, Y.; Zhuang, H. Crowd behavior evacuation models. In Urban Construction and Management Engineering IV; CRC Press: London, UK, 2024; pp. 1002–1012. [Google Scholar]
  23. Karampotsis, E.; Kioskli, K.; Tsirimpa, A.; Dounias, G.; Polydoropoulou, A. Understanding evacuation behavior for effective disaster preparedness: A hybrid machine learning approach. Nat. Hazards 2024, 1–39. [Google Scholar] [CrossRef]
  24. Fu, Y.; Zhou, M.; Guo, X.; Qi, L.; Gao, K.; Albeshri, A. Multiobjective Scheduling of Energy-Efficient Stochastic Hybrid Open Shop with Brain Storm Optimization and Simulation Evaluation. IEEE Trans. Syst. Man Cybern. Syst. 2024, 54, 4260–4272. [Google Scholar] [CrossRef]
  25. Zhang, Z.; Fu, Y.; Gao, K.; Pan, Q.; Huang, M. A learning-driven multi-objective cooperative artificial bee colony algorithm for distributed flexible job shop scheduling problems with preventive maintenance and transportation operations. Comput. Ind. Eng. 2024, 196, 110484. [Google Scholar] [CrossRef]
  26. Wong, S.K. Crowd Evacuation Using Simulation Techniques. In Encyclopedia of Computer Graphics and Games; Springer International Publishing: Cham, Switzerland, 2024; pp. 491–498. [Google Scholar]
  27. Paletta, L.; Wagner, V.; Kallus, K.W.; Schrom-Feiertag, H.; Schwarz, M.; Pszeida, M.; Ladstaetter, S.; Matyus, T. Human factors modeling from wearable sensed data for evacuation based simulation scenarios. In Proceedings of the 5th International Conference on Applied Human Factors and Ergonomics (AHFE 2014), Krakow, Poland, 19–23 July 2014; pp. 19–23. [Google Scholar]
  28. Helbing, D. Agent-based modeling. In Social Self-Organization: Agent-Based Simulations and Experiments to Study Emergent Social Behavior; Springer: Berlin/Heidelberg, Germany, 2012; pp. 25–70. [Google Scholar]
  29. Ghaffarzadegan, N.; Majumdar, A.; Williams, R.; Hosseinichimeh, N. Generative agent-based modeling: An introduction and tutorial. Syst. Dyn. Rev. 2024, 40, e1761. [Google Scholar] [CrossRef]
  30. Tang, C.; Liu, Y. Agent-Based Modeling. In Computational Modeling for Industrial-Organizational Psychologists; Routledge: New York, NY, USA, 2024; pp. 181–210. [Google Scholar]
  31. Macal, C.M.; North, M.J. Agent-based modeling and simulation: ABMS examples. In Proceedings of the 2008 Winter Simulation Conference, Miami, FL, USA, 7–10 December 2008; pp. 101–112. [Google Scholar]
  32. De Marchi, S.; Page, S.E. Agent-based models. Annu. Rev. Political Sci. 2014, 17, 1–20. [Google Scholar] [CrossRef]
  33. Erden, M.S.; Komoto, H.; Van Beek, T.J.; D’Amelio, V.; Echavarria, E.; Tomiyama, T. A review of function modeling: Approaches and applications. Ai Edam 2008, 22, 147–169. [Google Scholar] [CrossRef]
  34. Rand, W.; Rust, R.T. Agent-based modeling in marketing: Guidelines for rigor. Int. J. Res. Mark. 2011, 28, 181–193. [Google Scholar] [CrossRef]
  35. Windrum, P.; Fagiolo, G.; Moneta, A. Empirical validation of agent-based models: Alternatives and prospects. J. Artif. Soc. Soc. Simul. 2007, 10, 8. [Google Scholar]
  36. Sayama, H. Introduction to the Modeling and Analysis of Complex Systems; Open SUNY Textbooks: Geneseo, NY, USA, 2015. [Google Scholar]
  37. Wilensky, U.; Rand, W. An Introduction to Agent-Based Modeling: Modeling Natural, Social, and Engineered Complex Systems with Netlogo; Mit Press: Cambridge, MA, USA, 2015. [Google Scholar]
  38. Sun, Z.; Lorscheid, I.; Millington, J.D.; Lauf, S.; Magliocca, N.R.; Groeneveld, J.; Balbi, S.; Nolzen, H.; Müller, B.; Schulze, J.; et al. Simple or complicated agent-based models? A complicated issue. Environ. Model. Softw. 2016, 86, 56–67. [Google Scholar] [CrossRef]
  39. Collins, A.; Koehler, M.; Lynch, C. Methods that support the validation of agent-based models: An overview and discussion. J. Artif. Soc. Soc. Simul. 2024, 27, 11. [Google Scholar] [CrossRef]
  40. Monti, C.; Pangallo, M.; De Francisci Morales, G.; Bonchi, F. On learning agent-based models from data. Sci. Rep. 2023, 13, 9268. [Google Scholar] [CrossRef] [PubMed]
  41. Massazza, A.; Brewin, C.R.; Joffe, H. Feelings, thoughts, and behaviors during disaster. Qual. Health Res. 2021, 31, 323–337. [Google Scholar] [CrossRef] [PubMed]
  42. Santucci, P. Mental health outcomes of disasters and terrorism. In Behavioral Health Response to Disasters; CRC Press: Boca Raton, FL, USA, 2012; pp. 115–140. [Google Scholar]
  43. Reser, J.P. The experience of natural disasters: Psychological perspectives and understandings. In International Perspectives on Natural Disasters: Occurrence, Mitigation, and Consequences; Springer: Dordrecht, The Netherlands, 2004; pp. 369–384. [Google Scholar]
  44. Coordinación de Comunicación Social, Universidad de Guadalajara. Realizan Simulacros en los Hospitales Civiles de Guadalajara. 18 September 2015. Available online: https://comsoc.udg.mx/noticia/realizan-simulacros-en-los-hospitales-civiles-de-guadalajara (accessed on 14 June 2024).
  45. Universidad de Guadalajara. UdeG evacúa a 190 mil Personas de sus Instalaciones en todo Jalisco Gaceta, U.d.e.G. 19 September 2023. Available online: https://www.gaceta.udg.mx/udeg-evacua-a-190-mil-personas-de-sus-instalaciones-en-todo-jalisco/ (accessed on 14 June 2024).
Figure 1. Evolution of the process performed by the Chamfer algorithm to generate the distance map  M P . (a) Original grid  G , (b) masks, and (c) produced map  M P .
Figure 1. Evolution of the process performed by the Chamfer algorithm to generate the distance map  M P . (a) Original grid  G , (b) masks, and (c) produced map  M P .
Smartcities 07 00123 g001
Figure 2. Process of the movement rule. (a) Moore neighborhood and (b) process of application of the rule.
Figure 2. Process of the movement rule. (a) Moore neighborhood and (b) process of application of the rule.
Smartcities 07 00123 g002
Figure 3. Example of the effect of the stagnation rule. (a) Original environment and (b) effect of the rule.
Figure 3. Example of the effect of the stagnation rule. (a) Original environment and (b) effect of the rule.
Smartcities 07 00123 g003
Figure 4. Flowchart of the proposed model.
Figure 4. Flowchart of the proposed model.
Smartcities 07 00123 g004
Figure 5. Fray Antonio Alcalde Hospital environment with 1500 agents.
Figure 5. Fray Antonio Alcalde Hospital environment with 1500 agents.
Smartcities 07 00123 g005
Figure 6. Maze environment with 1000 agents.
Figure 6. Maze environment with 1000 agents.
Smartcities 07 00123 g006aSmartcities 07 00123 g006b
Figure 7. Train station environment with 1500 agents.
Figure 7. Train station environment with 1500 agents.
Smartcities 07 00123 g007aSmartcities 07 00123 g007b
Table 1. Evacuation models proposed in the literature and their main characteristics.
Table 1. Evacuation models proposed in the literature and their main characteristics.
Evacuation ModelMain ElementsReferences
Greenshields ModelUses fluid mechanics principles to represent the movement of people, applied in specific environments.[7]
Pedestrian Continuous Flow ModelsApply fluid mechanics principles to simulate pedestrian movement, widely used in analyzing flow in buildings and public spaces.[8,9,10,11]
Social Force Model (SFM)Focuses on individual interactions with social forces like attraction and repulsion, models collective dynamics.[12]
Cellular Automata Models (CAMs)Discretizes space into cells, simulates movement from one cell to another according to rules, effective for crowd dynamics.[13,14,15]
Dynamic Network ModelsUses network theory to map connections and routes in complex environments.[16,17,18,19]
Pathfinder Evacuation SimulatorSimulates crowd behavior considering exit capacity, movement speed, and individual decisions; visualizing the flow of people.[20]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Islas-Toski, M.; Cuevas, E.; Pérez-Cisneros, M.; Escobar, H. Agent-Based Evacuation Modeling: Enhancing Building Safety in Emergency Scenarios. Smart Cities 2024, 7, 3165-3187. https://doi.org/10.3390/smartcities7060123

AMA Style

Islas-Toski M, Cuevas E, Pérez-Cisneros M, Escobar H. Agent-Based Evacuation Modeling: Enhancing Building Safety in Emergency Scenarios. Smart Cities. 2024; 7(6):3165-3187. https://doi.org/10.3390/smartcities7060123

Chicago/Turabian Style

Islas-Toski, Miguel, Erik Cuevas, Marco Pérez-Cisneros, and Héctor Escobar. 2024. "Agent-Based Evacuation Modeling: Enhancing Building Safety in Emergency Scenarios" Smart Cities 7, no. 6: 3165-3187. https://doi.org/10.3390/smartcities7060123

Article Metrics

Back to TopTop