1. Introduction
1.1. Context and Motivation
Large-scale events (such as music festivals, sporting competitions, and mass gatherings in controlled venues) pose significant operational challenges that go beyond basic crowd control. These events generate high-density scenarios where the efficient management of people, services, and emergency procedures becomes critical to ensuring safety, user experience, and overall operational performance. As urban environments become increasingly complex, these challenges are further amplified by the need to coordinate multiple interconnected systems under dynamic and uncertain conditions.
The problem is inherently complex due to the dynamic and stochastic nature of crowd behavior. Attendee arrivals, movement patterns, and service demand evolve continuously over time, often leading to congestion, long queues, and inefficient use of resources. Furthermore, interactions between individuals and infrastructure introduce nonlinear effects, where small variations in demand or capacity can lead to disproportionate impacts on system performance. Therefore, traditional approaches based on static planning, empirical rules, or post-event analysis are insufficient to capture these dynamics or to support timely and informed decision-making.
A key challenge lies in accurately modeling crowd dynamics within the event environment. This includes the representation of time-dependent arrivals, spatial movement, and interactions with service systems. High-density conditions can lead to critical bottlenecks, reduced mobility, and increased safety risks, especially when service capacity is not properly aligned with demand. Addressing these challenges requires simulation frameworks capable of capturing both individual-level behaviors and system-level emergent phenomena.
Additionally, event management must consider emergency scenarios, where rapid and coordinated evacuation becomes essential. Evaluating evacuation performance under different configurations requires tools capable of representing both infrastructure constraints and collective behavioral responses under stress conditions. This further increases the need for flexible and robust modeling approaches that can support scenario-based analysis.
Recent advances in digital twins, simulation technologies, and artificial intelligence offer new opportunities to address these challenges. In particular, digital twins have evolved from static representations to dynamic, data-driven systems capable of modeling complex urban processes [
1,
2]. When combined with configurable simulation models and intelligent interfaces, these systems enable the exploration of multiple operational scenarios in a flexible and scalable manner. This integration opens the door to interactive, data-driven decision-making frameworks for the planning and management of large-scale events.
1.2. State of the Art
Recent advances in digital twin technologies have demonstrated significant potential for improving the management of large-scale events and complex urban systems. These systems enable the integration of simulation models with real-world data, enhancing situational awareness and supporting data-driven decision-making processes. In particular, digital twins have been applied to model crowd dynamics, urban infrastructures, and event scenarios, allowing planners to evaluate alternative operational strategies under varying conditions.
Early applications of digital twins in crowd management focused on combining virtual representations with data sources to monitor and analyze event dynamics. For example, Villanueva et al. [
3] proposed a framework for managing crowded events through the integration of simulation and sensor data. More broadly, Batty [
1] described the evolution of digital twins from static representations to dynamic computational systems capable of capturing complex socio-urban interactions. However, as highlighted by Bettencourt [
4], significant challenges remain in the validation of these models and in the accurate representation of emergent behaviors in large-scale urban environments.
Recent reviews further emphasize these limitations. Peldon et al. [
2] and Weil et al. [
5] identify key challenges related to data integration, interoperability, scalability, and the lack of standardized architectures for urban digital twins. Although these works demonstrate the growing maturity of the field, most existing approaches remain focused on data-oriented representations, with limited support for dynamic interaction, flexible configuration, and iterative scenario exploration.
In parallel, crowd simulation has been widely studied as a tool for modeling pedestrian dynamics and evaluating infrastructure performance. Agent-based modeling approaches have proven particularly effective in capturing individual behaviors and emergent system dynamics [
6,
7]. These models have been extensively used for evacuation analysis and safety assessment [
8,
9]. However, traditional simulation frameworks are typically based on predefined scenarios and static parameter configurations, which limits their ability to adapt to changing conditions or to support user-driven interactive exploration.
Despite these advances, a critical gap remains in the integration of simulation-based digital twins with accessible and interactive interfaces. Current systems often require technical expertise to configure models and interpret results, which restricts their usability for non-expert stakeholders. In particular, the application of Large Language Models (LLMs) for configuring and interacting with simulation environments through natural language remains largely unexplored in the context of crowd management and urban event planning.
1.3. Identified Gaps
Based on the analysis of the current state of the art, three key gaps can be identified in existing approaches to crowd management and urban digital twins.
(1) Lack of integrated and operational digital twin frameworks: Existing approaches tend to focus either on data-driven monitoring systems or on isolated simulation models, with limited integration between both paradigms. Although digital twins have been proposed as a unifying concept, most implementations remain fragmented, lacking cohesive architectures that combine crowd simulation, service dynamics, and operational analysis within a single configurable and executable framework. This limitation hinders the transition from descriptive models to operational decision-support systems.
(2) Limited accessibility and user-centered interaction: Current simulation and digital twin platforms typically require significant expert knowledge, including familiarity with configuration schemas, programming interfaces, or specialized tools. As a result, their use is largely restricted to technical users, limiting their adoption in real-world planning contexts. Although recent advances in Large Language Models (LLMs) have demonstrated their potential for natural language interaction [
10,
11], their application to the configuration and control of simulation-based digital twins remains largely unexplored in the domain of crowd management.
(3) Limited flexibility and scalability for scenario exploration: Traditional simulation tools are generally based on static configurations and predefined scenarios, which restricts their ability to support iterative and exploratory analysis. In particular, there is a lack of systems that enable dynamic reconfiguration, reproducible execution, and scalable what-if analysis through programmatic interfaces. This limitation constrains the practical applicability of simulation models in time-sensitive and decision-critical environments.
Overall, these gaps highlight the need for digital twin frameworks that are not only accurate in representing system dynamics, but also executable, accessible, and adaptable to dynamic operational requirements.
1.4. Proposed Approach
To address the identified gaps, this work proposes a digital twin framework driven by Generative Artificial Intelligence that integrates simulation, execution, and interaction within a unified, operation-oriented architecture. The approach combines a discrete-time crowd simulation engine, an API-based execution pipeline, and an LLM-based conversational interface, enabling the definition, modification, execution, and analysis of large-scale event scenarios in a dynamic and reproducible manner. By decoupling simulation from user interaction and exposing the full lifecycle through programmatic services, the system advances toward an executable, scalable, and user-centered digital twin model capable of supporting operational planning, resource management, and emergency scenario evaluation in large-scale events.
(1) Simulation-based virtual sensing: The core of the system is a discrete-time crowd simulation engine that models attendee arrivals, movement, and interactions with service systems. The simulator generates spatiotemporal data representing occupancy, density, queue dynamics, and resource utilization, effectively acting as a network of virtual sensors. This virtual sensing layer enables continuous monitoring and analysis of crowd behavior, capturing both individual-level dynamics and system-level emergent phenomena.
(2) API-based execution pipeline: The simulation framework is exposed as an external service through an API-based execution pipeline, enabling programmatic access to the full simulation lifecycle. This includes configuration, validation, execution, and result retrieval. This design supports reproducible and scalable simulation workflows, facilitates integration with external systems, and enables dynamic scenario evaluation through automated what-if analysis. By decoupling system components, the architecture ensures modularity and extensibility, aligning with emerging service-oriented digital twin paradigms.
(3) AI-based conversational configuration interface: To enhance accessibility and usability, a Large Language Model (Gemini 2.5 Flash) provides a natural language interface to interact with the system. The LLM translates user inputs into structured YAML configurations, which are validated and executed through the API-based pipeline. This approach enables non-technical users to define, modify, and execute complex simulation scenarios through intuitive interaction, effectively bridging the gap between human intent and system execution.
By integrating these components, the proposed architecture enables dynamic scenario definition, rapid reconfiguration, and interactive exploration of operational strategies. Unlike traditional simulation frameworks, the system operates as an executable, user-centered digital twin platform, supporting reproducible analysis and informed decision-making in large-scale event management.
1.5. Research Objectives
Based on the identified research gaps and the proposed system architecture, this work pursues three main objectives aimed at advancing the state of the art in digital twin-based crowd management:
Objective 1: Develop a digital twin framework capable of modeling and analyzing crowd dynamics in large-scale event scenarios, capturing both steady-state behavior and critical conditions such as congestion formation and emergency evacuation, taking into account emergent and interaction-driven phenomena.
Objective 2: Design and implement an API-based execution layer that enables dynamic, reproducible, and scalable scenario configuration and simulation, supporting systematic what-if scenario analysis and its integration into operational decision-making workflows.
Objective 3: Enable accessible and user-centered interaction with complex simulation models through the integration of a Large Language Model (LLM), allowing non-technical users to configure, execute, and interpret simulation workflows using natural language.
Overall, these objectives establish a direct link between the limitations identified in existing approaches and the contributions proposed in this work, guiding the system design and ensuring that the experimental validation addresses both technical performance and practical applicability.
1.6. Key Contributions
This paper makes several key contributions to the field of crowd management and digital twin systems. First, it proposes an operational digital twin framework for crowd management that unifies simulation-based virtual sensing, service system modeling, and operational analysis within a single configurable and executable platform tailored to large-scale event scenarios. In addition, the paper introduces an API-based execution paradigm that exposes the complete simulation lifecycle (including configuration, validation, execution, and result retrieval) through programmatic interfaces. This approach enables reproducible, modular, and scalable simulation workflows while supporting systematic what-if scenario analysis.
Another important contribution is the integration of a Large Language Model (Gemini 2.5 Flash) as a conversational interface, allowing users to configure, execute, and interpret simulation scenarios using natural language. This significantly lowers the technical barrier for non-expert users and improves the accessibility of complex simulation environments. Furthermore, the proposed framework incorporates a discrete-time crowd simulation engine capable of representing stochastic arrivals, mobility patterns, service interactions, and queue dynamics. The model also includes realistic behavioral mechanisms such as balking and reneging, enabling the analysis of both steady-state operations and critical crowd conditions.
The framework additionally supports dynamic scenario analysis and emergency evaluation, including evacuation modeling under different operational and emergency conditions. This flexibility allows decision-makers to assess system performance across a wide range of what-if situations. Finally, the feasibility and robustness of the proposed approach are demonstrated through the implementation and validation of a TRL-4 prototype, providing quantitative evidence of system performance, scalability, and interaction reliability.
The remainder of this paper is structured as follows. Section 2 presents the materials and methods, including the system architecture, the simulation engine, and the LLM-based configuration interface. Section 3 presents the experimental results and performance evaluation. Section 4 discusses the implications of the proposed approach, its limitations, and possible extensions. Finally, Section 5 concludes the paper and outlines future research directions.