A large-scale crowd motion simulation method, device, and storage medium

By receiving user input data in large-scale crowd movement simulation technology, establishing an underlying model and processing agent position information, it solves the complex problem of pedestrian route modification in the existing technology, realizes route parameterization and data processing, and improves simulation efficiency. and flexibility.

CN115034056BActive Publication Date: 2024-09-20BEIJING INST OF TECH
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202210626453.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-02
Publication Date
2024-09-20
Estimated Expiration
2042-06-02

AI Technical Summary

Technical Problem

In the existing large-scale crowd movement simulation technology, the model of the pedestrian walking path is not parameterized, resulting in the need to reset all agent routes and modify a large number of high-coupling codes every time the solution is modified, resulting in inflexible simulation, low efficiency, and waste of resources. .

Method used

Through the front-end, the user receives basic data input, establishes the underlying model and generates agents, determines whether the batch of agents has reached the designated node, records relevant data, and generates statistical data, including pedestrian position coordinates and occupancy rate change curves, to realize route parameterization and Data processing to improve simulation efficiency.

Benefits of technology

It realizes the parameterization of different starting points, destinations, and directional routes in pedestrian simulation, reduces the need for underlying model reconstruction, improves simulation efficiency and flexibility, and reduces the complexity of modifying the code.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115034056B
    Figure CN115034056B
Patent Text Reader

Abstract

The present application discloses a large-scale crowd motion simulation method, device, and storage medium, the method comprising: receiving basic data input by a user through a front end, and storing the basic data in a database; establishing an underlying model according to a specific scenario through a simulation model, and reading the basic data to generate all intelligent agents; judging whether each batch of intelligent agents among all intelligent agents has reached the batch seating time, and if not, hiding the batch intelligent agents; if so, judging whether the batch intelligent agents have arrived at a designated node based on the position information of the batch intelligent agents, and if they have arrived at the designated node, recording first relevant data of the batch intelligent agents; the first relevant data includes the number of people arriving at a second designated node, the arrival time of pedestrians, and the position information; performing data processing on the first relevant data, generating and outputting statistical data, and the statistical data includes the position coordinates of pedestrians and the seating rate change curve.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of simulation technology, and in particular to a method, device, and storage medium for large-scale crowd motion simulation. Background Art

[0002] Large-scale crowd motion simulation technology refers to the study of the movement characteristics and related laws of crowds in various environments and specific scenarios, the establishment of a simulation model of large-scale crowd motion, and the realistic display of the movement process of large-scale crowds in the form of digital media in a computer-generated space (virtual environment).

[0003] Relevant research has been conducted on the simulation technology of large-scale activity complex systems, and the relevant research has systematically revealed the complex characteristics and cognitive laws of crowd behavior in large-scale activity complex systems.

[0004] However, there is currently no model that can parameterize pedestrian walking paths. In large-scale activity complex system simulation models, the walking path of each intelligent agent is set individually before simulation. This means that every change in the plan requires all intelligent agents to be rerouted and the relevant intelligent agents to be re-imported. Every change requires modifying a large amount of highly coupled code. Summary of the invention

[0005] The present application provides a large-scale crowd motion simulation method, device, and storage medium, which solves the technical problems of inflexible simulation, low efficiency, waste of time and resources, etc. caused by the need to modify a large amount of highly coupled codes each time during simulation.

[0006] A large-scale crowd motion simulation method, comprising:

[0007] Receive basic data input by the user through the front end, and store the basic data in the database;

[0008] Establishing the underlying model according to the specific scenario through the simulation model, and reading the basic data to generate all intelligent agents;

[0009] Determine whether each batch of intelligent agents among all the intelligent agents has reached the batch seating time, and if not, hide the batch of intelligent agents;

[0010] If yes, judging whether the batch of intelligent agents has arrived at the designated node according to the location information of the batch of intelligent agents, and if it has arrived at the designated node, recording the first relevant data of the batch of intelligent agents; the first relevant data includes the number of people who have arrived at the second designated node, the arrival time of the pedestrians, and the location information;

[0011] The first relevant data is processed to generate and output statistical data, wherein the statistical data includes the position coordinates of pedestrians and an occupancy rate variation curve.

[0012] In one embodiment of the present application, the basic data input by the user is received through the front end, and the basic data is stored in the database, specifically including: receiving the basic data input by the user through the front end, wherein the basic data includes at least one of the following: basic model parameters, wave data table, drop-off point data table, security check point data table, drop-off point to security check point data table, security check point to designated area data table; generating a CSV file according to the basic data, and reading the first data in the CSV file through the simulation model; storing the read first data in different types of tables in the database according to different types of the first data, and the different types of tables include batch tables and path tables.

[0013] In one embodiment of the present application, the establishing of the underlying model according to the specific scene specifically includes: obtaining second relevant data of the specific scene, and generating a bird's-eye view according to the second relevant data; wherein the second relevant data includes: detailed data of road width, stand shape, number of roads, and all small obstacles in the road; obtaining road intersections in the specific scene as intersection nodes, and establishing a first target area according to the intersection nodes; obtaining roads with specified tortuosity in the specific scene, and establishing a second target area according to the roads with specified tortuosity; and combining the bird's-eye view, the first target area, and the second target area to generate the underlying model of the specific scene.

[0014] In one embodiment of the present application, the method also includes: determining path data based on the target area in the underlying model; storing the path data through string data of different lengths; determining the string data corresponding to the single agent based on the single agent; determining whether the single agent has reached the end of the path, and if not, looping through the string data.

[0015] In one embodiment of the present application, judging whether the batch agent has reached the designated node according to the position information of the batch agent specifically includes: when the batch agent among all the agents reaches the batch seating time, releasing the batch agent, judging whether the batch agent has reached the first designated node according to the first path table in the database and the position information of the batch agent; if reaching the first designated node, judging whether the batch agent has reached the second designated node according to the second path table in the database and the position information of the batch agent.

[0016] In one embodiment of the present application, the data processing of the first relevant data to generate and output statistical data specifically includes: the designated node includes a stand area; determining a moment when an intelligent agent exists in the stand area, and recording the number of intelligent agents seated in the stand area from the moment; dividing the number of seated intelligent agents by the total number of people in the stand area to obtain the occupancy rate at the current moment; establishing a plane coordinate system with time as the horizontal axis attribute and the occupancy rate as the vertical axis attribute to determine the occupancy rate change curve of the stand area.

[0017] In one embodiment of the present application, the data processing of the first relevant data to generate and output statistical data specifically includes: determining a time period for reading the intelligent agent position coordinates; reading the intelligent agent position coordinates according to the time period and storing the intelligent agent position coordinates in a simulation model; periodically reading the intelligent agent position coordinates in the simulation model through a specified function, and outputting the intelligent agent position coordinates to a CSV file.

[0018] In one embodiment of the present application, before reading the basic data to generate all intelligent agents, the method further includes: a simulation model obtains batch data from a batch table in the database and stores it in a batch class.

[0019] A large-scale crowd motion simulation device, comprising:

[0020] at least one processor; and,

[0021] a memory communicatively connected to the at least one processor; wherein,

[0022] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to cause the at least one processor to execute:

[0023] Receive basic data input by the user through the front end, and store the basic data in the database;

[0024] Establishing the underlying model according to the specific scenario through the simulation model, and reading the basic data to generate all intelligent agents;

[0025] Determine whether each batch of intelligent agents among all the intelligent agents has reached the batch seating time, and if not, hide the batch of intelligent agents;

[0026] If yes, judging whether the batch of intelligent agents has arrived at the designated node according to the location information of the batch of intelligent agents, and if it has arrived at the designated node, recording the first relevant data of the batch of intelligent agents; the first relevant data includes the number of people who have arrived at the second designated node, the arrival time of the pedestrians, and the location information;

[0027] The first relevant data is processed to generate and output statistical data, wherein the statistical data includes the position coordinates of pedestrians and an occupancy rate variation curve.

[0028] A non-volatile storage medium stores computer executable instructions, wherein the computer executable instructions are executed by a processor to implement the following steps:

[0029] Receive basic data input by the user through the front end, and store the basic data in the database;

[0030] Establishing the underlying model according to the specific scenario through the simulation model, and reading the basic data to generate all intelligent agents;

[0031] Determine whether each batch of intelligent agents among all the intelligent agents has reached the batch seating time, and if not, hide the batch of intelligent agents;

[0032] If yes, judging whether the batch of intelligent agents has arrived at the designated node according to the location information of the batch of intelligent agents, and if it has arrived at the designated node, recording the first relevant data of the batch of intelligent agents; the first relevant data includes the number of people who have arrived at the second designated node, the arrival time of the pedestrians, and the location information;

[0033] The first relevant data is processed to generate and output statistical data, wherein the statistical data includes the position coordinates of pedestrians and an occupancy rate variation curve.

[0034] The present application provides a large-scale crowd motion simulation method, device, and storage medium, which at least have the following beneficial effects:

[0035] By inputting the time, number of people and location related information of the batch at the front end, the parameterization of routes with different starting points, different destinations, different lengths and different directions in pedestrian simulation is realized. That is, after modifying the route plan, the simulation bottom layer does not need to be remodeled, and the same batch, that is, pedestrian agents with the same parameters, can be input together. By using the three layers of data input layer, simulation layer and data output layer, the simulation model is systematized, and relatively mature front-end input data can be used without a lot of manpower for modification. By establishing a sophisticated underlying model, all possible routes on site are taken into account, allowing users to change routes at will to the greatest extent possible, and after the simulation plan route is changed, there is no need to modify all the underlying models, which greatly improves the simulation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0037] Figure 1 A schematic diagram of a large-scale crowd motion simulation method, device, and storage medium provided in an embodiment of the present application;

[0038] Figure 2 A schematic diagram of the simulation system architecture provided in an embodiment of the present application;

[0039] Figure 3 A schematic diagram of a crowd gathering and evacuation simulation process based on data-driven provided in an embodiment of the present application;

[0040] Figure 4 A schematic diagram of a large-scale crowd motion simulation device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0041] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be described clearly and completely in conjunction with the specific embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0042] The simulation system provided by the present application can simulate crowd activities in relevant large-scale scenes by inputting multiple crowd batch drop-off points, security checkpoints, assembly points and crowd walking routes in real time. Before the scene starts, the time of crowd appearance, the number of people and the assembly point can be input through the front end, and the route from the assembly point to the corresponding destination can be selected. The path may include other related facilities such as security checkpoints. During the scene operation, the statistical data of the positions of all pedestrians (intelligent bodies) and the relevant seating rates on the scene can be output in real time. After the scene ends, the time when each area is fully seated and the change curve of the entire seating can be output. The system designed by the present application can parameterize the input of the arrival time of the crowd, the number of people, and especially the pedestrian forward path. The user can use different inputs from the front end in real time to simulate different situations on the scene, which can almost cope with all changes in the activity plan and improve the simulation efficiency. The following is a detailed description.

[0043] Figure 1 A schematic diagram of a large-scale crowd motion simulation method, device, and storage medium provided in an embodiment of the present application may include the following steps:

[0044] S110: receiving basic data input by the user through the front end, and storing the basic data in a database.

[0045] In one embodiment of the present application, basic data input by a user is received through the front end, wherein the basic data includes at least one of the following: basic model parameters, a wave data table, a drop-off point data table, a security check point data table, a drop-off point to security check point data table, and a security check point to designated area data table; a CSV file is generated according to the basic data, and the first data in the CSV file is read through the simulation model; the read first data is stored in different types of tables in the database according to different types of the first data, and the different types of tables include batch tables and path tables.

[0046] Specifically, Figure 2 As shown, the system architecture proposed in this application includes three parts, namely, the front-end input layer, the behavior simulation layer, and the data output layer.

[0047] First, the user inputs the basic data of the intelligent agent in the front-end application of the data input layer to provide a data basis for the simulation model. The front-end input layer is developed using electron. Users can enter basic data into the MySQL database, and the simulation layer will extract data from the database and perform simulation. The input data includes six basic data tables, namely basic model parameter configuration, wave data table configuration, drop-off point data table configuration, security check point data table configuration, drop-off point to security check point data table configuration, and security check point to designated area data table configuration.

[0048] Basic model parameter configuration: a) Test wave: You can select the wave that exists in the activity plan. b) Initial speed: You can enter the range of the initial speed of the personnel. c) Comfort speed: You can enter the range of the pedestrian's comfortable speed, that is, the pedestrian's walking speed without influence. d) Recording point interval: Enter the time interval for the simulation model to store all pedestrian positions. e) Write CSV time interval: Enter the time interval for the simulation model to output data. f) Number of people generated: Enter the total number of people generated by this model.

[0049] Wave data table configuration: a): You can enter the wave number to get the relevant wave information and modify it. b) Arrival time: Enter the arrival time of the current wave. c) Number of people: Enter the number of people arriving in the wave. d) Drop-off point: Enter the drop-off point of the wave. e) Stand area number: Enter the stand area number where the wave arrives, for example, 1-48. f) Security checkpoint: Enter the security checkpoint that the wave needs to arrive at. g) Number of people: You can enter the maximum number of people that the security checkpoint can carry. Add, delete, modify and query can be done: A wave information can be written into the data table. You can view a preview page of all waves, and you can remove unnecessary wave information from the database. Provide a preview page of all waves, and you can modify the wave information that has been written. You can find all waves that meet the conditions by selecting a specific column in the database and entering query information.

[0050] Configuration of the drop-off to security check data table: You can enter the relevant paths from different drop-off points to different security checkpoints, and can add, delete, modify and query: You can write a plan information into the path data table. You can view a preview page of all plans, and you can remove unnecessary plan information from the database. You can view a preview page of all plans, and you can modify the plan information that has been written. You can find all plans that meet the conditions by selecting a specific column in the database and entering the query information.

[0051] Security checkpoint to designated area data table configuration: You can enter the relevant paths from different security checkpoints to different designated areas, and you can also add, delete, modify and check.

[0052] Drop-off point data table configuration, security check point data table configuration: you can enter the corresponding number of the relevant security checkpoint for use in other data tables.

[0053] After the system starts running, enter the above basic data on the front-end interface, such as: number of waves, comfortable speed, recording point interval, time interval for writing CSV, number of people generated, and then enter the sequence number of each wave and configure the relevant information of each wave, arrival time, number of waves, wave drop-off point, wave arrival stand area number, wave arrival security check point and enter the routes from different drop-off points to the security check gate and the path to the arrival area and other data.

[0054] After the input is completed, the input basic data is integrated into the CSV file and the anylogic pedestrian simulation model is started. The simulation model obtains the basic data in the CSV file and inputs the basic data into the database, where the wave-related information is stored in the batch table and the route is input into the path table.

[0055] S120: Establish the underlying model according to the specific scenario through the simulation model, and read the basic data to generate all intelligent agents.

[0056] In one embodiment of the present application, second relevant data of a specific scene is obtained, and a bird's-eye view is generated based on the second relevant data; wherein the second relevant data include: detailed data of road width, stand shape, number of roads, and all small obstacles in the road; road intersections in the specific scene are obtained as intersection nodes, and a first target area is established based on the intersection nodes; roads with specified tortuosity in the specific scene are obtained, and a second target area is established based on the roads with specified tortuosity; the bird's-eye view, the first target area, and the second target area are combined to generate an underlying model of the specific scene.

[0057] Specifically, the behavior simulation layer includes two modules, namely, underlying modeling and behavior logic.

[0058] Bottom-level modeling: Obtain the second relevant data of specific scenes from the real world, such as subway stations, airports and other large public facilities, and generate a bird's-eye view, obtain detailed data including road width, stand shape, number of roads, and all small obstacles, and achieve a one-to-one restoration of obstacles in the virtual world and obstacles in the real world. Take each intersection as a node, and model the first target area (or first target line) for each intersection, so that the front-end interface can freely select the path for pedestrian batches to reach the stands. Model the second target area (or second target line) on a road with a certain degree of tortuosity without an intersection, so that the crowd can pass through the road reasonably. In order to optimize the performance of the simulation model, the security checkpoint, behavior logic, data output and other related modules are edited using other agents (non-pedestrian agents).

[0059] Behavior logic: refers to the establishment of behavioral logic in all simulations of pedestrians. Before generating pedestrian agents, the simulation model obtains batch data from the batch table in the database and stores it in the batch class. Then, data is obtained from the batch class and all pedestrian agents are generated, and then batches that have not arrived are hidden. Among them, the generated agents include: the departure time of the pedestrian, the corresponding security checkpoint serial number, the path to the security checkpoint, the corresponding area number, and the path to the area.

[0060] In one embodiment of the present application, path data is determined based on the target area in the underlying model; the path data is stored through character string data of varying lengths; the character string data corresponding to a single agent is determined based on the single agent; it is determined whether the single agent has reached the end of the path, and if not, the character string data is traversed in a loop.

[0061] Specifically, the road parameterization is set, that is, the user can freely set the pedestrian walking path. All target lines and target areas are stored in a set and numbered, the input path data is stored in a string data of varying lengths, and then the path data of the agent is stored in a single agent. The target number stored in the agent is used as the agent target in the logic, and the string is looped before the string reaches the end point, where each character represents a target area (also called a target point), so that path selection of indefinite length, indefinite direction, and indefinite distance can be achieved.

[0062] In order to optimize the model performance, when the pedestrian agent reaches the final target area, such as the security checkpoint or the stand area, it will directly use in to move out of the model for the relevant agents, perform relevant operations in other agents, and then use out again to exit the relevant agents and then perform the main agent.

[0063] S130: Determine whether each batch of intelligent agents among all intelligent agents has reached the batch seating time. If not, hide the batch intelligent agents.

[0064] Specifically, in order to make the interface display and logic more orderly, it is determined which batch of agents or batches of agents among all generated agents have reached the seating time. Only after they have arrived will they be displayed in the simulation interface. Otherwise, the agents that have not reached the seating time will be hidden to improve simulation efficiency and user experience.

[0065] S140:

[0066] If so, determine whether the batch intelligent body has arrived at the designated node based on the position information of the batch intelligent body. If it has arrived at the designated node, record the first relevant data of the batch intelligent body; the first relevant data includes the number of people who have arrived at the second designated node, the arrival time of the pedestrians, and the position information.

[0067] In one embodiment of the present application, when a batch of agents among all agents reaches the batch seating time, the batch of agents is released, and it is determined whether the batch of agents has reached the first designated node according to the first path table in the database and the position information of the batch of agents; if the batch of agents has reached the first designated node, it is determined whether the batch of agents has reached the second designated node according to the second path table in the database and the position information of the batch of agents. After reaching the second designated node, the first relevant data of the agents is recorded, and the first relevant data includes the number of people who have reached the second designated node, the arrival time of pedestrians, the position information, etc.

[0068] For example, when pedestrians arrive at the airport by taking the airport bus, it means that the group of pedestrians (batch of intelligent agents) has arrived at the time to take their seats. At this time, the batch of intelligent agents can be released, that is, displayed on the simulation interface. Each pedestrian has his own path to take. The system stores the location information of each pedestrian according to the preset time difference. When it is determined according to the first path table in the database that any one of the pedestrians in the batch has arrived at the first designated node (which may be a security checkpoint, etc.), it is determined according to the second path table in the database and the location information of each pedestrian whether any one of the pedestrians in the batch has arrived at the second designated node (which may be a waiting area, a grandstand area, etc.).

[0069] S150: Process the first relevant data to generate and output statistical data, where the statistical data includes the position coordinates of pedestrians and an occupancy rate variation curve.

[0070] Specifically, the data output layer mainly needs to output two types of statistical data. The first is to output the position coordinates of all pedestrians at regular intervals, and the second is the occupancy rate change curve of each stand area.

[0071] In one embodiment of the present application, the designated node includes a stand area; the time when an intelligent agent exists in the stand area is determined, and the number of intelligent agents seated in the stand area is recorded starting from the time; the number of seated intelligent agents is divided by the total number of people in the stand area to obtain the occupancy rate at the current time; a plane coordinate system is established with time as the horizontal axis attribute and the occupancy rate as the vertical axis attribute to determine the occupancy rate change curve of the stand area.

[0072] Specifically, when no pedestrians arrive in the stand area, there is no need to record the occupancy rate of the stand area. When any agent arrives at the stand area, the time is recorded uniformly and the number of pedestrians in the current stand is determined. If the current agent is the first to arrive at the stand, the change in the number of people in the current area is recorded and the time is recorded. If the current agent is not the first to arrive at the stand, the number of people is increased. Finally, after the model is completed, the number of people is divided by the last number of people in the stand area to obtain the occupancy rate change curve of all stand areas.

[0073] In one embodiment of the present application, a time period for reading the agent position coordinates is determined; the agent position coordinates are read according to the time period and stored in a simulation model; the agent position coordinates in the simulation model are periodically read by a specified function, and the agent position coordinates are output to a CSV file.

[0074] Specifically, since the number of pedestrians is of a certain scale, outputting the coordinates of all pedestrians in each frame will greatly waste time and hardware resources. Therefore, the Data Recorder agent is used to store the coordinates of pedestrians for a period of time in the simulation model, and then the recordtoCSV function is used to periodically output the data to a CSV file.

[0075] like Figure 3 The figure shows a data-driven crowd gathering and evacuation simulation process diagram. After the system starts running, basic data is input into the front-end interface.

[0076] After the input is completed, the data is exported to a CSV file and the anylogic pedestrian simulation model is started. The model obtains the data in the file and inputs the data into the database, where the wave-related information is stored in the batch table and the route is input into the path table.

[0077] After the model is started, the batch table wave information is read and all agents are generated. When generating a single agent, the corresponding path data in the path table is obtained and input into each agent. After all agents are generated, all agents are hidden and the simulation starts.

[0078] When the wave reaches the release time, the agent is released and the location information of each agent is stored and output according to the specified time difference. When the first agent arrives at the area, the number of people arriving in the area and the time are recorded.

[0079] After the simulation is completed, the CSV file such as the regional population change curve is output with time as the horizontal axis.

[0080] The above is a large-scale crowd motion simulation method provided by the embodiment of the present application. Based on the same inventive idea, the embodiment of the present application also provides a corresponding large-scale crowd motion simulation device, such as Figure 4 As shown, including:

[0081] at least one processor 401; and,

[0082] A memory 402 is communicatively connected to at least one processor 401 via a bus 403; wherein the memory 402 stores instructions executable by at least one processor, and the instructions are executed by at least one processor 401 so that at least one processor 401 can execute:

[0083] Receive basic data input by users through the front end and store the basic data in the database;

[0084] Through the simulation model, the underlying model is established according to the specific scenario, and the basic data is read to generate all intelligent agents;

[0085] Determine whether each batch of intelligent agents among all intelligent agents has reached the batch seating time. If not, hide the batch intelligent agents;

[0086] If yes, judging whether the batch intelligent body has arrived at the designated node according to the position information of the batch intelligent body, and if it has arrived at the designated node, recording the first relevant data of the batch intelligent body; the first relevant data includes the number of people who have arrived at the second designated node, the arrival time of the pedestrians, and the position information;

[0087] The first relevant data is processed to generate and output statistical data, where the statistical data includes the position coordinates of pedestrians and an occupancy rate variation curve.

[0088] Based on the same idea, some embodiments of the present application also provide a medium corresponding to the above method.

[0089] Some embodiments of the present application provide a storage medium storing computer executable instructions, which are executed by a processor to implement the following steps:

[0090] Receive basic data input by users through the front end and store the basic data in the database;

[0091] Through the simulation model, the underlying model is established according to the specific scenario, and the basic data is read to generate all intelligent agents;

[0092] Determine whether each batch of intelligent agents among all intelligent agents has reached the batch seating time. If not, hide the batch intelligent agents;

[0093] If yes, judging whether the batch intelligent body has arrived at the designated node according to the position information of the batch intelligent body, and if it has arrived at the designated node, recording the first relevant data of the batch intelligent body; the first relevant data includes the number of people who have arrived at the second designated node, the arrival time of the pedestrians, and the position information;

[0094] The first relevant data is processed to generate and output statistical data, where the statistical data includes the position coordinates of pedestrians and an occupancy rate variation curve.

[0095] Each embodiment in this application is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the method and medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0096] The methods and media provided in the embodiments of the present application correspond one-to-one to the method, and therefore, the methods and media also have similar beneficial technical effects as the corresponding methods. Since the beneficial technical effects of the methods have been described in detail above, the beneficial technical effects of the methods and media will not be repeated here.

[0097] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or method including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or method. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or method including the elements.

[0098] The above are only embodiments of the present application and are not intended to limit the present application. Although the present application has been described in detail above with general descriptions and specific implementation schemes, some modifications or improvements may be made on the basis of the present application, which is obvious to those skilled in the art. Therefore, these modifications or improvements made on the basis of not departing from the spirit of the present application all belong to the scope of protection claimed in the present application.

Claims

1. A large-scale crowd motion simulation method, characterized in that: include: Receive basic data input by the user through the front end, and store the basic data in the database; Establishing the underlying model according to the specific scenario through the simulation model, and reading the basic data to generate all intelligent agents; Determine whether each batch of intelligent agents among all the intelligent agents has reached the batch seating time, and if not, hide the batch of intelligent agents; If yes, judging whether the batch of intelligent agents has arrived at the designated node according to the location information of the batch of intelligent agents, and if it has arrived at the designated node, recording the first relevant data of the batch of intelligent agents; the first relevant data includes the number of people who have arrived at the second designated node, the arrival time of the pedestrians, and the location information; Processing the first relevant data to generate and output statistical data, wherein the statistical data includes the position coordinates of pedestrians and an occupancy rate change curve; The receiving basic data input by the user through the front end and storing the basic data in the database specifically includes: receiving basic data input by the user through the front end, wherein the basic data includes at least one of the following: basic model parameters, wave data table, drop-off point data table, security check point data table, drop-off point to security check point data table, security check point to designated area data table; generating a CSV file according to the basic data, and reading the first data in the CSV file through the simulation model; storing the read first data in different types of tables in the database according to different types of the first data, and the different types of tables include batch tables and path tables; The method of establishing an underlying model according to a specific scene specifically includes: obtaining second relevant data of the specific scene, and generating a bird's-eye view according to the second relevant data; wherein the second relevant data includes: detailed data of road width, stand shape, number of roads, and all small obstacles in the road; obtaining road intersections in the specific scene as intersection nodes, and establishing a first target area according to the intersection nodes; obtaining roads with specified tortuosity in the specific scene, and establishing a second target area according to the roads with specified tortuosity; and combining the bird's-eye view, the first target area, and the second target area to generate the underlying model of the specific scene.

2. The method according to claim 1, characterized in that The method further comprises: Determining path data according to the target area in the underlying model; The path data is stored via character string data of varying lengths; Determine, according to a single agent, the string data corresponding to the single agent; Determine whether the single agent has reached the end of the path, and if not, loop through the string data.

3. The method according to claim 1, characterized in that The step of judging whether the batch of intelligent agents has reached the designated node according to the position information of the batch of intelligent agents specifically includes: when the batch of intelligent agents among all the intelligent agents reaches the batch seating time, releasing the batch of intelligent agents, and judging whether the batch of intelligent agents has reached the first designated node according to the first path table in the database and the position information of the batch of intelligent agents; If the first designated node is reached, it is determined whether the batch agent has reached the second designated node according to the second path table in the database and the position information of the batch agent.

4. The method according to claim 1, characterized in that: The performing data processing on the first relevant data to generate and output statistical data specifically includes: The designated node includes a grandstand area; Determine the time when the agent exists in the stand area, and record the number of agents seated in the stand area from the time; Divide the number of agents seated in the seats by the total number of people in the stand area to obtain the current occupancy rate; A plane coordinate system is established, with time as the horizontal axis attribute and the occupancy rate as the vertical axis attribute, to determine the occupancy rate variation curve of the stand area.

5. The method according to claim 1, characterized in that The performing data processing on the first relevant data to generate and output statistical data specifically includes: Determine the time period for reading the position coordinates of the agent; Reading the position coordinates of the agent according to the time period and storing the position coordinates of the agent in the simulation model; The position coordinates of the agent in the simulation model are periodically read by a specified function, and the position coordinates of the agent are output to a CSV file.

6. The method according to claim 1, characterized in that Before reading the basic data to generate all intelligent agents, the method further includes: The simulation model obtains batch data from the batch table of the database and stores it in the batch class.

7. A large-scale crowd motion simulation device, characterized in that: include: at least one processor; as well as, a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to cause the at least one processor to execute: Receive basic data input by the user through the front end, and store the basic data in the database; Establishing the underlying model according to the specific scenario through the simulation model, and reading the basic data to generate all intelligent agents; Determine whether each batch of intelligent agents among all the intelligent agents has reached the batch seating time, and if not, hide the batch of intelligent agents; If yes, judging whether the batch of intelligent agents has arrived at the designated node according to the location information of the batch of intelligent agents, and if it has arrived at the designated node, recording the first relevant data of the batch of intelligent agents; the first relevant data includes the number of people who have arrived at the second designated node, the arrival time of the pedestrians, and the location information; Processing the first relevant data to generate and output statistical data, wherein the statistical data includes the position coordinates of pedestrians and an occupancy rate change curve; The receiving basic data input by the user through the front end and storing the basic data in the database specifically includes: receiving basic data input by the user through the front end, wherein the basic data includes at least one of the following: basic model parameters, wave data table, drop-off point data table, security check point data table, drop-off point to security check point data table, security check point to designated area data table; generating a CSV file according to the basic data, and reading the first data in the CSV file through the simulation model; storing the read first data in different types of tables in the database according to different types of the first data, and the different types of tables include batch tables and path tables; The method of establishing an underlying model according to a specific scene specifically includes: obtaining second relevant data of the specific scene, and generating a bird's-eye view according to the second relevant data; wherein the second relevant data includes: detailed data of road width, stand shape, number of roads, and all small obstacles in the road; obtaining road intersections in the specific scene as intersection nodes, and establishing a first target area according to the intersection nodes; obtaining roads with specified tortuosity in the specific scene, and establishing a second target area according to the roads with specified tortuosity; and combining the bird's-eye view, the first target area, and the second target area to generate the underlying model of the specific scene.

8. A non-volatile storage medium storing computer executable instructions, characterized in that: The computer executable instructions are executed by a processor to implement the following steps: Receive basic data input by the user through the front end, and store the basic data in the database; Establishing the underlying model according to the specific scenario through the simulation model, and reading the basic data to generate all intelligent agents; Determine whether each batch of intelligent agents among all the intelligent agents has reached the batch seating time, and if not, hide the batch of intelligent agents; If yes, judging whether the batch of intelligent agents has arrived at the designated node according to the location information of the batch of intelligent agents, and if it has arrived at the designated node, recording the first relevant data of the batch of intelligent agents; the first relevant data includes the number of people who have arrived at the second designated node, the arrival time of the pedestrians, and the location information; Processing the first relevant data to generate and output statistical data, wherein the statistical data includes the position coordinates of pedestrians and an occupancy rate change curve; The receiving basic data input by the user through the front end and storing the basic data in the database specifically includes: receiving basic data input by the user through the front end, wherein the basic data includes at least one of the following: basic model parameters, wave data table, drop-off point data table, security check point data table, drop-off point to security check point data table, security check point to designated area data table; generating a CSV file according to the basic data, and reading the first data in the CSV file through the simulation model; storing the read first data in different types of tables in the database according to different types of the first data, and the different types of tables include batch tables and path tables; The method of establishing an underlying model according to a specific scene specifically includes: obtaining second relevant data of the specific scene, and generating a bird's-eye view according to the second relevant data; wherein the second relevant data includes: detailed data of road width, stand shape, number of roads, and all small obstacles in the road; obtaining road intersections in the specific scene as intersection nodes, and establishing a first target area according to the intersection nodes; obtaining roads with specified tortuosity in the specific scene, and establishing a second target area according to the roads with specified tortuosity; and combining the bird's-eye view, the first target area, and the second target area to generate the underlying model of the specific scene.

Citation Information

Patent Citations

  • Large-scale crowd behavior evolution analysis method based on Map-Reduce and multi-agent models

    CN105787180A

  • A crowd evacuation simulation method and system based on multi-agent deep reinforcement learning

    CN109670270A

  • Crowd evacuation simulation method and system based on deep reinforcement learning algorithm

    CN112231968A

  • Parallel smart emergency collaboration method and system, and electronic device

    WO2021073046A1