A video-based collaborative evacuation simulation method and device
Through the collaborative evacuation simulation method based on video data, combined with the data processing model and psychological coefficient correction of pedestrians and vehicles, the problem of inaccurate pedestrian-vehicle collaborative evacuation prediction in the existing technology is solved, achieving more accurate evacuation prediction and simulation, and improving Improve evacuation control efficiency.
Patent Information
- Application Number
- CN202310006077.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-01-04
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2043-01-04
AI Technical Summary
The existing technology fails to effectively consider the synergy between people and vehicles and the psychological factors of pedestrians in high-density pedestrian and vehicle evacuation research, resulting in inaccurate evacuation predictions.
A collaborative evacuation simulation method based on video data is adopted. By acquiring video data of pedestrians and vehicles, inputting the corresponding data processing model and the evacuation prediction model modified by psychological coefficients, combined with the pedestrian-vehicle interaction evacuation rules, the prediction results of pedestrians and vehicles are integrated. Generate collaborative evacuation prediction results and display simulation videos.
It achieves more accurate prediction of pedestrian-vehicle collaborative evacuation scenarios, takes into account the psychological factors of pedestrians, improves the accuracy and practicality of evacuation prediction, and can better simulate and control the flow of people in practical applications.
Smart Images

Figure CN116013093B
Abstract
Description
Technical Field
[0001] The present application relates to the field of data processing technology, and in particular to a video-based collaborative evacuation simulation method and device. Background Art
[0002] With the development of society, the density of cities continues to increase, and the density of people and vehicles in various places increases. The high-density gathering of people and vehicles can easily lead to a significant reduction in travel efficiency and safety accidents such as stampedes. In response to such situations, some scholars have conducted modeling research on crowd evacuation behavior and vehicle traffic behavior to simulate the macro and micro movements of people and vehicles. In addition, with the development and maturity of information technology, analyzing the movement patterns of people and vehicles through big data has gradually become an emerging research direction.
[0003] At present, in the research on high-density human and vehicle evacuation, the movement of crowds or vehicles is mainly studied separately, usually analyzing the pedestrian area and the vehicle area respectively, without considering the influence of the synergy between people and vehicles on the overall evacuation effect in the human-vehicle-road evacuation scenario. In addition, the above studies do not take into account the heterogeneity of pedestrians in the area, and do not consider the influence of pedestrians' psychological factors on crowd evacuation. Therefore, it is necessary to develop a video-based collaborative evacuation simulation method and device to realize the analysis and evacuation simulation of crowd movement and vehicle movement in the human-vehicle-road collaborative evacuation scenario. Summary of the invention
[0004] In view of the above problems, the embodiments of the present application provide a video-based collaborative evacuation simulation method and device to overcome the above problems or at least partially solve the above problems.
[0005] A first aspect of an embodiment of the present application provides a video-based collaborative evacuation simulation method, comprising:
[0006] Acquire video data of a target area, where the target area is one or more of a pedestrian walking area, a motor vehicle passing area, a bus waiting area, and a crosswalk area;
[0007] Inputting pedestrian data in the video data into a pedestrian data processing model to obtain a pedestrian data processing result, and inputting vehicle data in the video data into a vehicle data processing model to obtain the vehicle data processing result;
[0008] Inputting the pedestrian data processing result into the pedestrian evacuation prediction model corrected based on the psychological coefficient to obtain the pedestrian evacuation process prediction result;
[0009] Inputting the vehicle data processing result into a vehicle motion model to obtain a vehicle driving process prediction result;
[0010] Based on the pedestrian-vehicle interactive evacuation rules, the pedestrian evacuation process prediction results and the vehicle driving process prediction results are integrated to obtain the pedestrian-vehicle-road collaborative evacuation prediction results;
[0011] According to the evacuation prediction result of the human-vehicle-road collaboration, a simulated evacuation video is displayed.
[0012] A second aspect of this embodiment provides a video-based collaborative evacuation simulation device, including:
[0013] An acquisition module, used to acquire video data of a target area, wherein the target area is one or more of a pedestrian walking area, a motor vehicle passing area, a bus waiting area, and a crosswalk area;
[0014] a data processing module, used to input pedestrian data in the video data into a pedestrian data processing model to obtain pedestrian data processing results, and also used to input vehicle data in the video data into a vehicle data processing model to obtain vehicle data processing results;
[0015] A pedestrian evacuation prediction module, used for inputting the pedestrian data processing result into a pedestrian evacuation prediction model corrected based on the psychological coefficient to obtain a pedestrian evacuation process prediction result;
[0016] A vehicle motion prediction module, used for inputting the vehicle data processing result into a vehicle motion model to obtain a vehicle driving process prediction result;
[0017] An integration module, for integrating the pedestrian evacuation process prediction result and the vehicle driving process prediction result based on the pedestrian-vehicle-road interactive evacuation rule, to obtain a pedestrian-vehicle-road collaborative evacuation prediction result;
[0018] The display module is used to display a simulated evacuation video according to the evacuation prediction result of the human-vehicle-road collaboration.
[0019] The embodiment of the present application provides a video-based collaborative evacuation simulation method and device, the method comprising: obtaining video data of a target area, the target area being one or more of a pedestrian walking area, a motor vehicle passing area, a bus waiting area, and a crosswalk area; inputting the video data into a video data processing model to obtain pedestrian data processing results and vehicle data processing results; obtaining pedestrian evacuation process prediction results based on a pedestrian evacuation model; obtaining vehicle driving process prediction results based on a vehicle motion model; integrating pedestrian evacuation prediction results and vehicle driving prediction results based on human-vehicle-road collaborative evacuation rules, and displaying a simulated evacuation video. Based on real video data, the present application utilizes a pedestrian evacuation prediction model, a vehicle motion model, and human-vehicle interactive evacuation rules to achieve collaborative evacuation prediction of human-vehicle-road evacuation scenarios such as pedestrian walking areas and / or motor vehicle passing areas, simulate and visualize regional crowd flow characteristics, provide traffic diversion and collaborative control solutions, and improve the evacuation and control efficiency of people in core areas.
[0020] The specific beneficial effects are as follows:
[0021] 1) The collaborative evacuation prediction of the human-vehicle-road collaborative evacuation scenario is realized. The existing technology mainly predicts the evacuation behavior for pedestrian areas or vehicle areas separately. This application takes into account the human-vehicle interaction area of the bus waiting area and the crosswalk area, and based on the human-vehicle interaction evacuation rules, the behavior of pedestrians and vehicles is predicted at the same time, fully considering the mutual influence between pedestrians and vehicles, thereby realizing the collaborative evacuation prediction of the human-vehicle-road collaborative evacuation scenario, which can achieve better prediction effect in real evacuation application scenarios.
[0022] 2) Evacuation prediction is more accurate. The present application uses the psychological coefficient to modify the pedestrian evacuation prediction model, so that when simulating crowd movement, the influence of pedestrian psychological factors on the evacuation process can be fully considered, thereby obtaining a more accurate evacuation prediction result.
[0023] 3) Evacuation prediction based on real video data of the target area. Compared with the prior art that performs evacuation prediction by inputting various crowd parameters or vehicle parameters into the model, the present application performs analysis and calculation based on the acquired real video data of the target area to obtain the final simulated evacuation video and evacuation prediction results. The technical solution of the present application based on analysis of real video data can realize the direct use of on-site monitoring videos, thereby improving the practicality and convenience of the technical solution. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the description of the embodiments of the present application will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0025] Figure 1 It is a flowchart of the steps of a video-based collaborative evacuation simulation method provided in an embodiment of the present application;
[0026] Figure 2 It is a schematic diagram of a collaborative evacuation simulation video generation process provided in an embodiment of the present application;
[0027] Figure 3 is a schematic diagram of a transfer rule of a cellular automaton provided in an embodiment of the present application;
[0028] Figure 4 is an example diagram of a conflict resolution mechanism provided by an embodiment of the present application;
[0029] Figure 5 It is a flow chart of a bus waiting area evacuation rule provided in an embodiment of the present application;
[0030] Figure 6 This is a schematic diagram of the location distribution of a bus waiting area provided in an embodiment of the present application;
[0031] Figure 7 It is a flowchart of a pedestrian crossing area evacuation rule provided in an embodiment of the present application;
[0032] Figure 8 is a schematic diagram of the location distribution of a crosswalk area provided in an embodiment of the present application;
[0033] Fig. 9 It is a structural diagram of a video-based collaborative evacuation simulation device provided in this embodiment. DETAILED DESCRIPTION
[0034] The exemplary embodiments of the present application will be described in more detail below in conjunction with the accompanying drawings in the embodiments of the present application. Although the exemplary embodiments of the present application are shown in the accompanying drawings, it should be understood that the present application can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided in order to enable a more thorough understanding of the present application and to enable the scope of the present application to be fully communicated to those skilled in the art.
[0035] First, in order to facilitate the understanding of the embodiments of the present application, the relevant concepts involved therein are explained.
[0036] Cellular automata (CA) is a grid dynamics model in which time, space, and state are all discrete, spatial interactions and temporal causality are local, and it has the ability to simulate the spatiotemporal evolution of complex systems. Unlike general dynamics models, cellular automata are not determined by strictly defined physical equations or functions, but are composed of a series of model construction rules. Its characteristics are that time, space, and state are all discrete, each variable can only take a finite number of states, and the rules of its state change are local in time and space.
[0037] The cellular automaton model is a classic microscopic model for studying pedestrian evacuation. The discrete form of the cellular automaton model allows each individual to move to an adjacent cell with probability. Using Moore's neighborhood, the transfer rules based on static and dynamic fields are as follows: Figure 3 As shown, Figure 3 A schematic diagram of the transfer rule of a cellular automation is shown. The static ground field S reflects the pedestrian's expectation of reaching the destination in the shortest distance, which is inversely proportional to the distance from the pedestrian's current position to the destination; the dynamic ground field D describes the "herd effect" of following the trajectory of other pedestrians, which diffuses to adjacent cells with a coefficient α over time and decays with a coefficient β. The static ground field and the dynamic ground field are combined to obtain the ground field rule, and the ground field rule is used to calculate the probability of the target individual moving to the adjacent cell, so as to finally predict the movement trajectory of the target individual from the starting point to the destination.
[0038] The vehicle NS model (Nagel-Schreckenberg, NS), also known as the NS cellular automaton model, is a typical application of the cellular automaton model in road traffic. It can be used to describe the acceleration, deceleration, random slowing and position update behaviors of vehicles. Suppose the speed v of vehicle n on the road is n , its basic behavior rules are as follows: 1) Acceleration behavior rule, under the condition of not exceeding the maximum speed limit, the vehicle is expected to travel at the maximum speed, v n →mi n(v n +1, v max ); 2) Deceleration behavior rules: To avoid collision with the vehicle in front, the vehicle decelerates v n →mi n(v n , gap n ), where gap n is the distance between vehicle n and the front vehicle (the distance from the front of the rear vehicle to the rear of the front vehicle); 3) Random deceleration rule: due to uncertain factors such as the driver and the environment, the vehicle decelerates with a certain probability. Let the deceleration probability be P slow , the vehicle speed is calculated with probability P slow Deceleration v n →max(v n-1, 0); 4) Position update rule: every unit time, the speed of the vehicle is updated according to rule ac, and the vehicle moves at the updated speed, x n →x n +v n , where x n is the length position of vehicle n on the road.
[0039] The following is a specific implementation plan of this application.
[0040] The present application embodiment provides a video-based collaborative evacuation simulation method, referring to Figure 1 , Figure 1 A flowchart of a video-based collaborative evacuation simulation method provided in an embodiment of the present application is shown in FIG. Figure 1 As shown, including:
[0041] Step S101, obtaining video data of a target area, wherein the target area is one or more of a pedestrian walking area, a motor vehicle passing area, a bus waiting area, and a crosswalk area;
[0042] Step S102, inputting pedestrian data in the video data into a pedestrian data processing model to obtain pedestrian data processing results, and inputting vehicle data in the video data into a vehicle data processing model to obtain vehicle data processing results;
[0043] Step S103, inputting the pedestrian data processing result into the pedestrian evacuation prediction model corrected based on the psychological coefficient to obtain the pedestrian evacuation process prediction result;
[0044] Step S104, inputting the vehicle data processing result into a vehicle motion model to obtain a vehicle driving process prediction result;
[0045] Step S105, based on the pedestrian-vehicle interaction evacuation rule, integrating the pedestrian data processing result and the vehicle data processing result to obtain a video processing result;
[0046] Step S106: display a simulated evacuation video according to the evacuation prediction result of the human-vehicle-road collaboration.
[0047] In this embodiment, the video data of the target area can be the data of the real video captured by the surveillance camera for the target area, and can be video data composed of multiple frames of images, including pedestrians and vehicles in the target area, and the positions and relative positional relationships of each pedestrian and vehicle in the target area. Thus, according to the video data, the instantaneous speed of the pedestrian or vehicle, the position in the target area, the trajectory of movement, etc. can be analyzed, and then the information such as the stationary, decelerated, uniform or accelerated state of the target pedestrian or vehicle at the current moment can be obtained. There are many classic models for crowd evacuation and road traffic, such as sociological models, cellular automaton models, vehicle NS models and neural network models. However, most of the above models are based on simulation, that is, by inputting crowd-related parameters or vehicle-related parameters into the corresponding model, the simulated evacuation results are obtained by using the model calculation results. This solution is less combined with actual scenes and data, and it is difficult to directly analyze the difference between the predicted results of the model and the actual evacuation results. This application obtains the video data of the target area and analyzes the real video data, thereby realizing the direct use of the surveillance video and improving the practicality and convenience of the technical solution.
[0048] In this embodiment, the video data of the target area is one or more of a pedestrian walking area, a motor vehicle passing area, a bus waiting area, and a crosswalk area. Among them, the bus waiting area belongs to the human-vehicle interaction area because there are pedestrians waiting for the bus and pedestrians passing by, as well as buses passing by. Similarly, the crosswalk area has pedestrians waiting at the crosswalk, pedestrians crossing the crosswalk, and vehicles crossing the crosswalk, and this area also belongs to the human-vehicle interaction area. In the previous modeling and analysis research on crowd evacuation, it is often a separate study of areas where only crowds exist (such as pedestrian streets) or areas where only vehicles exist (such as highway areas), lacking evacuation analysis of human-vehicle interaction areas. This application obtains video data of bus waiting areas and crosswalk areas, takes into account the synergy between people and vehicles in the prediction process, and based on the human-vehicle interaction evacuation rules, simultaneously predicts the behavior of pedestrians and vehicles, fully considering the mutual influence between pedestrians and vehicles, thereby realizing the collaborative evacuation prediction of the human-vehicle-road collaborative evacuation scene, and can achieve better prediction effects in real evacuation application scenarios.
[0049] In practical applications, the video-based collaborative evacuation simulation method proposed in this application can be applied to a user software platform. The acquired video data of the target area is input into the user software platform, and the algorithm module in the platform performs analysis and prediction to obtain the prediction results, and generates an evacuation simulation video for the target area for display.
[0050] Specifically, the user software platform can be used to process video data of target areas such as pedestrian walking areas, motor vehicle traffic areas, bus waiting areas and crosswalk areas. Figure 2 , Figure 2 A schematic diagram of the collaborative evacuation simulation video generation process is shown in FIG. Figure 2 As shown, by logging into the user software platform, the acquired video data of the target area is input into the platform, and the platform performs preprocessing. Figure 2 In the input step shown, when the video data is input into the platform, other condition information is input at the same time, including personnel and vehicle related information, model parameter information and road network information. Specifically, the road network information can be the road information of the target area, including the actual length and width of the road, and the distance and height between the surveillance camera and the target area. In addition, the above information can be pre-stored in the user software platform. According to Figure 2 In the data processing step shown, the user software platform inputs the video data into the corresponding data processing model in advance according to the target area type of the video, thereby obtaining pedestrian data processing results and vehicle data processing results.
[0051] according to Figure 2 In the calculation step shown, when the target area is a pedestrian walking area, the pedestrian data processing result is input into the pedestrian evacuation prediction model to obtain the pedestrian evacuation process prediction result; when the target area is a motor vehicle traffic area, the vehicle data processing result is input into the vehicle motion model to obtain the vehicle driving process prediction result; when the target area is a bus waiting area and / or a pedestrian crossing area, the pedestrian data processing result and the vehicle data processing result are respectively input into the corresponding prediction model to obtain the pedestrian evacuation process prediction result and the vehicle driving process prediction result, and then based on the human-vehicle interactive evacuation rules, the pedestrian data processing result and the vehicle data processing result are integrated to obtain the human-vehicle interactive evacuation process prediction result.
[0052] Finally, according to the output results obtained by the model, the user software platform generates the corresponding simulated evacuation video to demonstrate the evacuation process, and outputs the corresponding simulation data. According to the simulation data, the estimated evacuation completion time of the target area can be obtained. The user software platform provides a platform and a visual interface that is easy for users to operate, and simulates the evacuation process of people and vehicles according to the video data of different scenes. The model can be trained by inputting the video data under the specified scene. During the simulation prediction process, the control instructions triggered by the user can be received to realize the operations such as interruption, continuation, restart, and end. Exemplarily, by building a road network map of the area near the National Stadium, using the pedestrian video of Bashu Middle School for migration verification, simulating the evacuation process of people and vehicles in the area around the National Stadium, reproducing the congestion and evacuation process of people and vehicles, and guiding the control of people and vehicles. In addition, it can also be applied to the construction of smart cities and smart transportation, using the big data monitoring platform to predict the characteristics of people and vehicle flow during peak hours and sections, and to optimize transportation facilities and formulate people and vehicle control plans in advance.
[0053] This application obtains video data of the target area, which is one or more of the pedestrian walking area, motor vehicle traffic area, bus waiting area and crosswalk area; inputs the video data into the video data processing model to obtain pedestrian data processing results and vehicle data processing results; obtains pedestrian evacuation process prediction results based on the pedestrian evacuation model; obtains vehicle driving process prediction results based on the vehicle motion model; integrates pedestrian evacuation prediction results and vehicle driving prediction results based on human-vehicle-road collaborative evacuation rules, and displays a simulated evacuation video. This application is based on real video data, using pedestrian evacuation prediction models, vehicle motion models, and combined with human-vehicle interactive evacuation rules to achieve collaborative evacuation prediction of human-vehicle-road evacuation scenarios such as crosswalk areas and bus waiting areas, simulate and visualize regional pedestrian flow characteristics, provide traffic diversion and collaborative control solutions, and improve the evacuation and control efficiency of people in core areas.
[0054] In one embodiment, the pedestrian data processing model processes the pedestrian data in the video data according to the following steps to obtain a pedestrian data processing result:
[0055] Step S201, performing video data distortion correction on the video data to obtain corrected video data;
[0056] Step S202, performing target recognition and tracking on the corrected video data to obtain target trajectory data;
[0057] Step S203, integrating and processing the target trajectory data to obtain the pedestrian data processing result;
[0058] Wherein, step S201, performing video data distortion correction on the video data to obtain corrected video data, specifically includes:
[0059] Step S2011, obtaining the real geographic parameters of the target area and the camera parameters of the camera that shoots the video data;
[0060] Step S2012, determining a planar mapping relationship from the two-dimensional image coordinates in the video data to the three-dimensional space coordinates of the target area according to the real geographic parameters and the camera parameters;
[0061] Step S2013, obtaining corrected video data according to the plane mapping relationship, wherein the corrected video data is plane coordinate data of pedestrians and vehicles in the real scene of the target area;
[0062] It should be noted that video images are easily affected by perspective distortion, so when predicting pedestrian trajectories, it is necessary to pre-correct the video data for distortion in order to reconstruct the coordinates of the pedestrians. Specifically, a three-dimensional space coordinate system can be established by acquiring the real scene captured by the surveillance camera, and the coordinates of any point in the coordinate system are (X i , Y i , Z i ). According to the acquired video data, a two-dimensional image coordinate system is established, and the coordinates of any point in the image are (u i , v i ).
[0063] First, the real geographic parameters of the target area and the camera parameters of the camera shooting the video data are obtained. The real geographic parameters include the location, length, area size and other data of the target area, and the camera parameters include the internal parameters of the camera and the relative position information of the camera in the real space, including the height and distance of the camera relative to the target area.
[0064] Then, according to the real geographic parameters and camera parameters, the plane mapping relationship from the two-dimensional image coordinates in the video data to the three-dimensional space coordinates of the target area is determined. Specifically, the camera matrix A is established according to the real geographic parameters and camera parameters, A = (a ij )∈R 3×4 , the matrix A parameters depend on the internal parameters of the camera and the relative position of the camera in space. The specific structure is as follows:
[0065]
[0066] Since the coordinates (X i , Y i , Z i ) and (u i , vi ) There is a mapping relationship between the three-dimensional space coordinates and the two-dimensional image coordinates, and a function g:R3→R2 can be constructed, which is expressed as a projection process (u i , v i )=g(X i , Y i , Z i ), the projection plane is designed to simulate the geometric characteristics of perspective projection. Ignoring the nonlinear radial and tangential distortion components, the calibration process in direct linear transformation is used to realize the mapping relationship, and the closed-form solution is obtained for the algebraic error. The specific formula is:
[0067] (Formula 1)
[0068] Among them, since the camera matrix A has singularity, it is not possible to invert it to realize the mapping of pixel coordinates to real world coordinates. Therefore, assuming that the real scene in the image belongs to the Z=0 plane, Formula 1 is simplified to the plane mapping relationship:
[0069] (Formula 2)
[0070] Where H=(h ij )∈R 3×3 Represents the homography matrix, which is invertible.
[0071] Finally, according to the plane mapping relationship function obtained by formula 2, the corrected video data is obtained, and the corrected video data is the plane coordinate data of pedestrians and vehicles in the real scene of the target area. After obtaining N (N≥4) pairs of feature matching points of the two-dimensional image coordinate system and the three-dimensional space coordinate system, the unknowns of the homography matrix H can be solved. Through the measurement of the field site and the comparison of the camera image, the plane coordinates of the pedestrian in the real scene can be obtained, and the conversion from the image pedestrian tracking data to the pedestrian movement trajectory can be realized, providing a basis for pedestrian trajectory prediction.
[0072] After completing the distortion correction of the video data, the corrected video data is subjected to target recognition and tracking to obtain target trajectory data. In this process, pedestrian recognition and tracking can use the YOLOv4 target detection algorithm and the Deep SORT multi-target tracking algorithm. The YOLOv4 target detection algorithm is used to detect pedestrians and each frame of the image is annotated using a bounding box to obtain corresponding state parameters, including the center position, aspect ratio and height of the bounding box, and the speed parameters of the above parameters in the image coordinate system. Based on the above state parameters, the Kalman filter of the uniform velocity model and the linear observation model can be used to predict and update the target trajectory. For the processing of the trajectory, a metric association is used to record the duration of the trajectory from the last successful match to the current moment. If the duration exceeds the predefined maximum threshold, the trajectory that has not been matched for a long time is considered to have ended and terminated, and the detection without successful matching is considered to be likely to generate a new trajectory. In addition, in order to obtain the association between the predicted Kalman state and the new actual measurement value, the target motion and appearance information are combined and measured using a similarity index. For target motion with low uncertainty, the Mahalanobis distance can be used for measurement. At the same time, in order to make up for the problem of a large number of Mahalanobis distances not being able to match due to camera motion, the minimum cosine distance can be introduced to measure the appearance information.
[0073] In this embodiment, step S203, integrating the target trajectory data to obtain the pedestrian data processing result, specifically includes the following steps:
[0074] Step S2031, obtaining the position data of the target once at a preset time interval from the target trajectory data in the order of occurrence time;
[0075] Step S2032, when the distance between two adjacent position data exceeds a preset maximum distance, determining the target trajectory data as erroneous data and deleting it;
[0076] Step S2033: When the sum of the distances between N adjacent two of the position data is less than a preset shortest distance, the target trajectory data is determined as stationary target data and deleted.
[0077] In this embodiment, since this embodiment uses real-time monitoring data as model input to achieve evacuation prediction. However, real-time data generally has problems such as data missing, data mutation and data duplication, it is necessary to pre-process the corrected pedestrian trajectory data to adapt to the evacuation model. Since the interval between each frame of video data is small and the difference in pedestrian positions between adjacent frames is not large, linear interpolation is used to handle the missing of a single or a small number of data points in the pedestrian trajectory. In the process of pedestrian detection and tracking, due to detection and tracking errors, different pedestrians may be marked with the same number, resulting in a mutation in the pedestrian trajectory data. According to step S2031, the position data of the target can be expressed as s c (t), represents the position data of pedestrian c at time t, then s c (t+1) represents the position data of pedestrian c at time t+1, that is, the position data obtained after a preset interval. According to step S2032, the corresponding formula is expressed as: c (t+1)-s c (t)>L MAX , the target trajectory data is determined as erroneous data, it is considered that a detection error has occurred, and the trajectory data is deleted. MAX The preset maximum distance;
[0078] Similarly, due to the repeated detection of stationary objects or non-evacuated pedestrians, in this case, the speed of the falsely detected pedestrians is extremely small and has no statistical significance. To monitor the movement of pedestrians in a continuous time, according to step S2033, the corresponding formula is expressed as:
[0079]
[0080] When the condition is met, the target trajectory data is determined as erroneous data, and the trajectory data corresponding to the pedestrian is deleted, where L min The preset shortest distance.
[0081] In addition, due to the use of online data processing, when the amount of data is large, it is necessary to consider data storage and reading, so the pedestrian trajectory is pushed in and popped out. For a single pedestrian trajectory, the current pedestrian speed is estimated by the sliding average method. For the target pedestrian, if its position is not detected after a preset time interval, it is considered that it has left the monitoring area and the data is popped out.
[0082] In one embodiment, before inputting the pedestrian data processing result into the pedestrian evacuation prediction model, the method further includes:
[0083] S301, obtaining the speed of the target pedestrian according to the pedestrian data processing result;
[0084] S302, determining a physiological coefficient of the target pedestrian according to the environmental risk parameter and the speed;
[0085] Among them, let the target pedestrian speed obtained by video data be v c,t0 Assignment of the initial physiological coefficient Φ c (t0), considering that the physiological properties have high stability and volatility within a small range, the specific physiological coefficient formula is:
[0086] (Formula 3)Φ c (t+Δt)-Φ c (t)~N(0,λ 2 Δt)
[0087] Where Δt is the preset time interval, N(0,λ 2 Δt) represents the normal distribution, λ is the environmental risk coefficient, which is used to reflect the urgency of the evacuation process, Φ c (t) is the physiological coefficient of pedestrian c at time t. Since the actual pedestrian physiological fluctuation has a certain range, Φ c (t) is limited to [(1-Δ Φ )Φ c (t0),(1+Δ Φ )Φ c (t0)], where Δ Φ The maximum fluctuation range.
[0088] S303, determining a psychological coefficient of the target pedestrian according to the environmental risk parameter, the stress level of the target pedestrian and the speed;
[0089] The psychological coefficient is independent of the physiological coefficient. The psychological coefficient is affected by the environmental risk parameter λ and the individual stress level s c (t), the initial psychological coefficients of different pedestrians follow the normal distribution
[0090] In one embodiment, the calculation formula of step S303 is:
[0091] (Formula 4)
[0092] Wherein, λ is the environmental risk parameter, It represents the parameter that changes with time, reflecting the pedestrian's nervousness. represents the average speed of pedestrian c at the previous t moments, k Θ To adjust the psychological coefficient impact and balance dimension parameters, ΔΘ c is the transformation range of the psychological coefficient, Θ c (t0) is the initial psychological coefficient of the pedestrian.
[0093] S304, combining the physiological coefficient and the psychological coefficient to obtain a heterogeneity coefficient;
[0094] Specifically, the physiological coefficient and the psychological coefficient are combined by the multiplication rule, and the heterogeneity coefficient expression is proposed. The specific formula is:
[0095] (Formula 5) B c (t) = Φ c (t)×(1+k B Θ c (t))
[0096] Among them, k B It is the adjustment coefficient of physiological attributes and psychological attributes.
[0097] S305: Using the heterogeneity coefficient, assign a heterogeneity value to the speed of the target pedestrian. The specific formula is:
[0098] (Formula 6)v c (t) = B c (t)·v u
[0099] Among them, v c (t) represents the speed of pedestrian c at time t, v u is the pedestrian unit speed.
[0100] The behavior of pedestrians in the evacuation process is determined by both physiology and psychology. In order to consider the dynamic process of pedestrians in the evacuation process, this embodiment proposes a heterogeneous pedestrian assignment method to perform heterogeneous particle characterization on the pedestrian flow to achieve more accurate evacuation prediction.
[0101] In one embodiment, the pedestrian evacuation prediction model is a cellular automaton model, and the steps of modifying the cellular automaton model using the psychological coefficient are as follows:
[0102] S401, obtaining the psychological coefficient;
[0103] S402, modifying the cellular probability calculation formula according to the psychological coefficient to obtain a modified cellular probability calculation formula;
[0104] S403, using the modified cellular probability calculation formula as the state transition probability calculation formula of the cellular automation model to determine the pedestrian single-step decision result;
[0105] In actual application scenarios, as psychological pressure increases, pedestrians will be more inclined to reach their destination in the shortest distance, that is, the possibility of moving in other directions decreases. At the same time, when pedestrian pressure increases, individuals are more inclined to move with people around them. Therefore, this embodiment modifies the cellular automaton model based on the obtained psychological coefficient, mainly modifying the state transition probability calculation formula. Specifically, assuming that the cell position currently occupied by pedestrian C is (i0, j0), the probability formula for its transfer to the surrounding cells is:
[0106] (Formula 7)P i,j =Nexp(k s S i,j )exp(k D D i,j )ξ i,j σ i,j
[0107] Where N is the regularization coefficient, let ∑ i,j P i,j =1; k s and k D To adjust the static field S i,j and dynamic field D i,j Sensitivity coefficient, n i,j ∈{0,1} indicates whether the cell is occupied, ξ i,j ∈{0,1} indicates whether there is an obstacle at the cell location; is the anisotropy coefficient, which is used to balance the distances in the horizontal and oblique directions, S i,j is the initial static field parameter, D i,j are the initial dynamic field parameters.
[0108] According to step S402, after the psychological coefficient is obtained, the static field and dynamic field coefficients of the original cellular automaton model are corrected based on the psychological coefficient as follows:
[0109] (Formula 8)
[0110] Among them, k s and k D To adjust the coefficient of the influence of pressure on the static and dynamic fields, K s and K D is the basic static field and dynamic field sensitivity coefficient; Θ c (t) is the psychological coefficient.
[0111] Therefore, the cell probability calculation formula based on the correction of the psychological coefficient is:
[0112] (Formula 9)P i,j =Nexp(V i,j )(1-ni,j )ξ i,j σ i,j
[0113] Among them, P i,j is the ground field transfer rule, that is, the probability of the target transferring from the (i, j) cell to the surrounding cells; V i,j is the ground field parameter, which is the ground field established by integrating the static ground field and the dynamic ground field. The specific formula is:
[0114] (Formula 10) V i,j =(K s +k s Θ c (t))S i,j +(K D +k D Θ c (t))D i,j
[0115] In addition, when the cellular automaton model uses heterogeneously assigned pedestrian speeds, its update method needs to be adjusted. Specifically, let the update time step Δt' = L / v max , where L is the cell width, v max is the maximum pedestrian speed. Let ξ c (t) is a random number between [0, 1], when ξ c (t)<v c (t) / v max When , the individual updates its position, otherwise it stays at the original position.
[0116] Therefore, this embodiment corrects the static field and dynamic field coefficients in the cellular automaton model by obtaining the corresponding psychological coefficients, thereby realizing the correction of the comprehensive ground field parameters. Therefore, when calculating the probability of the target pedestrian moving from the occupied cell to the adjacent cell, the influence of the psychological factors of the target pedestrian on his actions is fully considered, so that the calculated probability is more accurate, thereby obtaining a more accurate trajectory prediction result.
[0117] In one embodiment, in step S403, after the modified probability calculation formula is used as the state transition rule of the cellular automation model, the pedestrian single-step decision result is determined according to the following steps:
[0118] S4031, determining a competition intensity coefficient according to the psychological coefficient;
[0119] S4032, determining a cell occupancy probability according to the competition intensity coefficient;
[0120] S4033, obtaining the pedestrian single-step decision result according to the cell occupancy probability;
[0121] Reference Figure 4 , Figure 4 An example diagram of a conflict resolution mechanism is shown, such as Figure 4 As shown in the figure, when multiple pedestrians try to occupy the same cell, the traditional solution is to select the one with the highest probability to enter the target cell according to the transfer probability, or all pedestrians do not move. However, the original solution ignores the psychological factors of pedestrians during the conflict process. This embodiment achieves more accurate and realistic situation prediction by adding the psychological coefficient to the conflict resolution mechanism.
[0122] In step S4031, based on the activation response of the neuron, the competition intensity coefficient ψ of the psychological coefficient is introduced. c The calculation formula of (t) is:
[0123] (Formula 11)
[0124] Among them, k ψ is the slope, n c (t) is the number of people in the neighborhood of pedestrian c;
[0125] According to the competition intensity coefficient, the cell occupancy probability is determined The calculation formula is:
[0126] (Formula 12)
[0127] in, represents the probability that the original pedestrian c occupies cell (i, j) at position (i0, j0) at time t; is the competition intensity coefficient of pedestrian c at cell (i0, j0), is the state transition probability of pedestrian c from cell (i0, j0) to cell (i, j) obtained according to the state transition probability calculation formula, A(i, j) is the original position set of the conflicting pedestrians; the probability of pedestrian c occupying the conflicting cell is affected by psychological and directional parameters.
[0128] Furthermore, the original occupancy probability may be modified, and the specific calculation formula is:
[0129] (Formula 13)
[0130]
[0131] In this embodiment, the specific process of generating a decision result according to the calculated cell occupancy probability can be expressed as follows: by setting a random number when When , pedestrian c is marked. If and only if there is only one pedestrian marked, the pedestrian is updated to the desired conflict cell position, and when multiple pedestrians or no pedestrians are marked, all pedestrians stay in their original cells.
[0132] In one embodiment, the vehicle motion model is a vehicle NS model;
[0133] The vehicle NS model includes a vehicle lane changing rule, and the vehicle lane changing rule includes:
[0134] Lane-changing motivation rule: when the distance between the target vehicle and the preceding vehicle in the lane cannot satisfy the vehicle acceleration tendency of the vehicle n, it is determined that the target vehicle has a lane-changing motivation;
[0135] Lane changing rules for adjacent lanes: the distance between the vehicles in front of the target vehicle after the lane change is greater than the distance between the vehicles in front of the target vehicle before the lane change, so that the lane where the vehicle is located after the lane change can meet the acceleration expectations of the vehicle;
[0136] Safety rules: After changing lanes, the distance between the target vehicle and the vehicle behind is greater than the preset minimum safety distance. After changing lanes, the vehicle needs to maintain a certain safety distance from the vehicle behind to avoid collision between the vehicle behind and the vehicle in front after changing lanes.
[0137] In general vehicle NS models, the update rules are generally based on a single lane and do not take into account the vehicle's lane changing behavior. However, actual road traffic is mostly a multi-lane system. Therefore, this application takes into account the possibility of vehicles changing lanes and sets relevant lane changing conditions and lane changing rules to make the prediction results obtained through the vehicle NS model more accurate and realistic.
[0138] In addition, the boundary conditions of the vehicle NS model can be divided into periodic boundary conditions and open boundary conditions. In the periodic boundary condition, when the vehicle reaches the downstream and is ready to move out of the road section, the vehicle moves to the upstream section and repeats the simulation of the road NS cell process; in the open boundary condition, the vehicle moves in or out of the road system with a certain probability. The periodic boundary condition is a simulation under ideal conditions; in actual road traffic conditions, vehicles arrive at the upstream of the road at random with a certain probability. Since there may be congestion and other phenomena downstream and affected by the vehicle in front of the next section, the vehicle may slow down and other behaviors, so this embodiment adopts open boundary conditions.
[0139] Set boundary cells outside the upstream and downstream ends of the road. The boundary cells at the upstream end of the road are generated with probability α and speed v max The vehicles at the boundary are updated with the speed and position of the NS model and added to the road system. The boundary cells at the downstream end of the road generate vehicles with a probability of β, thereby affecting the speed and position update of the vehicles in the downstream area. When the boundary cells at the downstream end of the road are occupied, the vehicles in the middle and downstream of the road slow down and do not move out of the road system temporarily.
[0140] In one embodiment, the human-vehicle interaction evacuation rule includes a bus waiting area evacuation rule, referring to Figure 5 , Figure 5 A schematic diagram of a process flow of bus waiting area evacuation rules is shown, such as Figure 5 As shown, the bus waiting area evacuation rules include:
[0141] The bus deceleration rule is that when the distance between the bus and the bus stop is less than L before the bus enters the stop, the bus decelerates and prepares to enter the stop, and the bus speed is not 0;
[0142] Where L is the preset bus entry preparation distance, which means that when the bus approaches the bus stop and the distance is less than L, the bus starts to prepare to enter the station, change lanes, slow down, etc., and the speed is not 0, that is, v 公交车 →max(v 公交车 -1,1);
[0143] The bus lane-changing rule is that when the distance between the bus and the bus stop is less than L before the bus enters the stop, and the bus is not in the adjacent lane of the bus stop, the bus will change lanes; during the bus lane-changing process, the first vehicle in the destination lane and behind the bus will decelerate and give way, that is, v'→max(v'-1,0), where v' is the speed of the vehicle that decelerates to give way to the bus;
[0144] The bus stop rule, the bus stop time in the bus stop is determined by the bus minimum stop time and the number of passengers, wherein the number of passengers is determined by the number of people waiting at the stop and the maximum passenger capacity of the bus; T = t0 + min {tN p ,tN max}, where t is the average boarding time of pedestrians at the bus stop, N p is the number of people waiting at the bus stop, N max is the maximum passenger capacity of the bus, and t0 is the shortest stay time of the bus;
[0145] Bus waiting rules: when the bus arrives at a bus stop and there are other buses at the bus stop that have not left, the bus arriving at the bus stop will stop and wait until the previous bus leaves before entering the stop;
[0146] The bus entry and exit speed rules set the bus to slow down to 0 when entering the station and the initial speed to 0 when leaving the station.
[0147] The bus waiting area refers to the area near the bus stop. The interaction between people and vehicles in this area has a more obvious impact on road traffic and pedestrian evacuation process time. Buses may change lanes to adjacent lanes at the stop and stay at the stop. The number of pedestrians and the maximum passenger capacity of the bus also affect the bus's stay time at the stop.
[0148] For example, refer to Figure 6 , Figure 6 A schematic diagram of the location distribution of a bus waiting area is shown. Figure 6 As shown, the bus stop is A, the bus preparing to enter the stop is B, and the other vehicles are C1, C2, and C3. Among them, 1, 2, and 3 are road areas where vehicles travel, and 4 is a pedestrian area where pedestrians walk. The direction of the arrow is the direction of vehicle travel, and L is the preset bus entry preparation distance. Specifically, the driving data of the vehicle in the road area where the vehicle travels is input into the vehicle NS model to obtain the prediction result of the vehicle's movement process; the pedestrian data of the pedestrian area where pedestrians walk is input into the cellular automaton model to obtain the prediction result of the pedestrian evacuation process. Based on the evacuation rules of the bus waiting area, considering the impact of bus stops and bus lane changes on the vehicle driving process, and the impact of buses waiting, passing and leaving at bus stops on the movement data of pedestrians, the prediction results are comprehensively obtained to obtain the evacuation prediction result of the human-vehicle-road collaboration in the bus waiting area, and realize the evacuation prediction of the human-vehicle interaction area.
[0149] In one embodiment, referring to Figure 7 , Figure 7 A schematic diagram of a process flow of evacuation rules for a pedestrian crossing area is shown, such as Figure 7 As shown, the pedestrian-vehicle interaction evacuation rule includes a pedestrian crosswalk area evacuation rule, and the pedestrian crosswalk area evacuation rule includes:
[0150] Passing and stopping rules: when a vehicle reaches the crosswalk area and there are no pedestrians in the area, the vehicle passes normally; when a pedestrian reaches the crosswalk area and there are no vehicles in the area, the pedestrian passes normally; when a vehicle reaches the crosswalk area and there are pedestrians in the area, the vehicle slows down and stops and does not pass through the crosswalk area; when a vehicle reaches the crosswalk area before a pedestrian, the pedestrian waits for the vehicle to pass through the area before passing;
[0151] Specifically, when a vehicle (pedestrian) reaches the crosswalk and there are no pedestrians (vehicles) in the pedestrian-vehicle interaction area, the vehicle (pedestrian) passes normally. When a vehicle reaches the crosswalk and there are people at the crosswalk, if the vehicle speed is not 0, the vehicle stops upstream of the crosswalk and the speed is updated to 0; when a pedestrian reaches the crosswalk and the vehicle can reach the crosswalk before the pedestrian crosses the crosswalk (i.e., l p / v p >lc / v c ) , pedestrians do not enter the crosswalk and wait for vehicles to pass.
[0152] Vehicle deceleration rule: when the distance between the vehicle and the crosswalk is less than L', and there are pedestrians on the crosswalk, the vehicle performs pre-deceleration behavior, and the vehicle speed is not 0 before reaching the crosswalk, where L' is the preset deceleration preparation distance;
[0153] The longest waiting time rule, when the waiting time of a vehicle exceeds a first preset threshold, pedestrians are suspended from entering the crosswalk area, and the vehicle passes through the area; when the waiting time of pedestrians exceeds a second preset threshold, the vehicle is suspended from entering the crosswalk area, and pedestrians pass through the area;
[0154] The maximum waiting number rule is that when the number of waiting people in the crosswalk area exceeds a preset number threshold and the probability of pedestrians passing exceeds a preset probability threshold, pedestrians pass through the crosswalk area.
[0155] At a crosswalk with a traffic light, the behavior of pedestrians and motor vehicles is guided by the traffic light, and the position and status are updated at different time periods. The interaction between the two is weak. This embodiment defines the rules for the relationship between pedestrians, vehicles and roads in the crosswalk area without traffic lights. Figure 8 , Figure 8 A schematic diagram of the location distribution of a pedestrian crossing area is shown, such as Figure 8 As shown, rows 1, 2, 3, and 4 are the highway areas where vehicles are traveling, the middle is the crosswalk area, the direction of the arrow is the driving direction of the vehicles on the road, and L' is the preset deceleration preparation distance. Specifically, the driving data of the vehicles on the highway is input into the vehicle NS model to obtain the prediction results for the vehicle's movement process; the pedestrian data in the crosswalk area is input into the cellular automaton model to obtain the prediction results for the pedestrian evacuation process. Based on the evacuation rules of the crosswalk area, the impact of the vehicle's deceleration, stopping and other behaviors on the vehicle's driving process is considered at the same time, and the impact of the vehicle's crossing the crosswalk on the pedestrian's movement data is considered. The prediction results are comprehensively obtained to obtain the evacuation prediction results of the human-vehicle-road collaborative evacuation in the crosswalk area, realizing the evacuation prediction of the human-vehicle interaction area.
[0156] This embodiment also provides a video-based collaborative evacuation simulation device, referring to Fig. 9 , Fig. 9 A schematic diagram of the structure of a video-based collaborative evacuation simulation device is shown in FIG. Fig. 9 As shown, the device comprises:
[0157] An acquisition module, used to acquire video data of a target area, wherein the target area is one or more of a pedestrian walking area, a motor vehicle passing area, a bus waiting area, and a crosswalk area;
[0158] a data processing module, used to input pedestrian data in the video data into a pedestrian data processing model to obtain pedestrian data processing results, and also used to input vehicle data in the video data into a vehicle data processing model to obtain vehicle data processing results;
[0159] A pedestrian evacuation prediction module, used for inputting the pedestrian data processing result into a pedestrian evacuation prediction model corrected based on the psychological coefficient to obtain a pedestrian evacuation process prediction result;
[0160] A vehicle motion prediction module, used for inputting the vehicle data processing result into a vehicle motion model to obtain a vehicle driving process prediction result;
[0161] An integration module, for integrating the pedestrian evacuation process prediction result and the vehicle driving process prediction result based on the pedestrian-vehicle-road interactive evacuation rule, to obtain a pedestrian-vehicle-road collaborative evacuation prediction result;
[0162] The display module is used to display a simulated evacuation video according to the evacuation prediction result of the human-vehicle-road collaboration.
[0163] In one embodiment, the data processing module includes:
[0164] A distortion correction submodule, used to perform video data distortion correction on the video data to obtain corrected video data;
[0165] A target recognition submodule is used to perform target recognition and tracking on the corrected video data to obtain target trajectory data;
[0166] An integration submodule, used for integrating the target trajectory data to obtain the pedestrian data processing result;
[0167] The distortion correction submodule includes:
[0168] A first calibration unit, configured to obtain real geographic parameters of the target area and camera parameters of a camera that shoots the video data;
[0169] A second correction unit, configured to determine a planar mapping relationship from two-dimensional image coordinates in the video data to three-dimensional space coordinates of the target area according to the real geographic parameters and the camera parameters;
[0170] A third correction unit, configured to obtain corrected video data according to the plane mapping relationship, wherein the corrected video data is plane coordinate data of pedestrians and vehicles in a real scene of the target area;
[0171] Wherein, the integration submodule comprises:
[0172] A first integration unit is used to obtain the position data of the target once at a preset time interval from the target trajectory data in the order of occurrence time;
[0173] A second integration unit is used to determine the target trajectory data as erroneous data and delete it when the distance between two adjacent position data exceeds a preset maximum distance;
[0174] The third integration unit is used to determine the target trajectory data as stationary target data and delete it when the sum of the distances between two adjacent N position data is less than a preset shortest distance.
[0175] In one embodiment, the device further comprises:
[0176] A speed acquisition module, used to acquire the speed of the target pedestrian according to the pedestrian data processing result;
[0177] A physiological coefficient determination module, used to determine the physiological coefficient of the target pedestrian according to the environmental risk parameter and the speed;
[0178] A psychological coefficient determination module, used to determine the psychological coefficient of the target pedestrian according to the environmental risk parameter, the tension level of the target pedestrian and the speed;
[0179] A combining module, used for combining the physiological coefficient and the psychological coefficient to obtain a heterogeneity coefficient;
[0180] The value assignment module is used to use the heterogeneity coefficient to perform heterogeneity assignment on the speed of the target pedestrian.
[0181] In one embodiment, the calculation formula of the psychological coefficient determination module is:
[0182]
[0183] Where, λ is the environmental risk parameter, s c (t) = 1-v c (t) / k Θ Θ c (t) represents the parameter that changes with time, v c (t) represents the speed of pedestrian c at time t, k Θ To adjust the psychological coefficient impact and balance dimension parameters, ΔΘc is the transformation range of the psychological coefficient;
[0184] The calculation formula of the combined module is:
[0185] B c (t) = Φ c (t)×(1+k B Θ c (t))
[0186] Among them, Φ c (t) is the physiological coefficient of pedestrian c at time t, k B is the adjustment coefficient of physiological attributes and psychological attributes;
[0187] The calculation formula of the assignment module is:
[0188] v c (t) = B c (t)·v u
[0189] Among them, v c (t) represents the speed of pedestrian c at time t, v u is the pedestrian unit speed.
[0190] In one embodiment, the vehicle motion model is a vehicle NS model;
[0191] The vehicle NS model includes a vehicle lane changing rule, and the vehicle lane changing rule includes:
[0192] Lane-changing motivation rule: when the distance between the target vehicle and the preceding vehicle in the lane cannot satisfy the vehicle acceleration tendency of the vehicle n, it is determined that the target vehicle has a lane-changing motivation;
[0193] Lane change rule for adjacent lanes: the distance between the vehicles in front of the target vehicle after the lane change is greater than the distance between the vehicles in front of the target vehicle before the lane change;
[0194] Safety rule: after changing lanes, the distance between the target vehicle and the following vehicle is greater than the preset minimum safety distance.
[0195] In one embodiment, the pedestrian evacuation prediction model is a cellular automaton model, and the device includes a correction module for correcting the cellular automaton model using the psychological coefficient;
[0196] The correction module comprises:
[0197] A psychological coefficient acquisition submodule, used to acquire the psychological coefficient;
[0198] A cellular probability correction submodule, used to correct the cellular probability calculation formula according to the psychological coefficient to obtain a corrected cellular probability calculation formula;
[0199] A determination submodule, used to use the modified cellular probability calculation formula as the state transition probability calculation formula of the cellular automation model to determine the pedestrian single-step decision result;
[0200] Among them, the modified cell probability calculation formula is:
[0201] P i,j =Nexp(V i,j )(1-n i,j )ξ i,j σ i,j
[0202] Among them, P i,j is the probability of the target transferring from the (i, j) cell to the surrounding cells, N is the regularization coefficient, let ∑ i, j P i,j =1;n i,j ∈{0,1} indicates whether the cell is occupied; ξ i,j ∈{0,1} indicates whether there is an obstacle at the cell location; is the anisotropy coefficient, which is used to balance the distances in the horizontal and oblique directions; V i,j is the ground field parameter, specifically:
[0203] V i,j =(K s +k s Θ c (t))S i,j +(K D +k D Θ c (t))D i,j
[0204] Among them, k s and k D To adjust the coefficient of the influence of pressure on the static and dynamic fields, K s and K D is the basic static field and dynamic field sensitivity coefficient; S i,j is the initial static field parameter, D i,j is the initial dynamic field parameter, Θ c (t) is the psychological coefficient.
[0205] In one embodiment, the determining submodule further includes:
[0206] A competition intensity coefficient determination unit, used to determine the competition intensity coefficient according to the psychological coefficient;
[0207] A cell occupation probability determination unit, used to determine the cell occupation probability according to the competition intensity coefficient;
[0208] A decision result determination unit, used for obtaining the pedestrian single-step decision result according to the cell occupancy probability;
[0209] Wherein, the competition intensity coefficient ψ is determined according to the psychological coefficient c The calculation formula of (t) is:
[0210]
[0211] Among them, k ψ is the slope, n c (t) is the number of people in the neighborhood of pedestrian c;
[0212] According to the competition intensity coefficient, the cell occupancy probability is determined The calculation formula is:
[0213]
[0214] in, represents the probability that the original pedestrian c occupies cell (i, j) at position (i0, j0) at time t; is the competition intensity coefficient of pedestrian c at cell (i0, j0), is the state transition probability of pedestrian c from cell (i0, j0) to cell (i, j) obtained according to the state transition probability calculation formula, and A(i, j) is the original position set of the conflicting pedestrians.
[0215] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.
[0216] The embodiments of the present application are described with reference to the flowcharts and / or block diagrams of the methods, apparatuses, electronic devices, and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0217] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0218] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0219] Although the preferred embodiments of the present application have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present application.
[0220] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "including one..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
[0221] The above is a detailed introduction to a video-based collaborative evacuation simulation method and device provided by the present application. This article uses specific examples to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea; at the same time, for general technical personnel in this field, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A video-based collaborative evacuation simulation method, characterized in that: include: Acquire video data of a target area, where the target area is one or more of a pedestrian walking area, a motor vehicle passing area, a bus waiting area, and a crosswalk area; Inputting pedestrian data in the video data into a pedestrian data processing model to obtain a pedestrian data processing result, and inputting vehicle data in the video data into a vehicle data processing model to obtain the vehicle data processing result; Inputting the pedestrian data processing result into the pedestrian evacuation prediction model corrected based on the psychological coefficient to obtain the pedestrian evacuation process prediction result; Inputting the vehicle data processing result into a vehicle motion model to obtain a vehicle driving process prediction result; Based on the pedestrian-vehicle interactive evacuation rules, the pedestrian evacuation process prediction results and the vehicle driving process prediction results are integrated to obtain the pedestrian-vehicle-road collaborative evacuation prediction results; Displaying a simulated evacuation video according to the evacuation prediction result of the human-vehicle-road collaboration; Before inputting the pedestrian data processing result into the pedestrian evacuation prediction model, the method further includes: According to the pedestrian data processing result, obtaining the speed of the target pedestrian; determining a physiological coefficient of the target pedestrian according to an environmental risk parameter and the speed; determining a psychological coefficient of the target pedestrian according to the environmental risk parameter, the nervousness of the target pedestrian and the speed; Combining the physiological coefficient and the psychological coefficient to obtain a heterogeneity coefficient; Using the heterogeneity coefficient, assigning heterogeneity to the speed of the target pedestrian; The calculation formula for determining the psychological coefficient of the target pedestrian according to the environmental risk parameter, the tension level of the target pedestrian and the speed is: ; in, is the environmental risk parameter, represents the time-varying parameter, v c (t) represents the speed of pedestrian c at time t, To adjust the psychological coefficient impact and balance dimension parameters, is the transformation range of the psychological coefficient; The calculation formula of the heterogeneity coefficient obtained by combining the physiological coefficient and the psychological coefficient is: ; in, is the physiological coefficient of pedestrian c at time t, k B is the adjustment coefficient of physiological attributes and psychological attributes; The heterogeneity coefficient is used to assign heterogeneity to the speed of the target pedestrian, and the calculation formula is: v c (t)=B c (t)·v u ; Among them, v c (t) represents the speed of pedestrian c at time t, v u is the pedestrian unit speed.
2. The video-based collaborative evacuation simulation method according to claim 1, characterized in that: The pedestrian data processing model processes the pedestrian data in the video data according to the following steps to obtain the pedestrian data processing result: Performing video data distortion correction on the video data to obtain corrected video data; Performing target recognition and tracking on the corrected video data to obtain target trajectory data; Integrate and process the target trajectory data to obtain the pedestrian data processing result; The step of performing video data distortion correction on the video data to obtain corrected video data includes: Acquire the real geographic parameters of the target area and the camera parameters of the camera shooting the video data; Determining a planar mapping relationship between two-dimensional image coordinates in the video data and three-dimensional space coordinates of the target area according to the real geographic parameters and the camera parameters; According to the plane mapping relationship, corrected video data is obtained, wherein the corrected video data is plane coordinate data of pedestrians and vehicles in a real scene of the target area; The target trajectory data is integrated and processed to obtain pedestrian data processing results, including: From the target trajectory data, in the order of occurrence time, the position data of the target is obtained once at intervals of a preset time length; When the distance between two adjacent position data exceeds a preset maximum distance, the target trajectory data is determined as erroneous data and deleted; When the sum of the distances between N adjacent two of the position data is less than a preset shortest distance, the target trajectory data is determined as stationary target data and deleted.
3. The video-based collaborative evacuation simulation method according to claim 1, characterized in that: The vehicle motion model is a vehicle NS model; The vehicle NS model includes a vehicle lane changing rule, and the vehicle lane changing rule includes: Lane-changing motivation rule: when the distance between the target vehicle and the preceding vehicle in the lane cannot satisfy the vehicle acceleration tendency of the vehicle n, it is determined that the target vehicle has a lane-changing motivation; Lane change rule for adjacent lanes: the distance between the vehicles in front of the target vehicle after the lane change is greater than the distance between the vehicles in front of the target vehicle before the lane change; Safety rule: after changing lanes, the distance between the target vehicle and the following vehicle is greater than the preset minimum safety distance.
4. The video-based collaborative evacuation simulation method according to claim 1, characterized in that: The pedestrian evacuation prediction model is a cellular automaton model. The steps of using the psychological coefficient to correct the cellular automaton model are as follows: Obtaining the psychological coefficient; The cellular probability calculation formula is modified according to the psychological coefficient to obtain a modified cellular probability calculation formula; The modified cellular probability calculation formula is used as the state transition probability calculation formula of the cellular automation model to determine the pedestrian single-step decision result; Among them, the modified cell probability calculation formula is: ; Among them, P i,j is the probability of the target transferring from the (i, j) cell to the surrounding cells, N is the regularization coefficient, let Indicates whether the cell is occupied; Indicates whether there is an obstacle at the cell location; is the anisotropy coefficient, which is used to balance the distances in the horizontal and oblique directions; V i,j is the ground field parameter, specifically: ; Among them, k s and k D To adjust the coefficient of the influence of pressure on the static and dynamic fields, K s and K D is the basic static field and dynamic field sensitivity coefficient; S i,j is the initial static field parameter, D i,j is the initial dynamic field parameter, is the psychological coefficient.
5. The video-based collaborative evacuation simulation method according to claim 4, characterized in that: After the modified probability calculation formula is used as the state transition rule of the cellular automaton model, the pedestrian single-step decision result is determined according to the following steps: Determine the competition intensity coefficient based on the psychological coefficient; Determining the cell occupancy probability according to the competition intensity coefficient; According to the cell occupancy probability, a single-step decision result of the pedestrian is obtained; Wherein, the competition intensity coefficient is determined according to the psychological coefficient The calculation formula is: ; in, is the slope, is the number of people in the neighborhood of pedestrian c; According to the competition intensity coefficient, the cell occupancy probability is determined The calculation formula is: ; in, Indicates the original pedestrian c at time t The probability of occupying cell (i, j); For the cell The competition intensity coefficient of pedestrian c at ; is the pedestrian c obtained from the cell according to the state transition probability calculation formula The state transition probability to cell (i, j), A (i, j) is the original position set of the conflicting pedestrians.
6. The video-based collaborative evacuation simulation method according to claim 1, characterized in that: The person-vehicle interaction evacuation rules include bus waiting area evacuation rules, and the bus waiting area evacuation rules include: The bus deceleration rule is that when the distance between the bus and the bus stop is less than L before the bus enters the stop, the bus decelerates and prepares to enter the stop, and the bus speed is not 0; The bus lane-changing rule is that when the distance between the bus and the bus stop is less than L before the bus enters the stop and the bus is not in the adjacent lane of the bus stop, the bus will change lanes; during the bus lane-changing process, the first vehicle behind the bus in the destination lane will slow down and give way; The bus stop rules, the stop time of the bus at the bus stop is determined by the minimum stop time of the bus and the number of passengers, wherein the number of passengers is determined by the number of people waiting at the stop and the maximum passenger capacity of the bus; Bus waiting rules: when the bus arrives at a bus stop and there are other buses at the bus stop that have not left, the bus arriving at the bus stop will stop and wait until the previous bus leaves before entering the stop; The bus entry and exit speed rules set the bus to slow down to 0 when entering the station and the initial speed to 0 when leaving the station.
7. The video-based collaborative evacuation simulation method according to claim 1, characterized in that: The pedestrian-vehicle interaction evacuation rules include pedestrian crossing area evacuation rules, and the pedestrian crossing area evacuation rules include: Passing and stopping rules: when a vehicle reaches the crosswalk area and there are no pedestrians in the area, the vehicle passes normally; when a pedestrian reaches the crosswalk area and there are no vehicles in the area, the pedestrian passes normally; when a vehicle reaches the crosswalk area and there are pedestrians in the area, the vehicle slows down and stops and does not pass through the crosswalk area; when a vehicle reaches the crosswalk area before a pedestrian, the pedestrian waits for the vehicle to pass through the area before passing; Vehicle deceleration rule: when the distance between the vehicle and the crosswalk is less than L', and there are pedestrians on the crosswalk, the vehicle will perform pre-deceleration behavior, and the vehicle speed will not be 0 before reaching the crosswalk; The longest waiting time rule, when the waiting time of a vehicle exceeds a first preset threshold, pedestrians are suspended from entering the crosswalk area, and the vehicle passes through the area; when the waiting time of pedestrians exceeds a second preset threshold, the vehicle is suspended from entering the crosswalk area, and pedestrians pass through the area; The maximum waiting number rule is that when the number of waiting people in the crosswalk area exceeds a preset number threshold and the probability of pedestrians passing exceeds a preset probability threshold, pedestrians pass through the crosswalk area.
8. A video-based collaborative evacuation simulation device, characterized in that: The video-based collaborative evacuation simulation method applied to any one of claims 1 to 7, the device comprising: An acquisition module, used to acquire video data of a target area, wherein the target area is one or more of a pedestrian walking area, a motor vehicle passing area, a bus waiting area, and a crosswalk area; a data processing module, used to input pedestrian data in the video data into a pedestrian data processing model to obtain pedestrian data processing results, and also used to input vehicle data in the video data into a vehicle data processing model to obtain vehicle data processing results; A pedestrian evacuation prediction module, used for inputting the pedestrian data processing result into a pedestrian evacuation prediction model corrected based on the psychological coefficient to obtain a pedestrian evacuation process prediction result; A vehicle motion prediction module, used for inputting the vehicle data processing result into a vehicle motion model to obtain a vehicle driving process prediction result; An integration module, for integrating the pedestrian evacuation process prediction result and the vehicle driving process prediction result based on the pedestrian-vehicle-road interactive evacuation rule, to obtain a pedestrian-vehicle-road collaborative evacuation prediction result; The display module is used to display a simulated evacuation video according to the evacuation prediction result of the human-vehicle-road collaboration.
