Risk management and control assessment method and system based on crowd simulation
By acquiring global population distribution information of the target area, generating individual simulated trajectories using GCN, GRU, and deconvolution models, and combining them with social force models for risk assessment, this approach solves the problem of individual heterogeneity not being considered in existing technologies, and achieves more accurate risk assessment and intervention effect analysis.
Patent Information
- Application Number
- CN202110706536.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-24
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2041-06-24
AI Technical Summary
Existing risk assessment models fail to adequately consider individual heterogeneity, making it difficult to reflect actual risk situations.
By acquiring global population distribution information of the target area, individual simulated trajectories are generated. Population distribution is completed using graph convolutional neural networks (GCN), gated recurrent units (GRU), and deconvolution models. Pedestrian movement trajectories are generated in combination with social force models to conduct individual-level risk assessment.
It enables more accurate risk assessment, reflects the true risk situation, and supports quantitative analysis of various intervention measures.
Smart Images

Figure CN115526440B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of population risk assessment technology in indoor areas, and more specifically, to a risk management assessment method and system based on population simulation. Background Technology
[0002] As the potential risks in public places gradually increase, risk assessment and management simulation for public places has become a hot technology. Through pre-simulation, the effectiveness of different risk management measures can be evaluated in public places, providing important references for public policy formulation. For example, in indoor scenarios where people gather, such as airports, train stations, and hospitals, relevant risk assessments may be necessary, specifically including the risk of disease transmission, the risk of overcrowding in public places, and the analysis of customer flow and profitability risks in shopping malls.
[0003] Taking the risk of disease transmission as an example, indoor settings may contain sources of infection, such as sick individuals, contaminated seats, and air. Healthy individuals in these settings are all at risk of transmission. To facilitate the management of transmission risks in indoor settings and to develop appropriate control measures, a quantitative analysis of these risks is necessary.
[0004] Existing infectious disease risk assessment models are based on the Susceptible-Exposed-Infectious-Recovered (SEIR) model. The traditional SEIR model assumes uniform mixing and contact within a specific region and does not consider population migration. This model ignores the heterogeneity of individual contact, resulting in only a coarse assessment of risk. To make the traditional SEIR model reflect real-world data trends, additional parameters are needed to describe factors such as population age distribution and activity levels, leading to complex designs that may not accurately reflect reality.
[0005] Specifically, the modified SEIR model proposed in the literature Hou, C, Chen, J, Zhou, Y, et al. The effectiveness of quarantine of Wuhan city against the Corona Virus Disease 2019 (COVID-19): Awell-mixed SEIR model analysis. J Med Virol. 2020; 92:841–848. considers the transmission status of infected individuals and asymptomatic infected individuals separately, but this model still does not take into account more detailed population information and population mobility.
[0006] The SIR-X model proposed in Maier, BF & Brockmann, D. Effective containment explains subexponential growth in recent confirmed COVID-19 cases in China. Science 368, 742–746 (2020). The improved model using the PSO algorithm to estimate SEIR parameters, proposed in He, S., Peng, Y. & Sun, K. SEIR modeling of the COVID-19 and its dynamics. Nonlinear Dyn 101, 1667–1680 (2020), while considering the impact of strategies (isolation and treatment, etc.) on epidemic spread, still assumes uniform population mixing and contact, neglecting individual differences.
[0007] The Time-Dependent SIR model proposed in the literature Y.-C. Chen, P.-E. Lu, C.-S. Chang and T.-H. Liu, "A Time-Dependent SIR Model for COVID-19 With Undetectable Infected Persons," in IEEE Transactions on Network Science and Engineering, vol. 7, no. 4, pp. 3279-3294, 1 Oct.-Dec. 2020, doi:10.1109 / TNSE.2020.3024723, based on the SIR model and the Individual Cascade (IC) model, although considering the impact of undetected populations and social distancing on the spread of the epidemic, does not fully examine population information and the heterogeneity of individual contact.
[0008] The literature Chang, S., Pierson, E., Koh, P. Wet et al. Mobility network models of COVID-19 explain inequities and inform reopening. Nature 589, 82–87 (2021). The mobility network model proposed based on the SEIR model considers population mobility, but it still does not reflect the impact of demographic attributes such as age on the spread of the epidemic in the transmission model. Demographic attributes such as age also have a significant impact on the infection rate. For example, the infection rate is relatively low among children, the susceptibility of people under 20 years old is about half that of adults over 20 years old, and the incidence rate is higher in people over 60 years old.
[0009] It can be seen that existing risk assessment models typically do not take into account individual heterogeneity, and therefore cannot accurately reflect the actual risk situation. Summary of the Invention
[0010] The technical problem to be solved by the embodiments of the present invention is to provide a risk management and assessment method and system based on population simulation, which can improve the accuracy of population risk assessment results.
[0011] To address the aforementioned technical problems, this invention provides a risk management and assessment method based on population simulation, comprising:
[0012] Obtain global population distribution information for the target area;
[0013] Based on the global population distribution information of the target area, the movement trajectory of pedestrians within the target area is generated;
[0014] Based on the movement trajectories of pedestrians within the target area, a crowd risk assessment is conducted for the target area.
[0015] According to another aspect of the present invention, at least one embodiment provides a risk management assessment system based on population simulation, comprising:
[0016] The population distribution information acquisition module is used to acquire global population distribution information for the target area;
[0017] The motion trajectory generation module is used to generate the motion trajectory of pedestrians within the target area based on the global population distribution information of the target area.
[0018] The risk assessment module is used to conduct a population risk assessment of the target area based on the movement trajectory of pedestrians within the target area.
[0019] According to another aspect of the present invention, at least one embodiment provides a risk management assessment system based on population simulation, comprising: a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program, when executed by the processor, implements the steps of the method described above.
[0020] According to another aspect of the present invention, at least one embodiment provides a computer-readable storage medium on which a program is stored, which, when executed by a processor, implements the steps of the method described above.
[0021] Compared with existing technologies, the risk management and assessment method and system based on population simulation provided in this invention conducts risk assessment based on individual simulated trajectories and individual information, realizing risk simulation at the individual level. This highlights the heterogeneity of each individual and can more accurately reflect the real risk situation. Furthermore, this invention can also quantitatively analyze the intervention effects of various intervention measures, thereby guiding the adoption of appropriate control measures in the target area. Attached Figure Description
[0022] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0023] Figure 1 This is a schematic diagram of a risk management and assessment method based on population simulation according to an embodiment of the present invention;
[0024] Figure 2 This is a schematic diagram of a population distribution completion model provided in an embodiment of the present invention;
[0025] Figure 3 This is another structural schematic diagram of the population distribution completion model provided in an embodiment of the present invention;
[0026] Figure 4 This is a schematic diagram of a process for obtaining global population distribution information of a target area according to an embodiment of the present invention;
[0027] Figure 5 This is an example graph of a graph network;
[0028] Figure 6 This is a schematic diagram of the GRU principle according to an embodiment of the present invention;
[0029] Figure 7 A schematic diagram of forces in a social force model;
[0030] Figure 8 This is an example diagram of an embodiment of the present invention applied to an airport scenario;
[0031] Figure 9 This is an example diagram illustrating the sub-region division of an airport scene according to an embodiment of the present invention.
[0032] Figure 10 An example diagram showing the insertion of a parking point in an embodiment of the present invention;
[0033] Figure 11 This is a flowchart illustrating step 12 of an embodiment of the present invention;
[0034] Figure 12 This is another flowchart illustrating step 12 of an embodiment of the present invention;
[0035] Figure 13 This is a schematic diagram of a generative adversarial imitation learning model according to an embodiment of the present invention;
[0036] Figure 14 This is another flowchart illustrating step 13 of an embodiment of the present invention;
[0037] Figure 15 This is a flowchart illustrating an example of the method of this invention applied to an airport scenario.
[0038] Figure 16 This is a schematic diagram of a risk management and assessment system based on population simulation according to an embodiment of the present invention;
[0039] Figure 17 This is another structural diagram of the risk management and assessment system based on population simulation according to an embodiment of the present invention. Detailed Implementation
[0040] To make the technical problems, technical solutions, and advantages of this invention clearer, a detailed description will be provided below in conjunction with the accompanying drawings and specific embodiments. In the following description, specific details such as particular configurations and components are provided merely to aid in a comprehensive understanding of the embodiments of this invention. Therefore, those skilled in the art should understand that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this invention. Furthermore, for clarity and brevity, descriptions of known functions and structures have been omitted.
[0041] It should be understood that the phrase "one embodiment" or "an embodiment" throughout the specification means that a specific feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the invention. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification do not necessarily refer to the same embodiment. Furthermore, these specific features, structures, or characteristics can be combined in any suitable manner in one or more embodiments.
[0042] In various embodiments of the present invention, it should be understood that the sequence number of each process described below does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.
[0043] As described in the background section, existing risk assessment models typically do not consider individual heterogeneity, thus failing to accurately reflect the actual risk situation. To address one or more of these problems, embodiments of the present invention provide a risk management and assessment method and system based on population simulation. This method utilizes global population distribution information in an indoor setting to generate simulated individual trajectories for risk assessment. Because it is based on simulated individual trajectories and individual information, it highlights the heterogeneity of each individual, rather than fitting a curve of the total number of people in different infection states from the same perspective of the population. Therefore, embodiments of the present invention can more accurately reflect the true risk situation.
[0044] Please refer to Figure 1 The present invention provides a risk management assessment method based on population simulation, comprising:
[0045] Step 11: Obtain global population distribution information for the target area.
[0046] Step 12: Generate the movement trajectory of pedestrians within the target area based on the global population distribution information of the target area.
[0047] Step 13: Based on the movement trajectories of pedestrians within the target area, conduct a crowd risk assessment of the target area.
[0048] Through the above steps, this embodiment of the invention can generate individual simulated trajectories based on the global population distribution information of the target area, and conduct risk assessment based on the individual simulated trajectories and individual information, thereby realizing risk simulation at the individual level, highlighting the heterogeneity of each individual, and thus more accurately reflecting the real risk situation.
[0049] The following is a detailed explanation of each step of the above method.
[0050] Please refer to Figure 2 and Figure 3This invention provides a population distribution completion model based on a Graph Convolutional Network (GCN), a Gated Recurrent Unit (GRU), and deconvolution. This model can complete the time series of a fine-grained global population distribution based on the time series of population distribution data samples in step 11 above. This invention uses GCN to model the spatial relationships between sampling points and GRU to model and capture the temporal correlations of sampling points, thereby modeling the spatiotemporal characteristics of the population distribution at the sampling points. Furthermore, this invention uses a learnable deconvolution module to recover the population distribution outside the sampling points, thus achieving the completion of fine-grained global population distribution data using data from a small number of sampling points.
[0051] In a specific implementation, embodiments of the present invention can deploy multiple sampling points (such as cameras, wireless access points, etc.) in a target area (such as airports, train stations, hospitals, etc.). These sampling points can be used to obtain the time series of population distribution within their coverage areas. Then, each sampling point at each collection time is modeled into two graphs based on spatial distance and time series similarity, and a Generative Network (GCN) is used to capture the spatial relationships between the sampling points. The GCN output is the population distribution of each sampling point considering spatial relationships. By connecting the GCN outputs at different times, the time series for each sampling point is obtained. This time series is then used with a GRU module to capture temporal relationships, and finally, a completion module is used to obtain the time series of global population distribution for a future period.
[0052] The population distribution completion model specifically includes:
[0053] The GCN module constructs a graph network. Specifically, it establishes a first graph connection network (i.e., the physical graph, also referred to as the first graph network in this paper) based on the physical distance between sampling points; and a second graph connection network (i.e., the feature graph, also referred to as the second graph network in this paper) based on the similarity of the historical time series of sampling points. The k-Nearest Neighbor (KNN) algorithm connects each sampling point to its k nearest sampling points (in a graph network, sampling points can be called nodes) in the physical graph; and in the feature graph, it connects each sampling point to its k most similar sampling points in terms of time series. Then, a multi-view graph convolution paradigm is used to model the spatial association information between sampling points in both graph networks.
[0054] The GRU module processes the spatiotemporal sequence of population distribution output by the GCN using the GRU model. Then, it is processed by a multi-layer perceptron (MLP) layer to obtain a time series that can simultaneously capture the spatial and temporal relationships of the sampling points.
[0055] The completion module recovers the global population spatial distribution from the sampling points through a learnable completion module, thus completing the missing data. Here, multiple convolutional layers are used to densify the sparse data (encoder), and subsequent deconvolutional layers (decoder) restore the dimensions to obtain the final population distribution heatmap.
[0056] The inputs to the population distribution completion model in this embodiment of the invention include:
[0057] 1) Coordinates of the locations of various sampling points in the indoor environment to be simulated (e.g., the locations of various Wi-Fi access points in an airport);
[0058] 1) Time series of population distribution at various sampling points in the indoor environment to be simulated (e.g., time series of the number of people at each Wi-Fi access point).
[0059] The output of the population distribution completion model in this embodiment of the invention includes:
[0060] Population distribution at various locations in the indoor environment to be simulated (e.g., the population distribution at each coordinate in the entire airport area over a future period of time).
[0061] like Figure 4 As shown, step 11 above specifically includes:
[0062] Step 111: Obtain the location coordinates of multiple sampling points within the target area and the first population distribution time series of each sampling point.
[0063] Here, the target area can specifically be areas such as airports, train stations, and hospitals that need to be simulated. Multiple sampling points (such as cameras and wireless access points) are pre-deployed within the target area. These sampling points can collect data on the population within their coverage area. For example, data can be collected according to a preset collection period to form a time series of population data, i.e., the first population distribution time series.
[0064] Step 112: Connect each sampling point to the k sampling points with the closest physical distance to obtain a first connection edge, and generate a first graph network including the multiple sampling points and the first connection edge; connect each sampling point to the k sampling points with the highest similarity to the first population distribution time series to obtain a second connection edge, and generate a second graph network including the multiple sampling points and the second connection edge.
[0065] Here, two graph networks are constructed: a first graph network based on the physical distance between sampling points, and a second graph network based on the similarity of the first population distribution time series of sampling points.
[0066] In constructing the first graph network, the k nearest sampling points to the sampling point can be calculated. Then, the sampling point is connected to the k sampling points to obtain the first connecting edge, thereby generating the first graph network including the node (i.e. the sampling point) and the first connecting edge.
[0067] When constructing the second graph network, the similarity between the first population distribution time series of sampling points can be calculated according to the Dynamic Time Warping (DTW) algorithm. Then, for each sampling point, the k sampling points with the highest similarity to the first population distribution time series of that sampling point are determined, and the sampling point is connected to the k sampling points to obtain the second connection edge, thereby generating the second graph network including nodes (i.e. sampling points) and the second connection edge.
[0068] In this way, a first graph network and a second graph network can be generated for each sampling period's time series. Furthermore, the value of k can be adjusted. Specifically, the performance of the system obtained under different k values can be evaluated during training, and the k value corresponding to the best performance can be selected as the final k value.
[0069] Step 113: Input the first graph network, the second graph network, and the first population distribution time series into the graph convolutional neural network GCN to obtain the second population distribution time series of each sampling point output by GCN.
[0070] here, Figure 2 The input to the GCN module is the first and second graph networks for each acquisition period, as well as the population distribution (specifically, the population size) of each node in the graph network. GCN can generate a fifth population distribution time series for each sampling point based on the first graph network and the first population distribution time series; generate a sixth population distribution time series for each sampling point based on the second graph network and the first population distribution time series; and then generate a second population distribution time series for each sampling point based on the fifth and sixth population distribution time series.
[0071] The following is a brief introduction to the working principle of GCN: Figure 5An example of a graph network includes nodes (each small circle represents a node) and edges connecting the nodes. For each node in the graph network, GCN calculates the average of the node's information and the information of all nodes connected to that node (in this embodiment, the information is the population distribution of each sampling point under the same sampling period). The result is used as the new information for that node to generate an updated population distribution time series. For the first graph network, this result considers the population distribution of the k closest physical nodes (i.e., the fifth population distribution time series); for the second graph network, this result considers the population distribution of the k nodes with the highest time series similarity (i.e., the sixth population distribution time series). Then, the population distribution (population size) of each node under the same sampling period in the fifth and sixth population distribution time series is averaged to obtain the updated population size for each node, thereby generating the second population distribution time series for each sampling point. The second population distribution time series is a population distribution time series that simultaneously considers physical distance and time series similarity.
[0072] Step 114: Input the second population distribution time series into the gated recurrent unit (GRU) to obtain the third population distribution time series of each sampling point predicted by the GRU.
[0073] GRU is a type of Recurrent Neural Network (RNN). Like Long Short-Term Memory (LSTM) networks, it was proposed to address issues related to long-term memory and gradients during backpropagation. LSTM networks introduce three gate functions: an input gate, a forget gate, and an output gate to control the input, memory, and output values. In contrast, the GRU model only has two gates: an update gate and a reset gate. Figure 6 A schematic diagram of the GRU principle is provided.
[0074] In this embodiment of the invention, the second population distribution time series is divided into subsequences of predetermined length with a step size of 1. Here, a step size of 1 means that the first element of an adjacent subsequence is adjacent in the second population distribution time series, and the predetermined length refers to the number of elements contained in the subsequence. The subsequences obtained after segmentation are sequentially input into a GRU, and the GRU outputs the predicted value of the population distribution for the next sampling period. For example, the second population distribution time series is segmented into [x t x t+1 ]、[x t+1 x t+2 ]、[x t+2 x t+3 [Multiple subsequences, each containing an element of 2, where x] iThis represents the population distribution at each sampling point during sampling period i. The above subsequences are input sequentially into a GRU, and the GRU outputs [x′]. t+1 , x′ t+2 ]、[x′ t+2 , x′ t+3 ]、[x′ t+2 , x′ t+3 The prediction results are as follows, where x′ i This represents the population distribution at each sampling point during the predicted sampling period i. The GRU module can be trained using historical population distribution data of the target area collected in advance. It can be trained by calculating the difference between the predicted result and the true value of the population distribution.
[0075] Step 115: Input the third population distribution time series into a completion module to obtain the fourth population distribution time series of the global population distribution of the target area predicted by the completion module, which serves as the global population distribution information of the target area.
[0076] Here, based on the third population distribution time series, a sparse heatmap of the population distribution in the target area is constructed; then, the sparse heatmap is input into the completion module. For example... Figure 2 As shown, the completion module includes a convolutional encoder and a deconvolutional decoder. The convolutional encoder is used to densify the sparse heatmap to obtain a dense heatmap; the deconvolutional decoder is used to deconvolve the dense heatmap to obtain a fourth population distribution time series of the global population distribution of the target region. Thus, through a learnable completion module, the global population spatial distribution can be recovered from the population distribution data of the sampling points, achieving the completion of missing data.
[0077] Through the above steps, this embodiment of the invention can predict the global population distribution relatively accurately based on population distribution data from multiple sampling points, thereby providing data support for subsequent analysis and processing.
[0078] In this embodiment of the invention, the population distribution completion model includes a GCN, a GRU, and a completion module. Before step 111 above, this embodiment of the invention can use pre-obtained historical population distribution data of each sampling point in the target area and historical global population distribution data of the target area to train the population distribution completion model, thereby obtaining a trained population distribution completion model.
[0079] Here, training the population distribution completion model specifically includes:
[0080] 1) Generate a seventh population distribution time series for each sampling point based on the historical population distribution data of each sampling point in the target area;
[0081] 2) Connect each sampling point to the k sampling points with the highest similarity in the seventh population distribution time series to obtain the third connection edge, and generate a third graph network including the multiple sampling points and the third connection edge;
[0082] 3) Input the first graph network, the third graph network, and the seventh population distribution time series into the population distribution completion model to obtain the eighth population distribution time series of the global population distribution output by the population distribution completion model;
[0083] 4) Calculate the difference between the eighth population distribution time series and the global population distribution historical data of the target region. Train the population distribution completion model based on the difference until a preset training termination condition is met, thus obtaining the trained population distribution completion model. The training termination condition may be reaching a preset number of training rounds or satisfying a preset convergence condition.
[0084] As one implementation method, in step 12 above, the social force model can be used to generate the pedestrian's movement trajectory based on the global population distribution information obtained in step 11.
[0085] The Social Force model is one of the most popular pedestrian motion simulation models. It defines three forces to simulate three types of interactions: pedestrian-target interaction, pedestrian-environment interaction, and pedestrian-pedestrian interaction. First, the pedestrian is attracted to their target; second, the pedestrian is blocked by obstacles, resulting in a repulsive force from the obstacles; third, the pedestrian has their own safe zone, which prevents them from getting too close to others, thus creating a repulsive force between pedestrians. These force definitions are generalized; therefore, the Social Force model is a highly generalized and scalable model for trajectory generation.
[0086] Figure 7 A schematic diagram is given showing the influence of three forces on pedestrians in the social force model. Figure 1 This includes pedestrian 101, individual 111, obstacle 121, pedestrian 101's target 102, and pedestrian 111's target 112. Pedestrian 101 experiences three forces: target attraction 103, pedestrian-obstacle repulsion 104, and pedestrian-pedestrian repulsion 105. Pedestrian 111 experiences three forces: target attraction 113, pedestrian-obstacle repulsion 114, and pedestrian-pedestrian repulsion 115. In this text, the pedestrian is sometimes referred to as an individual.
[0087] First, the pedestrian is attracted to his goal; in the social force model, goal attraction is represented as:
[0088]
[0089]
[0090] in, Let represent the direction vector of pedestrian α at time t, where Indicates the direction toward the target. This indicates the direction of pedestrian α at time t. This represents the target attraction experienced by pedestrian α. This represents the maximum speed of pedestrian α. Let τ represent the current velocity of pedestrian α at time t. α The relaxation time is used to adjust the strength of the target's attractiveness. Social force models utilize target attractiveness to guide pedestrians toward the target.
[0091] Secondly, pedestrians will avoid obstacles on their path. In the social force model, this effect manifests as a repulsive force exerted by obstacles on pedestrians.
[0092] Third, pedestrians tend to maintain their personal space while moving to avoid collisions, which is modeled as a repulsive force between pedestrians. This force generates a pair of repulsive forces between each pair of pedestrians, causing them to move away from each other. The strength of this force is controlled by the characteristic distance.
[0093] These forces will accelerate the pedestrian to the predetermined maximum speed.
[0094] By setting all these social forces, the social force model can simulate pedestrians through intent. However, for a complex indoor scene, the original social force model needs to be adapted. In the implementation of this invention, the pedestrian's trajectory is driven by a series of waypoints (also called path points) determined by the indoor scene. After reaching the current waypoint, the pedestrian stays within the waypoint's range for a certain period of time, representing the pedestrian's possible dwell or wandering time at this location, and then the pedestrian moves to the next waypoint. After completing all waypoints, the pedestrian is removed from the list of active pedestrians, meaning that the pedestrian's trajectory is no longer simulated.
[0095] Typically, based on a pedestrian's entry and expected exit points (e.g., exiting from the boarding gate corresponding to the flight in an airport setting) and the layout of the indoor space (the distribution of various sub-areas), the sub-areas that the pedestrian's trajectory will sequentially pass through can be predetermined. In embodiments of the present invention, the target area can be divided into multiple non-overlapping sub-areas based on the distribution of various functional areas within the target area. These functional areas refer to areas where pedestrians handle predetermined tasks, such as security checkpoints and check-in halls in airports, or registration windows, waiting rooms, and various medical examination points in hospitals.
[0096] Figure 8 Taking an airport as an example, this invention provides an application scenario. The elements in the airport's indoor scene include: an entrance, check-in hall, security checkpoint, and boarding gate (which is also the exit for pedestrians). Two broken lines, 201 and 202, represent two typical pedestrian trajectories in an airport. Typically, pedestrians enter from the airport entrance, check in at the check-in hall, pass through the security checkpoint to enter the waiting halls on either side of the airport, and then leave through the boarding gate. This invention can utilize pre-obtained population distribution information of a target area over a period of time to assist in generating pedestrian stopping points.
[0097] To apply the social force model to complex indoor scenarios, this embodiment of the invention will now be illustrated using an airport as an example. Pedestrians in this indoor scenario exhibit relatively predictable movement patterns. Applying social forces to an indoor scenario is an underdetermined problem. This embodiment of the invention fully utilizes prior knowledge of the indoor scenario, such as the distribution of various functional areas and population distribution over a given period. Taking an airport as an example:
[0098] First, all pedestrians are associated with their entry time, departure time, and gate (exit). Each pedestrian's entry time and expected departure time (which can be determined based on the flight's boarding time) are collected when entering or exiting the airport. Each flight has a corresponding gate (exit).
[0099] Secondly, the movement patterns of each pedestrian are highly predictable. Specifically, pedestrian movement can be described by entry, check-in, security checks, and departure. Embodiments of this invention will... Figure 8 The following is a visualization of all the ribbon elements and a list of their effects on waypoint generation:
[0100] Check-in Hall: According to airline regulations, checking in is the first action most passengers take after entering the airport. In this embodiment of the invention, pedestrians will be randomly assigned a location point in the check-in hall as their first stopping point. These waypoints require pedestrians to remain within the range of these waypoints for a fixed period of time, which is a hyperparameter of the model. For example, a smaller fixed time value can simulate the effect of automated check-in by machine, while a larger value can simulate manual check-in.
[0101] Security checkpoints: To aid flight safety and reduce the risk of infectious disease transmission, pedestrians undergo checks when passing through security checkpoints. These checkpoints are typically modeled using several gates of finite width. The number of gates and the duration of time spent within the security checkpoint area are two hyperparameters.
[0102] Boarding Gate: In an airport scenario, boarding an aircraft is typically the intention of all pedestrians. Once a pedestrian reaches the corresponding boarding gate, the social force model removes that pedestrian from the simulation.
[0103] Furthermore, it's unrealistic to assume that pedestrians in the real world always have definite target coordinates to drive their movement. Most pedestrians will spend time finding their next waypoint and taking a seat in a waiting area. For example, in an airport scenario, some pedestrians might choose to sit in the airport lounge or wait elsewhere. Moreover, pedestrians are unlikely to choose a very distant location as their next waypoint and linger or stay there. Considering the relevant prior knowledge, stopping points can be generated according to the following rules from both a temporal and coordinate perspective:
[0104] From a temporal perspective: This embodiment of the invention generates a sequence of dwell times for each pedestrian. The elements in this sequence are dwell times, following an exponential distribution with preset fixed parameters. The total time of all elements in the sequence is closest to the pedestrian's total stay time at the airport (entry-departure time interval). In practical implementation, a preset time can be set based on the distribution of functional areas in the target area (e.g., an airport) and the pedestrian's total stay time. For example, based on statistical data, the number of dwelling points where pedestrians frequently linger or stay in the target area is determined in advance. Then, the pedestrian's total stay time is divided by this number, and the average value is used as the preset time. This generates an exponential distribution function with an expected value of the preset time. This function is sampled, and the result of each sample is used as an element in the sequence until the sum of the dwell times of all elements is closest to the pedestrian's total stay time. Thus, the sequence includes a certain number of dwell times. It can be seen that the preset time is positively correlated with the pedestrian's total stay time.
[0105] In addition, to improve simulation efficiency, a time proportional to the pedestrian's actual entry-exit time interval can usually be used as the pedestrian's total dwell time.
[0106] Coordinate angle: such as Figure 9 As shown, embodiments of the present invention can generate rest stops based on the probability of population distribution. Figure 9 Areas with a higher population density are more likely to be selected as stopping points. Furthermore, pedestrians are less likely to choose to stop or wander in distant locations far from their target location. Based on these rules, embodiments of the present invention can pre-divide the target area into multiple sub-areas. For example, Figure 9In this design, the airport area is manually divided into 13 sub-areas, as shown by the dashed boxes, including a central area 31, corridors 32, and waiting areas 33, allowing for the selection of resting points within these sub-areas. During implementation, the pedestrian's route is determined based on a pre-determined passage order through the various sub-areas of the target area. This route includes the sub-areas the pedestrian passes through sequentially, where the first and last sub-areas are the pedestrian's entry and exit points, respectively. For example, as... Figure 10 As shown, in an airport scenario, pedestrians typically follow a four-stage passage sequence: entering the airport → check-in (31), check-in → security check (31), security check → entering the waiting room (32), and entering the waiting hall → leaving (33), generating routes that pass through each sub-area in sequence. Through the above method, this embodiment of the invention introduces indoor auxiliary scene information, such as the boundary coordinates of each sub-area (e.g., functional areas), and generates pedestrian routes based on this indoor auxiliary scene information.
[0107] To describe complex human behavior in indoor public spaces, embodiments of this invention introduce pedestrian dwelling and random exploration behaviors in the target area. For example, in an airport, when waiting times are long, passengers may not go directly to the departure lounge; nearby shops or cafes are popular choices. Therefore, embodiments of this invention introduce dwelling behavior (dwelling points) during trajectory generation, allowing pedestrians to generate temporary destinations within the scene, especially in areas with specific functions (such as shops, cafes, bookstores, etc.). Furthermore, the generation of dwelling behavior also considers population distribution; locations with higher population density are more likely to be temporary destinations. As one implementation, population density can be calculated based on airport Wi-Fi records. The duration of dwelling behavior is positively correlated with the total dwell time (i.e., the difference between flight departure time and passenger arrival time). By introducing pedestrian dwelling and random exploration behaviors, embodiments of this invention can support various types of intervention measures.
[0108] This invention, through embodiments thereof, introduces pedestrian stopping and random exploration behavior by generating stopping points in various sub-regions traversed by pedestrian routes. Specifically, when generating stopping points in each sub-region, the local population distribution of that sub-region is normalized, and the coordinates of one or more stopping points in that region are generated based on the normalized population distribution. Each stopping point corresponds to a stopping time in the aforementioned sequence. The proportion of stopping times (stopping points) in each sub-region can be predetermined based on factors such as the size of the sub-region and the number of points of interest in the sub-region, thereby distributing all stopping times of the pedestrian in the aforementioned stopping time sequence to various sub-regions. For example, sub-regions with larger areas and more points of interest have a higher allocation ratio. Here, points of interest can be shops, restaurants, rest areas, etc.
[0109] By combining generation rules based on time and coordinate angles, embodiments of the present invention can generate parking points based on prior knowledge of each user's entry / exit intervals, boarding gates, and airport population distribution. Each parking point corresponds to a parking time in the aforementioned sequence. Then, as... Figure 10 As shown, the generated stopping points are inserted into the various sub-regions of the pedestrian's route to form a complete list of stopping points.
[0110] After generating the list of stopping points, this embodiment of the invention can use a social force model to simulate the pedestrian's trajectory. The calculation process of the social force model is as follows:
[0111] Input: List of pedestrians, including their list of stopping points (generated by the rules above) and entry time.
[0112] The outline of the interior scene of the target area.
[0113] Initialization: For any pedestrian, their initial coordinates will be assigned to the location of their first stopping point, for example, randomly generated at the airport entrance.
[0114] Caching: To improve simulation efficiency, this embodiment of the invention pre-calculates and caches values closely related to social force calculation for each pedestrian, including: the pedestrian's direction and distance relative to the next stopping point, the vector between the pedestrian and the next stopping point (target), the pedestrian's coordinates and the coordinates of other pedestrians, and the pedestrian's velocity and the velocities of other pedestrians. By pre-calculating and caching these frequently used values, this embodiment of the invention avoids redundant calculations and improves simulation efficiency.
[0115] Simulation: Using cached values, the target attraction force, pedestrian repulsion force, and obstacle repulsion force are calculated for each pedestrian. Then, the sum of these forces is used to calculate the acceleration and velocity of each pedestrian. It should be noted that the pedestrian's velocity is clamped by a predetermined maximum velocity, meaning it does not exceed this maximum velocity. Finally, based on the pedestrian's velocity and current position coordinates, the new coordinates of each pedestrian after one time unit are obtained, and these new coordinates are recorded in the generated trajectory, thus obtaining the pedestrian's trajectory. The duration of the time unit can be set as needed, for example, to 1 second or 5 seconds.
[0116] Update: After updating the coordinates of each pedestrian, the social force model checks the distance between their new coordinates and the next stopping point (assuming the next stopping point is stopping point i in the stopping point list, which includes n stopping points in total: 1, 2, ..., n). If the distance is closer to a predetermined threshold distance, the pedestrian is considered to have reached the next stopping point (i.e., stopping point i). At this time, the pedestrian's next stopping point is updated to stopping point i+1, and a timer starts. When the pedestrian's time spent at stopping point i reaches the corresponding stopping time for stopping point i, the pedestrian will continue to the next stopping point i+1. If the pedestrian has no remaining stopping points, the pedestrian becomes an inactive pedestrian and is removed from the simulation.
[0117] Output: Output a list of trajectories, including the pedestrian coordinates, entry time, and exit time for each time unit.
[0118] Furthermore, to improve simulation efficiency, the above simulation calculations are implemented based on GPU-accelerated matrix operations. After the aforementioned optimizations, the simulation calculations are accelerated by approximately 5 times. Table 1 compares the simulation details of the original social force model and the social force model of this embodiment, including their respective time consumption and iteration frequency. As can be seen from Table 1, the iteration frequency of the original social force model decreases significantly when the number of active pedestrians increases. In pedestrian-pedestrian repulsion, social forces are needed to calculate the interaction between each pair of pedestrians. Therefore, the complexity of the social force model is O(n^2). 2 By implementing the technology on a GPU and caching importance values, the efficiency of the social force model in this embodiment of the invention is significantly improved. Comparing the time consumption over one hour, this embodiment consumes only 5% of the time required by the original social force model.
[0119]
[0120] Table 1
[0121] As one implementation method, please refer to Figure 11 Step 12 of the present invention can be summarized as follows:
[0122] Step 1201: Obtain the boundary coordinates of the target area, the boundary coordinates of each sub-area included in the target area, and the global population distribution information of the target area; and obtain the individual parameters of each pedestrian, wherein the individual parameters include at least: the entry point and entry time of entering the target area, the sub-areas expected to be passed through, and the exit point and exit time expected to leave the target area.
[0123] Here, the global population distribution information of the target area can be generated by training a neural network model using historical population distribution data of the target area, which will not be elaborated further in this embodiment of the invention. The global population distribution information reflects the changes in the population distribution of the target area over time; for example, it can include heatmaps of the global population distribution for different time periods. In actual simulation, the global population distribution information for the entire day can be obtained in advance, depending on the simulation duration. For example, when simulating pedestrian trajectories for a whole day, the global population distribution information for the entire day can be obtained in advance. Specifically, it can be divided into multiple time periods, such as dividing a 24-hour day into 10-minute intervals, with each time period corresponding to a set of global population distribution information, and so on.
[0124] Step 1202: For each pedestrian, generate a sequence containing multiple dwell times, and sequentially allocate each dwell time in the sequence to the sub-regions that the pedestrian is expected to pass through, wherein the sum of all dwell times in the sequence does not exceed the total dwell time of the pedestrian in the target area.
[0125] Here, when generating the sequence of dwell times, an exponential distribution function with an expected value of a preset time can be sampled. Then, it is determined whether the sum of the currently sampled dwell time and all dwell times in the sequence exceeds the total dwell time. If so, the current sequence is output; otherwise, the currently sampled dwell time is added to the sequence, and the process of sampling an exponential distribution function with an expected value of a preset waiting time is returned to continue sampling the next dwell time. The preset time can be determined in the manner described above.
[0126] The dwell time in the sequence is allocated to each sub-region. Specifically, this can be done by: determining the amount of dwell time allocated to each sub-region based on the area of each sub-region that the pedestrian expects to pass through and the number of points of interest in each sub-region; then, determining the allocation order of each sub-region according to the order in which the pedestrian passes through each sub-region; determining the currently allocated sub-region and the amount of dwell time in that sub-region according to the allocation order, and then sequentially allocating the corresponding amount of dwell time in the sequence to that sub-region, until finally all dwell time in the sequence is allocated to the sub-regions.
[0127] Step 1203: Based on the global population distribution information, determine the local population distribution information of the sub-region to which each stop time belongs during the stop time, and determine the coordinates of the stop point corresponding to the stop time based on the local population information; insert the stop point corresponding to each stop time in the sequence into the pedestrian's travel route in sequence to generate the pedestrian's stop point list.
[0128] Here, global population distribution information of a target area can be obtained in advance for a certain period of time. Then, for each dwell time, the time range corresponding to the dwell time is determined based on the pedestrian's entry time and the sum of all dwell times before the dwell time in the sequence. Based on the time range corresponding to the dwell time, the local population distribution information of the sub-region to which the dwell time belongs in the time range is determined from the global population distribution information.
[0129] For example, regarding the dwell time corresponding to dwell point i, assuming the pedestrian's entry time is t0, the sum of the dwell times from dwell point 1 to dwell point i-1 is T, and the dwell time at dwell point i is T. i If the subregion to which the dwell point i belongs is subregion i, then the dwell time T is... i The corresponding time range is from t0+T to t0+T+T. i For a given period of time, the local population distribution information of sub-region i within that time range can be found from the global population distribution information.
[0130] After obtaining local population distribution information, the population distribution heatmap corresponding to the local population information can be normalized to obtain the population probability distribution of the sub-region to which the dwell time belongs; then, the population probability distribution of the sub-region to which the dwell time belongs is sampled, and each sampled result is used as the coordinate of the dwell point corresponding to each dwell time in the sub-region.
[0131] In addition, the pedestrian's route is determined according to the predetermined order of pedestrian passage in each sub-area of the target area. The route includes each sub-area that the pedestrian passes through in sequence, wherein the first sub-area and the last sub-area in the route are the sub-area where the pedestrian's entry point and exit point are located, respectively.
[0132] Step 1204: Using the social force model, calculate the trajectory of the pedestrian as they go to each stop point in the list of stops in sequence, and generate the pedestrian's movement trajectory.
[0133] Here, starting from the pedestrian's entry point, the coordinates of the updated position are calculated and recorded sequentially as the pedestrian moves to the next stopping point in the list, thus generating the pedestrian's trajectory. Additionally, this embodiment of the invention can pre-calculate and cache cached values related to the social force model. These cached values include: the direction between the pedestrian and the next stopping point, the distance between the pedestrian and the next stopping point, and the vector between the pedestrian and the next stopping point. GPU-accelerated matrix operations are used to calculate the trajectories of multiple pedestrians to improve simulation efficiency. The above simulation process specifically includes:
[0134] Determine whether the pedestrian has reached the last stopping point in the list of stopping points:
[0135] If so, output the generated motion trajectory;
[0136] Otherwise, the next stopping point in the pedestrian's stopping point list is taken as the target. The pedestrian's acceleration and velocity are calculated using the attraction between the pedestrian and the target, the repulsion between the pedestrian and the obstacle, and the repulsion between pedestrians. The pedestrian's position coordinates are updated based on the pedestrian's velocity and current position coordinates. When the distance between the updated position coordinates and the next stopping point is within a preset distance threshold, it is determined that the pedestrian has reached the next stopping point. The next stopping point is taken as the current stopping point and a timer is started. When the timer reaches the dwell time corresponding to the current stopping point, the position coordinates of the current stopping point are taken as the pedestrian's current position coordinates, and the process returns to the step of determining whether the pedestrian has reached the last stopping point in the stopping point list.
[0137] Through the above steps, this embodiment of the invention generates pedestrian trajectories using indoor auxiliary scene information and population distribution information, and introduces stopping and random exploration behaviors into the pedestrian routes, thereby improving the realism of the trajectory simulation results of the social force model. Furthermore, this embodiment of the invention also significantly improves computational efficiency by caching important cached values and utilizing GPU-accelerated matrix operations through parallel computing capabilities.
[0138] In step 12 above, embodiments of the present invention can also generate the pedestrian's motion trajectory based on a generative adversarial imitation learning model.
[0139] The spatiotemporal periodicity and regularity of individuals in the real world are difficult to model. Therefore, traditional particle-based individual trajectory simulation models have poor realism and are unable to model real-world individual movement behavior. Furthermore, traditional Generative Adversarial Imitation Learning (GAIL) network models struggle to consider the relationships between individual trajectories, resulting in generated individual trajectories that do not satisfy group constraints. This invention, based on the GAIL approach, designs a Generative Adversarial Imitation Learning model that incorporates the group distribution of people into the model, ensuring that the generated trajectories conform to group constraints. The simulated pedestrian trajectories obtained from this model can play a significant role in guiding traffic flow in epidemic prevention and control, and emergency evacuation.
[0140] As another implementation method, please refer to Figure 12 Step 12 in this embodiment of the invention may specifically include:
[0141] Step 1211: Input the coordinates and time of the starting position of the pedestrian to be simulated in the target area into the pre-trained generative adversarial imitation learning model.
[0142] Step 1212: Obtain the motion trajectory of the pedestrian to be simulated generated by the generative adversarial imitation learning model;
[0143] The generative adversarial imitation learning model is trained using a heatmap of pedestrian trajectories and population distribution in the target area, which is generated based on the global population distribution information.
[0144] Figure 13 A schematic diagram of the structure of a generative adversarial imitation learning model according to an embodiment of the present invention is provided. Figure 13 As shown, this generative adversarial imitation learning model includes a generator and a decision maker. Specifically, the generator includes an embedding layer, a concat layer, a self-attention module, and a linear layer. The decision maker includes an embedding layer, a linear transformation module, and a reward module. This model incorporates a population distribution heatmap, considering population distribution when generating the next decision, thereby generating individual trajectories that conform to population constraints and improving the realism of pedestrian trajectory simulation results.
[0145] Among them, when training the generative adversarial imitation learning model, the position of the pedestrian in the pedestrian trajectory (l) i ) and the corresponding time (t) i The input generator's embedding layer generates the above-mentioned positions (l) i ) and time (t) i The corresponding vector, and in the connection layer (concat) the above positions (l i ) and time (t) i The corresponding vectors are concatenated to obtain the intermediate vector x. e Then, the intermediate vector x e The input is fed into the self-attention module, generating a dense vector S. A Dense vector S A The input is a linear layer, which generates an action value that indicates the pedestrian's position at time t. i ) at the current time (t) i The direction of travel at time t can be used to determine the traveler's current time (t). iThe position of the pedestrian in the next time unit can be determined by the self-attention module and the linear layer, thus generating the pedestrian's position in each time unit and obtaining the pedestrian's trajectory. For example, through the processing of the self-attention module and the linear layer, a number from 0 to 8 can be output (each number corresponds to a cell in a 3x3 grid, assuming the pedestrian is in the center cell), indicating whether to choose a direction of movement from the 8 nearest positions or stay in the center cell.
[0146] The position of pedestrians in pedestrian trajectory (l) i ) and the corresponding time (t) i ) and the action value generated by the generator (a i The input is fed into the embedding layer of the decision processor, and the generated intermediate vector is input into the linear layer. The linear layer outputs the decision result (true / false) of the action direction, which is combined with the heatmap to generate the final reward. In this embodiment of the invention, the crowd distribution of the heatmap is considered when generating the reward value, so that the pedestrian's action direction at the current location and time tends to the crowd distribution in the heatmap at the corresponding time, that is, the pedestrian's action direction points to the crowd focal point closest to the current location. The crowd focal point can be determined according to the heatmap. For example, multiple areas with a crowd density reaching a preset threshold are selected from the heatmap. Each area can have a predetermined area size, and the center point of these areas is used as the crowd gathering point. This embodiment of the invention considers the characteristics of the crowd distribution of the heatmap when generating the reward value, so that the model trained in the end is more consistent with the real situation of the target area. In addition, in order to make the model more stable, this embodiment of the invention can use Wasserstein distance to balance the generative adversarial imitation learning model and the social force model. The social force model can be used to generate the training data of the generative adversarial imitation learning model. Of course, the training data in this embodiment of the invention can also be obtained from the target region through other means.
[0147] The GAIL algorithm is the core of the entire system. Through the interaction between the generator and the discriminator, the model is continuously trained to reach an ideal state. As an example, to make the model suitable for real-world data, this embodiment of the invention can collect population distribution data in the target area by deploying Wi-Fi access points. This population distribution data can then constrain the decision-making process of the aforementioned actions, directing actions towards areas with higher population density. A specific loss function for the generative adversarial learning model in this embodiment of the invention is as follows:
[0148] min G max D V(D,G)=V(D,G)+λL flow
[0149] Where V(D,G) represents the decision result of the decision-maker, λ represents a preset adjustment coefficient, and L flow This represents the difference between the action and the direction from the current location to the nearest focal point of the crowd.
[0150] Prior to step 1211 above, this embodiment of the invention can utilize pre-obtained heatmaps of pedestrian trajectories and population distribution in the target area to train the generative adversarial imitation learning model. Specifically, the pedestrian trajectories in the target area can be obtained by collecting the movement trajectories of pedestrians within the target area. For example, multiple cameras deployed in the target area can be used to collect the trajectories of each pedestrian entering the target area, thereby obtaining training data for the pedestrian trajectories. Alternatively, trajectory generation algorithms, such as trajectory generation algorithms based on social force models, can be used to generate pedestrian trajectories in the target area, etc. This embodiment of the invention does not specifically limit the specific methods used. The heatmap of the target area can also be generated based on pedestrian trajectories, or the population distribution heatmap of the target area can be obtained by acquiring the number of people within the coverage area of wireless access points (such as Wi-Fi access points) deployed in the target area.
[0151] As one implementation method, embodiments of the present invention can train and generate an adversarial imitation learning model according to the following steps:
[0152] Step A: Construct a generative adversarial imitation learning model that includes a generator and a decision maker.
[0153] Here, please refer to one possible structure for a generative adversarial imitation learning model. Figure 2 It should be noted that the embodiments of the present invention are not limited to this structure.
[0154] Step B: Obtain multiple pedestrian trajectories of the target area within a preset time range and multiple heat maps of the population distribution of the target area within the preset time range, wherein each pedestrian trajectory includes multiple location points and time of the pedestrian, and each heat map corresponds to a time interval within the time range.
[0155] Here, multiple pedestrian trajectories in the target area are obtained in advance as training data. The method for obtaining pedestrian trajectories can be found in the description above.
[0156] Step C: Input the first location point of the pedestrian trajectory and the corresponding first time into the generator to obtain the first predicted location point of the next time unit predicted by the generator.
[0157] Step D: Input the heat map, the first location point of the pedestrian trajectory, the first time, and the first predicted location point into the decision-maker to obtain the reward value calculated by the generator.
[0158] Here, the reward value includes: the difference between the first location point and the second location point in the next time unit of the pedestrian trajectory; and the difference between the first direction and the second direction. The first direction is the direction from the first location point to the first predicted location point, and the second direction is the direction from the first location point to the first crowd gathering point. The first crowd gathering point is the crowd gathering point closest to the first location point on the heatmap corresponding to the first time. The method for determining the crowd gathering point is explained above and will not be repeated here.
[0159] Step E: Use the reward value to train the generative adversarial imitation learning model until the preset training termination condition is met.
[0160] Here, the reward value is used for backpropagation training. The training termination condition can be that the training reaches a preset number of training times, or that the similarity between the pedestrian trajectory generated by the generator and the population distribution heatmap is less than a preset threshold, and the decision maker cannot distinguish whether the trajectory output by the generator is real or generated, etc.
[0161] In this embodiment of the invention, the population risk assessment specifically includes at least one of disease transmission risk assessment, crowd congestion assessment, and shopping mall profitability risk assessment.
[0162] For example, embodiments of the present invention can assess the risk of COVID-19 transmission in indoor environments under different intervention conditions based on pedestrian movement trajectories. The system of this invention performs indoor environmental transmission simulation at the pedestrian granularity and can consider various real-world transmission factors, including age and gender distribution of the population, and solid-object transmission from people. For instance, by using pedestrian trajectories with real data as population distribution constraints, applying different types of interventions can achieve realistic simulation of new scenarios. In practical applications, regarding intervention parameters, embodiments of the present invention comprehensively consider the biological laws of actual COVID-19 transmission, improving the accuracy of the assessment results.
[0163] As an example, in practical applications, when used for disease transmission risk assessment, the required input parameters specifically include:
[0164] 1) The coordinate changes of each pedestrian in the indoor area over a future period of time (e.g., the coordinate movement of each passenger in the airport over a future period of time);
[0165] 2) Coordinates of each functional area of the indoor environment of the target area to be simulated (e.g., the location of each functional area in an airport, such as the coordinates of the check-in counter, security checkpoint, boarding gate, and rest area).
[0166] The outputs of disease transmission risk assessment include:
[0167] The infection status of each pedestrian in indoor areas in the future (e.g., the status of each passenger in the airport in the future (healthy, infected, high risk)).
[0168] In the simulation, this embodiment of the invention simulates three modes of disease transmission, including close contact transmission, aerosol transmission, and surface transmission. For example, when a healthy person comes into close contact with an infected person, a jet of air containing the virus may transmit the pathogen to the healthy person. These tiny liquid particles can be expelled from the body through coughing, sneezing, talking, singing, or even breathing. This embodiment of the invention sets a first threshold, within which this type of transmission occurs. The value of the first threshold can be any value between 0.8 and 2 m, or other values; this embodiment of the invention does not specifically limit this value.
[0169] For example, when ventilation is poor, the polluted air produced by jet streams can become aerosols, which can spread germs to places far beyond the range of close contact. This type of infection is common in indoor settings and is considered one of the main causes behind super-spreading events.
[0170] Finally, in public places such as airports, many object surfaces are touched by a large number of passengers. For example, seats, escalators, and check-in counters may be contaminated with viruses, thus posing a certain risk of infection. When healthy people touch these object surfaces, they may also be infected with germs. For example, in real-world scenarios, sick pedestrians may touch the surfaces of certain objects (such as seats, tables, check-in counters, etc.), making these objects sources of infection. This embodiment of the invention further assesses the risk of infection in this situation. Specifically, when acquiring environmental information of a target area, this embodiment of the invention also includes the location coordinates of solid contact objects in the target area, which may specifically include at least one of seats, tables, counters, etc.
[0171] like Figure 14 As shown, when the population risk assessment is a disease transmission risk assessment, step 13 above involves conducting a population risk assessment of the target area, specifically including:
[0172] Step 131: Determine the movement trajectory of each pedestrian in the target area, wherein each pedestrian includes at least one sick pedestrian and at least one healthy pedestrian;
[0173] Here, the target area can be an airport, train station, hospital, etc. Embodiments of this invention can pre-obtain the movement trajectories of multiple pedestrians within the target area, reflecting the location coordinates of the pedestrians at a certain point in time. To simulate the risk of infection, it can be assumed that at least one of the multiple pedestrians is infected. Embodiments of this invention can assess the risk of infection from these infected pedestrians to healthy pedestrians.
[0174] Step 132: Based on the movement trajectory of the sick pedestrian, calculate the first probability of direct contact transmission, the second probability of aerosol transmission, and the third probability of solid contact transmission for each location area within the target area. Direct contact transmission means that the distance between the location area and the sick pedestrian is less than a first threshold. Aerosol transmission means that the location area is within an aerosol area. Solid contact transmission means that there is a solid contact object in the location area that has been contaminated by the sick pedestrian.
[0175] Here, the distance between any two pedestrians at a certain point in time can be calculated based on the movement trajectories of multiple pedestrians. In this embodiment of the invention, a first threshold is preset. When the distance is below this threshold, it is considered that the two pedestrians have had direct contact. If the two pedestrians are a sick pedestrian and a healthy pedestrian, the sick pedestrian may pose a risk of infection to the healthy pedestrian.
[0176] Step 133: Calculate the infection probability of each location area within the target area based on the first infection probability, the second infection probability, and the third infection probability.
[0177] Step 134: Based on the infection probability of each location area and the movement trajectory of healthy pedestrians, generate the probability of healthy pedestrians being infected.
[0178] Through the above steps, this embodiment of the invention utilizes the movement trajectories of multiple pedestrians to simulate indoor environmental transmission at the pedestrian level, highlighting the heterogeneity of each pedestrian rather than fitting the change curve of the total number of people in different infection states from the same perspective of the group. Furthermore, this embodiment of the invention considers the transmission risks of three transmission factors: direct contact, aerosols, and solid contact objects. Therefore, this invention can more accurately reflect the real risk situation.
[0179] The following is a detailed explanation of how to calculate the transmission probability of the three infectious agents in step 132 above.
[0180] I. Calculation of the first probability of direct contact transmission in each location area within the target region
[0181] Here, the target area is divided into multiple location zones based on a predetermined area size. Each location zone can be a rectangular area, specifically a square. Considering the first threshold for direct contact transmission distance, the distance between any two points in each location zone should not exceed the first threshold. In this example, the size of the location zone is set to 0.8m x 0.8m, and at most one pedestrian can exist in each location zone at any given time.
[0182] Then, based on the location zones within the target area, a first matrix is constructed, where each element corresponds to a location zone within the target area. Based on the movement trajectories of the multiple pedestrians, the coordinates of each pedestrian at each time point are determined, thereby identifying the pedestrians within each location zone at that time point and setting the value of the element corresponding to that location zone in the first matrix, thus generating the first matrix. Healthy pedestrians and sick pedestrians correspond to different values. For example, if no sick pedestrian exists in a location zone, the value of the element corresponding to that location zone is set to 0; if a sick pedestrian exists in a location zone, the value of the element corresponding to that location zone is set to 1 (the specific value can be adjusted based on experience). Here, the time points can specifically be various moments recorded in the movement trajectory, each time point having a corresponding location coordinate.
[0183] Then, using a predefined close-contact convolution kernel, a two-dimensional convolution operation is performed on the first matrix to update it, resulting in an updated first matrix. Through the convolution operation, the infection probabilities of surrounding locations within a given location can be merged into that location, thus enabling the spread of infection risk to surrounding areas. Therefore, the value of each element in the updated first matrix represents the first probability of direct contact infection in the location corresponding to that element at that time point.
[0184] For example, during simulation, this embodiment of the invention can utilize the high concurrency capabilities of the GPU to accelerate computation. The initialization function `genContactMatrix` of the first matrix determines the values of each element in the first matrix, generating the first matrix. Specifically, an infected person (sick pedestrian) list `infectedList` can be stored in the system, the contents of which are related to time point `t`. Based on this list, the corresponding direct contact transmission process is calculated. First, for the probability of direct contact infection, a 2D first matrix can be constructed. This is used to describe the probability of direct contact transmission in a target area (such as an airport). Here, m and n represent the size of the airport, and t is the current timestamp. In matrix M... conIn the diagram, the locations of infected individuals are set. Then, a 3×3 convolutional kernel, ContactKernel, is defined to spread the risk of infection to adjacent location areas. Using GPU-accelerated computation, convolving the matrix with the aforementioned kernel yields an updated matrix (the first matrix), which records the change in infection rate due to close contact in each location area. An example of this convolutional kernel is a 3×3 kernel where the central element is 0, and the other elements are set to a preset direct contact infection probability, such as 0.3.
[0185] The above process can be expressed by the following formula:
[0186]
[0187] here, Represents a zero matrix.
[0188] II. Calculation of the probability of secondary infection from aerosol transmission in each location area within the target region.
[0189] Here, in this embodiment of the invention, a second matrix is constructed based on the location regions in the target region, and each element in the second matrix corresponds to a location region in the target region.
[0190] Then, based on the movement trajectories of the multiple pedestrians, the coordinates of each pedestrian at each time point are determined, thereby identifying the pedestrians in each location area at that time point. Based on the pedestrians in each location area at that time point and the second matrix of the previous time point, the values of each element in the second matrix at that time point are determined.
[0191] Then, using a predefined convolution kernel for aerosol transmission, a two-dimensional convolution operation is performed on the second matrix to update the second matrix. The value of each element in the updated second matrix represents the second probability of aerosol transmission in the location area corresponding to that element at that time point.
[0192] For aerosol propagation, it can be assumed that the aerosol diffusion pattern follows a predetermined Gaussian kernel that conforms to a two-dimensional Gaussian distribution. The values of the elements in this kernel are characterized by larger values at the center and smaller values at the edges. This embodiment of the invention constructs a dedicated two-dimensional matrix. The second matrix is used to describe the aerosol propagation process. At each time point, the positions in this matrix where an infected person (sick pedestrian) exists are set to 1, and then the second matrix is updated using a 2D convolution with a predetermined Gaussian kernel. Unlike direct contact transmission, the second matrix before the update is retained to describe the entire diffusion process of aerosol pollution, which can be expressed by the following formula:
[0193]
[0194]
[0195] Here, the function `genAeroMatrix` represents an initialization function for the second matrix. This function updates the second matrix at the previous time point based on the final infection state, setting the positions corresponding to newly infected individuals in the matrix to 1.
[0196] III. Calculation of the probability of third-degree transmission from solid contact with objects in each location area within the target region.
[0197] Here, in this embodiment of the invention, a third matrix is initialized based on the location regions in the target region, and each element in the third matrix corresponds to a location region in the target region.
[0198] Then, the target area containing solid contact objects is determined. These solid contact objects can be various pre-defined solid items, which are usually items that pedestrians can easily come into contact with, such as seats, shop counters, check-in kiosks, etc.
[0199] Then, based on the movement trajectories of the multiple pedestrians, the coordinates of each pedestrian at each time point are determined, thereby determining the target number of infected pedestrians who have passed through the target location area up to that time point. The values of the elements corresponding to the target location area in the third matrix are updated according to the target number to obtain the updated third matrix. The value of each element in the updated third matrix represents the third probability of solid contact infection in the location area corresponding to that element at that time point.
[0200] For object surface transmission, this embodiment of the invention can maintain a third matrix of object surface indices, marking different types of object surfaces at the pixel level. At each time point, this embodiment of the invention iterates through the list of infected individuals, filtering out those who remain in locations containing solid contact objects. Then, the third matrix is generated. Among them, the solid contact objects that the infected pedestrian passed through are infectious, as shown in the equation below:
[0201]
[0202]
[0203] Here, the function `genObjMatrix` represents an initialization function for the third matrix, and `surfaceIndex` represents the surface index of the object. This function ensures that, when the surface index indicates a location containing a solid contact object, the value of the element corresponding to that location in the third matrix is proportional to the number of sick pedestrians who have passed through that location up to the current time point. This embodiment of the invention does not impose specific limitations on the above function.
[0204] The upper limit of the value of each element in the above three matrices is usually between 0 and 1, that is, greater than or equal to 0 and less than or equal to 1. In step 13 of the present invention, when calculating the infection probability of each location area within the target area based on the first infection probability, the second infection probability, and the third infection probability, the first infection probability, the second infection probability, and the third infection probability of each location area at each time point can be determined based on the first matrix, the second matrix, and the third matrix. Then, the infection probability of each location area at each time point is calculated based on the first infection probability, the second infection probability, and the third infection probability of each location area at each time point.
[0205] In cases where generating the aforementioned matrix using certain functions may result in element values exceeding 1, in step 133 of this embodiment, when calculating the infection probability of each location area within the target region based on the first infection probability, the second infection probability, and the third infection probability, the first matrix, the second matrix, and the third matrix at each time point can be normalized to ensure that the values of their elements are between 0 and 1, resulting in normalized first, second, and third matrices. Then, based on the normalized first, second, and third matrices, the first infection probability, the second infection probability, and the third infection probability of each location area at each time point are determined, and the infection probability of each location area at each time point is calculated based on the first infection probability, the second infection probability, and the third infection probability of each location area at each time point.
[0206] For example, through normalization, the three types of matrices are... Each element in the matrix is restricted to the value [0, 1], thus generating a normalized matrix. Then, calculate the infection probability P of each location area at each time point in the target area according to the following formula. t :
[0207]
[0208] Here, ⊙ represents the Hadamard product.
[0209] If the above three types of matrices Since each element in the formula has a value in the range [0, 1], then the formula above... It can be directly replaced with
[0210] In step 134 above, when generating the probability of a healthy pedestrian being infected based on the infection probability of each location area and the movement trajectory of the healthy pedestrian, this embodiment of the invention can determine the coordinates of the healthy pedestrian and the location area to which the healthy pedestrian belongs at each time point based on the movement trajectory of the healthy pedestrian; then, based on the infection probability of the location area to which the healthy pedestrian belongs at that time point, the probability of the healthy pedestrian being infected at that time point is determined. The infection probability of the location area to which the healthy pedestrian belongs at that time point can be obtained from the infection probabilities of each location area at that time point generated in step 133.
[0211] Furthermore, considering the differences in individual attributes of pedestrians, for example, discount coefficients corresponding to different individual attributes can be determined based on pre-obtained statistical data on the susceptibility of healthy pedestrians of different genders and ages. Here, individual attributes typically include at least one of gender and age. Then, in step 134, the corresponding discount coefficient is determined based on the individual attributes of the healthy pedestrian; subsequently, the probability of infection in the location area to which the healthy pedestrian belongs at that time point is multiplied by the discount coefficient to obtain the probability of the healthy pedestrian being infected at that time point.
[0212] Through the above steps, this embodiment of the invention can obtain the probability of a healthy pedestrian being infected at each time point, and then perform a simulation of the infection process based on this probability. For example, a probability value of 0.6 indicates that the healthy pedestrian has a 60% probability of being infected, and an infection simulation is performed based on this probability.
[0213] As can be seen from the above, this invention designs human-scene interaction for indoor scenarios, including direct human-to-human contact, human-aerosol contact, and human-solid contact, considering the risk of infection from multiple dimensions. Furthermore, embodiments of this invention can initialize the trajectories of individual pedestrians using real-world scenes and distributions to improve the accuracy of the assessment results.
[0214] In addition, considering that different intervention measures can be adopted in the target area, such as requiring people to wear masks and regularly disinfecting the target area, the embodiments of the present invention can also take into account the impact of the above-mentioned intervention measures during the evaluation process, and perform quantitative analysis on the effectiveness of the above-mentioned measures in order to better guide the intervention measures taken to reduce the risk of infection.
[0215] Similarly, embodiments of the present invention can also consider the impact of various intervention measures on the risk of aerosol transmission during the evaluation process. For example, to assess the impact of whether pedestrians wear masks, embodiments of the present invention can adjust the initial value of the transmission probability in the initialization function of the aerosol transmission probability, thereby obtaining the evaluation results under whether or not masks are worn. For example, there are four scenarios: 1) both infected and healthy pedestrians wear masks; 2) infected pedestrians wear masks, healthy pedestrians do not wear masks; 3) infected pedestrians do not wear masks, healthy pedestrians wear masks; 4) neither infected nor healthy pedestrians wear masks. In the above four scenarios, the initial value gradually increases. In addition, after disinfecting the target area, the initial value of the transmission probability can be significantly reduced, and the specific reduction value can be set and adjusted according to statistical results.
[0216] In the above methods, the embodiments of the present invention can quantitatively analyze the impact of intervention measures. The present invention combines the biological laws in actual epidemic transmission to quantitatively analyze the intervention effects of various intervention measures, evaluate the intervention effects of real-world intervention measures, and thus guide the adoption of appropriate control measures in the target area.
[0217] To evaluate the effectiveness of interventions in suppressing pathogen transmission, this invention considers two types of interventions: mobility interventions and infection interventions. The purpose of mobility interventions is to control passenger trajectories, which will affect the generation of movement trajectories in embodiments of this invention. Specific measures may include:
[0218] 1) More security checks: Add security checkpoints to reduce airport waiting time and congestion.
[0219] 2) Loitering control: Reduce passenger exploration behavior. Passengers should proceed directly to their destination exit.
[0220] 3) Social distancing: Increase the distance between passengers where possible.
[0221] 4) Walking speed: Use escalators to increase passenger walking speed to reduce potential exposure.
[0222] Another category of measures is infection intervention measures, which are implemented during infection simulations and include:
[0223] 1) Disinfection frequency: Change the disinfection frequency of the target area (airport).
[0224] 2) Mandatory mask-wearing: Ensure that all passengers wear masks.
[0225] 3) Protection of vulnerable groups: Control the age and gender distribution of passengers to prevent vulnerable groups from entering the airport.
[0226] In practical simulations, this can include:
[0227] 1) Adjust the initial values of the direct contact transmission probability, aerosol transmission probability, and solid contact transmission probability according to whether the infected pedestrian is wearing a mask;
[0228] 2) Based on the disinfection frequency of the target area, reduce the probability of aerosol transmission and solid contact transmission after each disinfection.
[0229] 3) Adjust the direct contact transmission probability, aerosol transmission probability, and solid contact transmission probability according to the pedestrian attributes of the healthy pedestrians, wherein the pedestrian attributes include at least one of gender and age.
[0230] The methods described in this invention, based on pre-acquired pedestrian trajectories, can achieve realistic simulations under different types of intervention measures. Compared to traditional methods, this invention simulates pedestrian movement trajectories that correspond to real population distribution. All risk assessments are based on pedestrian movement trajectories and pedestrian information, highlighting the heterogeneity of each pedestrian, rather than fitting a curve of the total number of people with different infection states from the same perspective of the group. Regarding intervention parameters, this invention comprehensively considers the biological laws of actual epidemic transmission (such as COVID-19), thus better reflecting the real risk situation.
[0231] The risk assessment method of this invention has been specifically described above. Taking the risk of disease transmission in an airport as an example, the inputs of the risk management and assessment system of this invention include:
[0232] The boundary coordinates of the indoor environment to be simulated (in this example, the boundary of the airport area);
[0233] Coordinates of each functional area in the indoor environment to be simulated (in this example, the locations of each functional area in an airport, such as the coordinates of the check-in counter, security checkpoint, boarding gate, and rest area, etc.);
[0234] The coordinates of each sampling point in the indoor environment to be simulated (in this example, the locations of each Wi-Fi access point in the airport);
[0235] The time series of the number of people at each access point in the indoor environment to be simulated (in this example, the time series of the number of people at each Wi-Fi access point).
[0236] The output of this system includes:
[0237] The infection status of each pedestrian in the indoor area in the future (in this example, the status of each passenger in the airport in the future (healthy, infected, high risk)).
[0238] Figure 15 This invention provides a process example of applying the method of this embodiment to an airport scenario. To assess risks in an airport setting, this system obtains the population distribution of a local area using common population distribution sampling methods found in indoor scenarios (such as Wi-Fi access point information and the number of people in surveillance camera areas). It then reconstructs the population distribution pattern of the entire public space (i.e., the specific number of people at each location in the space) using a population distribution completion model. Based on this population distribution pattern, the system simulates individual movement behavior in the airport area, ensuring that the statistical distribution of individual movement behavior conforms to the completed population distribution. This guarantees the realism of individual trajectories and enhances the system's simulation capabilities. During the individual movement behavior simulation, different population attributes are considered, including gender and age, and different control measures are implemented for movement behavior. Furthermore, this system simulates the risk of transmission processes, including contact transmission, aerosol transmission, and solid-borne transmission, and incorporates various epidemic risk simulation and control measures, achieving risk assessment of infection in public places.
[0239] Reference Figure 15 It can be seen that the embodiments of the present invention implement the following models in steps 11 to 13 above:
[0240] 1) Sparse population distribution completion model:
[0241] In indoor scenarios, population distribution in localized areas can be obtained through sampling methods, such as using Wi-Fi access points or surveillance cameras to count the population in a localized area. However, obtaining fine-grained population distribution in indoor scenarios is difficult. Therefore, this system proposes a completion model based on sparse population distribution to recover the fine-grained population distribution throughout the public space, which serves as the group statistical distribution to guide subsequent individual trajectory generation models.
[0242] 2) Individual trajectory generation model:
[0243] To obtain the behavior of each individual in public places, simulation is required using an individual trajectory generation model. The simulation considers the functional characteristics of different areas within the indoor space; for example, in an airport, passengers will first go to the check-in counter, then the security checkpoint, and finally the waiting area to depart. Simultaneously, the trajectory generation process also considers the global fine-grained population distribution restored by the aforementioned population distribution completion model, ensuring that the generated individual trajectories statistically match the real-world scenario, thus enhancing the realism of the trajectories. During trajectory generation, this system introduces various intervention measures to simulate movement control in public places, including: increasing social distancing, controlling loitering and exploratory behavior, increasing movement speed (elevators), and adding security checkpoints, simulating movement trajectory behavior under different policies.
[0244] 3) Transmission risk assessment model:
[0245] Based on the simulated individual movement trajectories, the risk assessment model simulated the spread of infection at the individual level, achieving simulated tracking of epidemic risk. This model considered the different infection risks of different ages and genders, simulated three transmission routes: contact transmission, aerosol transmission, and solid-borne transmission, and simulated the effectiveness of control measures such as wearing masks and disinfection frequency in public places, resulting in an assessment of risk control strategies in public places.
[0246] The various methods of the embodiments of the present invention have been described above. Apparatus for implementing the above methods will now be provided.
[0247] Please refer to Figure 16 This invention provides a risk management and assessment system based on population simulation, comprising:
[0248] The population distribution information acquisition module 161 is used to acquire global population distribution information of the target area.
[0249] The motion trajectory generation module 162 is used to generate the motion trajectory of pedestrians in the target area based on the global population distribution information of the target area;
[0250] The risk assessment module 163 is used to conduct a population risk assessment of the target area based on the movement trajectory of pedestrians within the target area.
[0251] Preferably, the population distribution information acquisition module is specifically used for:
[0252] Obtain the location coordinates of multiple sampling points within the target area and the first population distribution time series of each sampling point;
[0253] Each sampling point is connected to the k closest sampling points in physical distance to obtain a first connection edge, generating a first graph network including the multiple sampling points and the first connection edge; each sampling point is connected to the k sampling points with the highest similarity to the first population distribution time series to obtain a second connection edge, generating a second graph network including the multiple sampling points and the second connection edge.
[0254] The first graph network, the second graph network, and the first population distribution time series are input into the graph convolutional neural network GCN to obtain the second population distribution time series of each sampling point output by GCN.
[0255] The second population distribution time series is input into the gated recurrent unit (GRU) to obtain the third population distribution time series of each sampling point predicted by the GRU.
[0256] The third population distribution time series is input into a completion module to obtain a fourth population distribution time series of the global population distribution of the target area predicted by the completion module, which serves as the global population distribution information of the target area.
[0257] Preferably, the motion trajectory generation module is specifically used for:
[0258] Obtain the boundary coordinates of the target area and the boundary coordinates of each sub-area included in the target area; and obtain the individual parameters of each pedestrian, wherein the individual parameters include at least: the entry point and entry time of entering the target area, the sub-areas expected to be traversed, and the exit point and exit time expected to leave the target area;
[0259] For each pedestrian, a sequence containing multiple dwell times is generated, and each dwell time in the sequence is sequentially assigned to the sub-regions that the pedestrian is expected to pass through. The sum of all dwell times in the sequence does not exceed the total dwell time of the pedestrian in the target area.
[0260] Based on the global population distribution information, determine the local population distribution information of the sub-region to which each stop time belongs during that stop time, and determine the coordinates of the stop point corresponding to that stop time based on the local population information; insert the stop point corresponding to each stop time in the sequence into the pedestrian's travel route in sequence to generate the pedestrian's stop point list;
[0261] Using a social force model, the trajectory of the pedestrian as they go to each stop point in the list is calculated, thus generating the pedestrian's movement trajectory.
[0262] Preferably, the motion trajectory generation module is specifically used for:
[0263] The coordinates and time of the starting position of the pedestrian to be simulated in the target area are input into the pre-trained generative adversarial imitation learning model.
[0264] Obtain the motion trajectory of the pedestrian to be simulated generated by the generative adversarial imitation learning model;
[0265] The generative adversarial imitation learning model is trained using a heatmap of pedestrian trajectories and population distribution in the target area, which is generated based on the global population distribution information.
[0266] Preferably, the system further includes:
[0267] The model training module is used to train the generative adversarial imitation learning model using a pre-obtained heatmap of pedestrian trajectories and population distribution in the target area, before setting the coordinates and time of the starting position of the pedestrian to be simulated in the target area.
[0268] Preferably, the population risk assessment includes at least one of disease transmission risk assessment, crowd congestion assessment, and shopping mall profitability risk assessment.
[0269] Preferably, when the population risk assessment is a disease transmission risk assessment, the risk assessment module is specifically used for:
[0270] Based on the movement trajectory of the infected pedestrian, calculate the first probability of direct contact transmission, the second probability of aerosol transmission, and the third probability of solid contact transmission for each location area within the target area. Direct contact transmission means that the distance between the location area and the infected pedestrian is less than a first threshold. Aerosol transmission means that the location area is within an aerosol area. Solid contact transmission means that there are solid contact objects in the location area that have been contaminated by the infected pedestrian.
[0271] Based on the first infection probability, the second infection probability, and the third infection probability, calculate the infection probability of each location area within the target area;
[0272] Based on the infection probability of each location area and the movement trajectory of healthy pedestrians, the probability of a healthy pedestrian being infected is generated.
[0273] Preferably, the calculation of the first infection probability includes:
[0274] Divide the target area into multiple location zones of predetermined size;
[0275] Based on the location regions within the target region, a first matrix is constructed, where each element of the first matrix corresponds to a location region within the target region;
[0276] Based on the movement trajectories of the multiple pedestrians, the coordinates of each pedestrian at each time point are determined, and then the pedestrians in each location area at that time point are determined and the values of the elements corresponding to that location area in the first matrix are set, wherein healthy pedestrians and sick pedestrians correspond to different values respectively.
[0277] Using a predefined convolution kernel for close contact, a two-dimensional convolution operation is performed on the first matrix to update the first matrix. The value of each element in the updated first matrix represents the first probability of direct contact transmission in the location area corresponding to that element at that time point.
[0278] The calculation of the second probability of infection includes:
[0279] Based on the location regions within the target region, a second matrix is constructed, where each element of the second matrix corresponds to a location region within the target region;
[0280] Based on the movement trajectories of the multiple pedestrians, the coordinates of each pedestrian at each time point are determined, and then the pedestrians in each location area at that time point are determined. Based on the pedestrians in each location area at that time point and the second matrix of the previous time point, the values of each element in the second matrix at that time point are determined.
[0281] Using a predefined convolution kernel for aerosol transmission, a two-dimensional convolution operation is performed on the second matrix to update the second matrix. The value of each element in the updated second matrix represents the second probability of aerosol transmission in the location area corresponding to that element at that time point.
[0282] The calculation of the third infection probability includes:
[0283] Based on the location regions within the target region, a third matrix is initialized, where each element of the third matrix corresponds to a location region within the target region;
[0284] Identify the target location area containing the solid contact object within the target area;
[0285] Based on the movement trajectories of the multiple pedestrians, the coordinates of each pedestrian at each time point are determined, and then the target number of infected pedestrians who have passed through the target location area up to that time point is determined. The values of the elements corresponding to the target location area in the third matrix are updated according to the target number to obtain the updated third matrix. The value of each element in the updated third matrix represents the third probability of solid contact infection in the location area corresponding to that element at that time point.
[0286] Preferably, the risk assessment module is further used for:
[0287] Normalize the first, second, and third matrices at each time point so that the values of their elements are between 0 and 1, thus obtaining the normalized first, second, and third matrices.
[0288] Based on the normalized first, second, and third matrices, the first, second, and third infection probabilities for each location area at each time point are determined, and the infection probability for each location area at each time point is calculated based on these probabilities.
[0289] Preferably, the risk assessment module is further configured to: determine the movement trajectory of each pedestrian within the target area, wherein each pedestrian includes at least one infected pedestrian and at least one healthy pedestrian; determine the coordinates of the healthy pedestrian at each time point and the location area to which the healthy pedestrian belongs based on the movement trajectory of the healthy pedestrian; and determine the probability of the healthy pedestrian being infected at that time point based on the infection probability of the location area to which the healthy pedestrian belongs at that time point.
[0290] Preferably, the risk assessment module is further configured to: determine a corresponding discount coefficient based on the individual attributes of the healthy pedestrian, wherein the individual attributes include at least one of gender and age; and multiply the infection probability of the healthy pedestrian in the location area to which the healthy pedestrian belongs at that time point by the discount coefficient to obtain the probability of the healthy pedestrian being infected at that time point.
[0291] Please refer to Figure 17 This invention provides a schematic diagram of a deep learning-based population distribution completion system 1700, including: a processor 1701, a transceiver 1702, a memory 1703, and a bus interface, wherein:
[0292] In this embodiment of the invention, the first device 1700 further includes: a program stored in a memory 1703 and executable on a processor 1701, wherein the program, when executed by the processor 1701, performs the following steps:
[0293] Obtain global population distribution information for the target area;
[0294] Based on the global population distribution information of the target area, the movement trajectory of pedestrians within the target area is generated;
[0295] Based on the movement trajectories of pedestrians within the target area, a crowd risk assessment is conducted for the target area.
[0296] Understandably, in this embodiment of the invention, the computer program executed by the processor 1701 can achieve the above-mentioned functions. Figure 1 The various processes of the embodiment of the infection risk assessment method based on pedestrian movement trajectory shown can achieve the same technical effect, and will not be described again here to avoid repetition.
[0297] exist Figure 17In this context, the bus architecture can include any number of interconnected buses and bridges, specifically linking various circuits together, such as one or more processors represented by processor 1701 and memory represented by memory 1703. The bus architecture can also link together various other circuits, such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. The transceiver 1702 can be multiple elements, including a transmitter and a receiver, providing a unit for communicating with various other devices over a transmission medium.
[0298] Processor 1701 is responsible for managing the bus architecture and general processing, while memory 1703 can store the data used by processor 1701 when performing operations.
[0299] It should be noted that the terminal in this embodiment is the same as the one described above. Figure 1 The device corresponding to the method shown above, and the implementation methods in each embodiment above, are all applicable to the embodiments of this terminal, and can achieve the same technical effect. In this device, the transceiver 1702 and the memory 1703, as well as the transceiver 1702 and the processor 1701, can be connected for communication via a bus interface. The function of the processor 1701 can also be implemented by the transceiver 1702, and the function of the transceiver 1702 can also be implemented by the processor 1701. It should be noted that the device provided by the embodiments of the present invention can implement all the method steps implemented in the above method embodiments and can achieve the same technical effect. Therefore, the parts that are the same as those in the method embodiments and the beneficial effects will not be described in detail here.
[0300] In some embodiments of the present invention, a computer-readable storage medium is also provided, on which a program is stored, which, when executed by a processor, performs the following steps:
[0301] Obtain global population distribution information for the target area;
[0302] Based on the global population distribution information of the target area, the movement trajectory of pedestrians within the target area is generated;
[0303] Based on the movement trajectories of pedestrians within the target area, a crowd risk assessment is conducted for the target area.
[0304] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementations should not be considered beyond the scope of this invention.
[0305] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0306] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0307] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of the present invention, depending on actual needs.
[0308] In addition, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0309] If the aforementioned functions are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, essentially, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0310] The above description is merely a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any person skilled in the art can easily conceive of various equivalent modifications or substitutions within the technical scope disclosed in the present invention, and these modifications or substitutions should all be covered within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A risk management and assessment method based on population simulation, characterized in that, include: Obtain global population distribution information for the target area; Based on the global population distribution information of the target area, the movement trajectory of pedestrians within the target area is generated; Based on the movement trajectories of pedestrians within the target area, a crowd risk assessment is conducted for the target area. The step of generating the movement trajectory of pedestrians within the target area based on the global population distribution information of the target area includes: Obtain the boundary coordinates of the target area and the boundary coordinates of each sub-area included in the target area; and obtain the individual parameters of each pedestrian, wherein the individual parameters include at least: the entry point and entry time of entering the target area, the sub-areas expected to be traversed, and the exit point and exit time expected to leave the target area; For each pedestrian, a sequence containing multiple dwell times is generated, and each dwell time in the sequence is sequentially assigned to the sub-regions that the pedestrian is expected to pass through. The sum of all dwell times in the sequence does not exceed the total dwell time of the pedestrian in the target area. Based on the global population distribution information, determine the local population distribution information of the sub-region to which each stop time belongs during that stop time, and determine the coordinates of the stop point corresponding to that stop time based on the local population distribution information; insert the stop point corresponding to each stop time in the sequence into the pedestrian's travel route in sequence to generate the pedestrian's stop point list; Using a social force model, the trajectory of the pedestrian as they go to each stop point in the list of stops is calculated, and the pedestrian's movement trajectory is generated. The step of generating the movement trajectory of pedestrians within the target area based on the global population distribution information of the target area further includes: The coordinates and time of the starting position of the pedestrian to be simulated in the target area are input into the pre-trained generative adversarial imitation learning model. Obtain the motion trajectory of the pedestrian to be simulated generated by the generative adversarial imitation learning model; The generative adversarial imitation learning model is trained using a heatmap of pedestrian trajectories and population distribution in the target area, which is generated based on the global population distribution information.
2. The method as described in claim 1, characterized in that, The acquisition of global population distribution information for the target area includes: Obtain the location coordinates of multiple sampling points within the target area and the first population distribution time series of each sampling point; Each sampling point is connected to the k closest sampling points in physical distance to obtain a first connection edge, generating a first graph network including the multiple sampling points and the first connection edge; each sampling point is connected to the k sampling points with the highest similarity to the first population distribution time series to obtain a second connection edge, generating a second graph network including the multiple sampling points and the second connection edge. The first graph network, the second graph network, and the first population distribution time series are input into the graph convolutional neural network GCN to obtain the second population distribution time series of each sampling point output by GCN. The second population distribution time series is input into the gated recurrent unit (GRU) to obtain the third population distribution time series of each sampling point predicted by the GRU. The third population distribution time series is input into a completion module to obtain a fourth population distribution time series of the global population distribution of the target area predicted by the completion module, which serves as the global population distribution information of the target area.
3. The method as described in claim 1, characterized in that, Before assigning the coordinates and time of the starting position of the simulated pedestrian within the target area, the method further includes: The generative adversarial imitation learning model is trained using heatmaps of pedestrian trajectories and population distribution in the target area obtained in advance.
4. The method as described in claim 1, characterized in that, The population risk assessment includes at least one of disease transmission risk assessment, crowd overcrowding assessment, and shopping mall profitability risk assessment.
5. The method as described in claim 4, characterized in that, When the population risk assessment is a disease transmission risk assessment, the step of conducting a population risk assessment of the target area based on the movement trajectories of pedestrians within the target area includes: Determine the movement trajectory of each pedestrian within the target area, wherein each pedestrian includes at least one sick pedestrian and at least one healthy pedestrian; Based on the movement trajectory of the infected pedestrian, calculate the first probability of direct contact transmission, the second probability of aerosol transmission, and the third probability of solid contact transmission for each location area within the target area. Direct contact transmission means that the distance between the location area and the infected pedestrian is less than a first threshold. Aerosol transmission means that the location area is within an aerosol area. Solid contact transmission means that there are solid contact objects in the location area that have been contaminated by the infected pedestrian. Based on the first infection probability, the second infection probability, and the third infection probability, calculate the infection probability of each location area within the target area; The probability of a healthy pedestrian being infected is generated based on the infection probability of each location area and the movement trajectory of the healthy pedestrian.
6. The method as described in claim 5, characterized in that, The calculation of the first infection probability includes: Divide the target area into multiple location zones of predetermined size; Based on the location regions within the target region, a first matrix is constructed, where each element of the first matrix corresponds to a location region within the target region; Based on the movement trajectories of multiple pedestrians, the coordinates of each pedestrian at each time point are determined, and then the pedestrians in each location area at that time point are identified, and the values of the elements corresponding to that location area in the first matrix are set. Among them, healthy pedestrians and sick pedestrians correspond to different values. Using a predefined convolution kernel for close contact, a two-dimensional convolution operation is performed on the first matrix to update the first matrix. The value of each element in the updated first matrix represents the first probability of direct contact transmission in the location area corresponding to that element at that time point. The calculation of the second probability of infection includes: Based on the location regions within the target region, a second matrix is constructed, where each element of the second matrix corresponds to a location region within the target region; Based on the movement trajectories of the multiple pedestrians, the coordinates of each pedestrian at each time point are determined, and then the pedestrians in each location area at that time point are determined. Based on the pedestrians in each location area at that time point and the second matrix of the previous time point, the values of each element in the second matrix at that time point are determined. Using a predefined convolution kernel for aerosol transmission, a two-dimensional convolution operation is performed on the second matrix to update the second matrix. The value of each element in the updated second matrix represents the second probability of aerosol transmission in the location area corresponding to that element at that time point. The calculation of the third infection probability includes: Based on the location regions within the target region, a third matrix is initialized, where each element of the third matrix corresponds to a location region within the target region; Identify the target location area containing the solid contact object within the target area; Based on the movement trajectories of the multiple pedestrians, the coordinates of each pedestrian at each time point are determined, and then the target number of infected pedestrians who have passed through the target location area up to that time point is determined. The values of the elements corresponding to the target location area in the third matrix are updated according to the target number to obtain the updated third matrix. The value of each element in the updated third matrix represents the third probability of solid contact infection in the location area corresponding to that element at that time point.
7. The method as described in claim 6, characterized in that, The process of generating the probability of a healthy pedestrian being infected based on the infection probability of each location area and the movement trajectory of the healthy pedestrian includes: Based on the movement trajectory of healthy pedestrians, determine the coordinates of the healthy pedestrians at each time point and their corresponding location area; The probability of a healthy pedestrian being infected at that time point is determined based on the infection probability of the location area to which the healthy pedestrian belongs at that time point.
8. A risk management and assessment system based on population simulation, characterized in that, include: The population distribution information acquisition module is used to acquire global population distribution information for the target area; The motion trajectory generation module is used to generate the motion trajectory of pedestrians within the target area based on the global population distribution information of the target area. The risk assessment module is used to conduct a population risk assessment of the target area based on the movement trajectory of pedestrians within the target area; The motion trajectory generation module is specifically used for: Obtain the boundary coordinates of the target area and the boundary coordinates of each sub-area included in the target area; and obtain the individual parameters of each pedestrian, wherein the individual parameters include at least: the entry point and entry time of entering the target area, the sub-areas expected to be traversed, and the exit point and exit time expected to leave the target area; For each pedestrian, a sequence containing multiple dwell times is generated, and each dwell time in the sequence is sequentially assigned to the sub-regions that the pedestrian is expected to pass through. The sum of all dwell times in the sequence does not exceed the total dwell time of the pedestrian in the target area. Based on the global population distribution information, determine the local population distribution information of the sub-region to which each stop time belongs during that stop time, and determine the coordinates of the stop point corresponding to that stop time based on the local population distribution information; insert the stop point corresponding to each stop time in the sequence into the pedestrian's travel route in sequence to generate the pedestrian's stop point list; Using a social force model, the trajectory of the pedestrian as they go to each stop point in the list of stops is calculated, and the pedestrian's movement trajectory is generated. The motion trajectory generation module is further specifically used for: The coordinates and time of the starting position of the pedestrian to be simulated in the target area are input into the pre-trained generative adversarial imitation learning model. Obtain the motion trajectory of the pedestrian to be simulated generated by the generative adversarial imitation learning model; The generative adversarial imitation learning model is trained using a heatmap of pedestrian trajectories and population distribution in the target area, which is generated based on the global population distribution information.
9. The system as described in claim 8, characterized in that, The population distribution information acquisition module is specifically used for: Obtain the location coordinates of multiple sampling points within the target area and the first population distribution time series of each sampling point; Each sampling point is connected to the k closest sampling points in physical distance to obtain a first connection edge, generating a first graph network including the multiple sampling points and the first connection edge; each sampling point is connected to the k sampling points with the highest similarity to the first population distribution time series to obtain a second connection edge, generating a second graph network including the multiple sampling points and the second connection edge. The first graph network, the second graph network, and the first population distribution time series are input into the graph convolutional neural network GCN to obtain the second population distribution time series of each sampling point output by GCN. The second population distribution time series is input into the gated recurrent unit (GRU) to obtain the third population distribution time series of each sampling point predicted by the GRU. The third population distribution time series is input into a completion module to obtain a fourth population distribution time series of the global population distribution of the target area predicted by the completion module, which serves as the global population distribution information of the target area.
10. The system as described in claim 8, characterized in that, Also includes: The model training module is used to train the generative adversarial imitation learning model using a pre-obtained heatmap of pedestrian trajectories and population distribution in the target area, before setting the coordinates and time of the starting position of the pedestrian to be simulated in the target area.
11. The system as described in claim 8, characterized in that, The population risk assessment includes at least one of disease transmission risk assessment, crowd overcrowding assessment, and shopping mall profitability risk assessment.
12. The system as claimed in claim 11, characterized in that, When the population risk assessment is a disease transmission risk assessment, the risk assessment module is specifically used for: The movement trajectories of each pedestrian within the target area are determined, including at least one sick pedestrian and at least one healthy pedestrian. Based on the movement trajectory of the sick pedestrian, the first probability of direct contact transmission, the second probability of aerosol transmission, and the third probability of solid contact transmission are calculated for each location area within the target area. Direct contact transmission refers to the distance between the location area and the sick pedestrian being less than a first threshold; aerosol transmission refers to the location area being within an aerosol area; and solid contact transmission refers to the presence of solid contact material contaminated by the sick pedestrian in the location area. Based on the first infection probability, the second infection probability, and the third infection probability, calculate the infection probability of each location area within the target area; The probability of a healthy pedestrian being infected is generated based on the infection probability of each location area and the movement trajectory of the healthy pedestrian.
13. The system as described in claim 12, characterized in that, The calculation of the first infection probability includes: Divide the target area into multiple location zones of predetermined size; Based on the location regions within the target region, a first matrix is constructed, where each element of the first matrix corresponds to a location region within the target region; Based on the movement trajectories of multiple pedestrians, the coordinates of each pedestrian at each time point are determined, and then the pedestrians in each location area at that time point are identified, and the values of the elements corresponding to that location area in the first matrix are set. Among them, healthy pedestrians and sick pedestrians correspond to different values. Using a predefined convolution kernel for close contact, a two-dimensional convolution operation is performed on the first matrix to update the first matrix. The value of each element in the updated first matrix represents the first probability of direct contact transmission in the location area corresponding to that element at that time point. The calculation of the second probability of infection includes: Based on the location regions within the target region, a second matrix is constructed, where each element of the second matrix corresponds to a location region within the target region; Based on the movement trajectories of the multiple pedestrians, the coordinates of each pedestrian at each time point are determined, and then the pedestrians in each location area at that time point are determined. Based on the pedestrians in each location area at that time point and the second matrix of the previous time point, the values of each element in the second matrix at that time point are determined. Using a predefined convolution kernel for aerosol transmission, a two-dimensional convolution operation is performed on the second matrix to update the second matrix. The value of each element in the updated second matrix represents the second probability of aerosol transmission in the location area corresponding to that element at that time point. The calculation of the third infection probability includes: Based on the location regions within the target region, a third matrix is initialized, where each element of the third matrix corresponds to a location region within the target region; Identify the target location area containing the solid contact object within the target area; Based on the movement trajectories of the multiple pedestrians, the coordinates of each pedestrian at each time point are determined, and then the target number of infected pedestrians who have passed through the target location area up to that time point is determined. The values of the elements corresponding to the target location area in the third matrix are updated according to the target number to obtain the updated third matrix. The value of each element in the updated third matrix represents the third probability of solid contact infection in the location area corresponding to that element at that time point.
14. The system as described in claim 13, characterized in that, The risk assessment module is also used for: Based on the movement trajectory of healthy pedestrians, determine the coordinates of the healthy pedestrians at each time point and their corresponding location area; The probability of a healthy pedestrian being infected at that time point is determined based on the infection probability of the location area to which the healthy pedestrian belongs at that time point.
Citation Information
Patent Citations
Pedestrian trajectory simulation method and system based on social force model
CN115526018A
Pedestrian trajectory simulation method and system based on generative adversarial imitation learning model
CN115526645A
Infection risk assessment method and system based on pedestrian motion trail
CN115527687A
