Crowd space-time distribution analysis method and device based on monitoring array, equipment and medium

Through the monitoring array face recognition and multi-target tracking technology, combined with the LSTM model, the monitoring equipment data is analyzed to solve the problem of crowd activity situation awareness, realize crowd distribution and flow prediction, and provide a scientific basis for urban management.

CN118568408AActive Publication Date: 2024-08-30CHINESE ACAD OF SURVEYING & MAPPING

Patent Information

Application Number
CN202411027967.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-30
Publication Date
2024-08-30
Estimated Expiration
2044-07-30

AI Technical Summary

Technical Problem

Existing surveillance systems cannot effectively sense and predict crowd activity in densely populated areas, especially in blind spots. They cannot accurately determine the spatial pattern of crowd distribution and flow, which leads to challenges in urban security maintenance and facility planning.

Method used

Through monitoring array face recognition technology and multi-target tracking technology, combined with the LSTM model, the video data collected by the monitoring equipment is analyzed, the monitoring area and spatial elements are divided, the urban information unit is constructed, and long-term human flow information data is generated to predict future human flow conditions. .

Benefits of technology

It achieves the detection of spatio-temporal hot spots in crowd activity areas and the accurate prediction of traffic transfer directions, provides scientific basis for urban facility planning, police deployment and business strategies, and improves urban management and security prevention and control capabilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118568408A
    Figure CN118568408A
Patent Text Reader

Abstract

The embodiment of the invention provides a crowd space-time distribution analysis method and device based on a monitoring array, equipment and a medium. The method comprises the steps that position data of the monitoring array is divided to generate road section data, and connection of space elements is established for all road sections; carrying out corresponding segmentation on the intersection monitoring area, and determining a belonging road section of each block; detecting and marking identity and position change information of personnel in each image frame through a face recognition and multi-target tracking technology; determining the personnel flow information of each road section and the AOI and / or the key POI set for each road section based on the statistical time period, averaging the personnel flow determined in the statistical time period to the AOI and the key POI, and associating the average value of the personnel flow with the AOI and the key POI set for each road section to obtain each city information unit; and training an LSTM model by using the long-time-sequence people flow information data, and predicting people flow information of the research area. The problem that an existing method is inaccurate in crowd spatio-temporal evolution and distribution rule prediction is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of crowd spatiotemporal analysis, and in particular to a crowd spatiotemporal distribution analysis method, device, equipment and medium based on a monitoring array. Background Art

[0002] With the acceleration of urbanization and the expansion of population size, how to effectively perceive and predict the activities of people has become a key issue in urban management and social security. At the same time, monitoring array technology and multi-source spatial data also provide a possible solution to this problem. The crowd situation perception analysis and prediction method based on monitoring array and multi-source spatial data can improve the city's safety prevention and control capabilities and provide a scientific basis for urban planning decisions.

[0003] At present, with the acceleration of urbanization, the maintenance and management of public security in densely populated areas has become a focus of social attention. In these areas, monitoring equipment has become an important regulatory tool, but due to the discrete layout of cameras and the existence of blind spots, the existing monitoring system can only monitor the flow of people in each monitoring area, and cannot determine the blind spots (such as roads without monitoring), the distribution of people and the spatial pattern of flow. Therefore, how to use the flow of people collected by monitoring equipment and the spatial data in the geographical environment to deduce the distribution of people in the blind spots of monitoring, and to perceive and monitor the crowd status of the entire crowd activity area, is an urgent problem to be solved.

[0004] At present, the existing crowd simulation is mainly based on the simulation of hypothetical data, which cannot verify its authenticity and inaccurately predicts the spatiotemporal evolution and distribution of crowds. How to use the real-time monitored crowd state data to analyze the spatiotemporal evolution of regional crowd states, obtain the spatiotemporal flow pattern of crowds in the region, detect the spatiotemporal hotspots of crowd activity areas, and further analyze their causes, so as to provide a strong basis for the facility planning, police deployment, business strategy, crowd guidance, etc. in the region, is also the focus of research.

[0005] In view of this, a method for cluster analysis of the spatiotemporal distribution of populations is needed to better reveal the spatiotemporal evolution and distribution patterns of urban information unit groups. Summary of the invention

[0006] In order to overcome the problems existing in the related art, the present disclosure provides a method, device, equipment and medium for analyzing the spatiotemporal distribution of a crowd based on a monitoring array.

[0007] One or more embodiments of this specification provide a method for analyzing the spatiotemporal distribution of a crowd based on a monitoring array, comprising the following steps: Determine the monitoring area boundary, divide the monitoring array position data of the monitoring area to generate section data, and establish connections between each section and POI and / or AOI spatial elements; The monitoring area of ​​the intersection monitoring equipment is divided accordingly according to the distribution of the intersection, and the section to which each block belongs is determined, which is used to determine the block and section to which the personnel flow belongs in each image frame; Through face recognition technology and multi-target tracking technology, the identity information and position change information of people in each image frame are detected and marked, and the movement trajectory of multiple target objects is determined; Based on the statistical period, determine the flow of people in each section of each period, and the AOI and / or key POI set on each section, average the flow of people determined in the statistical period to the AOI and key POI, and associate the average flow of people with the AOI and key POI set on each section to obtain each city information unit containing long-term passenger flow information data, that is, generate a city information unit containing long-term passenger flow information data, wherein the passenger flow information includes passenger flow and personnel turning; The LSTM model is trained using long-term passenger flow information data, where the LSTM model is used to predict passenger flow information in the study area in the future.

[0008] One or more embodiments of this specification provide a crowd spatiotemporal distribution analysis device based on a monitoring array, including: A monitoring area segmentation module is used to determine the boundaries of the monitoring area, divide the monitoring array position data of the monitoring area to generate section data, and establish connections between each section and POI and / or AOI spatial elements; The intersection area division module is used to divide the monitoring area of ​​the intersection monitoring equipment according to the distribution of the intersection, determine the section to which each block belongs, and determine the block and section to which the personnel flow belongs in each image frame; A multi-target tracking module is used to detect and mark the identity information and position information of the objects in each image frame through face recognition technology and multi-target tracking technology, and determine the movement trajectory of the multi-target objects; The city information unit construction module is used to determine the personnel flow information of each road section in each period, and the AOI and / or key POI set for each road section based on the statistical period, average the passenger flow determined in the statistical period to the AOI and key POI, and associate the average passenger flow with the AOI and key POI set for each road section to obtain each city information unit containing long-term passenger flow information data, wherein the passenger flow information includes passenger flow and personnel turning; The prediction module is used to train the LSTM model using long-term crowd flow information data, where the LSTM model is used to predict the crowd flow information in the future period of the study area.

[0009] One or more embodiments of the present specification provide a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method for analyzing the spatiotemporal distribution of a crowd based on a monitoring array as described above when executing the computer program.

[0010] One or more embodiments of the present specification provide a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the steps of the method for analyzing spatiotemporal distribution of a crowd based on a monitoring array as described above.

[0011] The present invention provides a crowd spatiotemporal distribution analysis method, device, equipment and medium based on monitoring array, which have the advantages of analyzing the distribution of monitoring array, AOI and POI in the area, segmenting the video area of ​​the monitoring equipment in combination with the road network, establishing the belonging blocks of personnel flow in the video collected by the monitoring equipment at each intersection, combining the urban information units divided by the multi-source urban spatial information of the personnel flow situation, forming a multi-space level management area planning, and using the urban information units as group quantity statistical nodes to construct regional personnel flow data with time series change characteristics, and then based on the LSTM model, the spatiotemporal evolution analysis of the crowd status at multiple times is carried out, the spatial pattern of crowd distribution in the monitoring blind spot is deduced, the spatiotemporal hotspots in the crowd activity change area are further detected, and the flow transfer direction of the city in each time period is estimated, which can provide a strong basis for regional facility planning, police force deployment, business strategy, crowd guidance, etc. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate one or more embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0013] Figure 1 A flow chart of a method for analyzing the spatiotemporal distribution of a crowd based on a monitoring array provided in one or more embodiments of this specification; Figure 2 A schematic diagram of the spatialization of a monitoring array provided for one or more embodiments of this specification; Figure 3 A schematic diagram of multi-source spatial data matching connection provided for one or more embodiments of this specification; Figure 4 A schematic diagram of dividing the monitoring area of ​​an intersection monitoring device is provided for one or more embodiments of this specification; Figure 5A schematic diagram of a process of associating AOI with a route is provided for one or more embodiments of this specification; Figure 6 A block diagram of a device for analyzing the spatiotemporal distribution of a crowd based on a monitoring array provided in one or more embodiments of this specification; Figure 7 A schematic diagram of the structure of a computer device provided for one or more embodiments of this specification. DETAILED DESCRIPTION

[0014] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the technical solutions in one or more embodiments of this specification will be clearly and completely described below in conjunction with the drawings in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the protection scope of the present invention.

[0015] The present invention is described in detail below in conjunction with specific implementation methods and the accompanying drawings.

[0016] Method Embodiment According to an embodiment of the present invention, a device monitoring display and interaction optimization method for complex scenes is provided, such as Figure 1 As shown, it is a flow chart of the test method for interval evacuation based on subway emergency failure provided in this embodiment. The device monitoring display and interactive optimization method for complex scenes according to the embodiment of the present invention includes: Step 110, determine the monitoring area boundary, divide the monitoring array position data of the monitoring area to generate road section data, and establish a connection between each road section and POI (Point of Information) and / or AOI (Area of ​​interest) spatial elements.

[0017] Step 120 , segment the monitoring area of ​​the intersection monitoring equipment according to the intersection distribution, determine the road section to which each block belongs, and determine the block and road section to which the personnel flow belongs in each image frame.

[0018] Step 130, using face recognition technology and multi-target tracking technology to mark the identity information and location information of the person in each image frame, and determine the movement trajectory of the multi-target objects.

[0019] Step 140, based on the statistical period, determine the personnel flow information of each road section in each period, and the AOI and / or key POI set for each road section, average the passenger flow determined in the statistical period to the AOI and key POI, and associate the average passenger flow value with the AOI and key POI set for each road section to obtain each city information unit containing long-term passenger flow information data, wherein the passenger flow information includes passenger flow and personnel turning.

[0020] Step 150, using the long-term passenger flow information data to train an LSTM (Long Short Term Memory Network) model, the LSTM model is used to predict passenger flow information in the future period of the study area.

[0021] The method of this embodiment analyzes the distribution of monitoring arrays, AOIs, and POIs in the area, and divides the video area of ​​the monitoring equipment in combination with the road network, establishes the belonging blocks of the flow of people in the video collected by the monitoring equipment at each intersection, and divides the urban information units based on the multi-source urban spatial information of the flow of people to form a multi-space level management area plan. The urban information units are used as group quantity statistical nodes to construct regional personnel flow data with time series change characteristics. Based on the LSTM model, the spatiotemporal evolution analysis of the crowd status at multiple times is performed, the spatial pattern of crowd distribution in the monitoring blind spot is deduced, the spatiotemporal hotspots in the crowd activity change area are further detected, and the flow transfer direction of the city in various time periods is estimated, which can provide a strong basis for regional facility planning, police deployment, business strategy, crowd guidance, etc.

[0022] In this embodiment, determining the monitoring area boundary in step 110 specifically refers to defining the internal analysis area and the external area of ​​the monitoring area. Figure 2 As shown, the solid line is the monitoring area determined and analyzed in this embodiment, and is also the main activity range of the people in the area. Since the external area is extremely wide and has little impact on the research area, the area outside the red line is uniformly referred to as the external area, forming a state of internal and external interaction.

[0023] The monitoring equipment deployed in the internal area of ​​the solid line is then monitored and the spatial location of the map is added, and the intersection is covered to form a statistical boundary for the flow of people and to count the flow of people in the monitoring area.

[0024] In one embodiment, the monitoring array position data of the monitoring area is divided to generate the road section data as follows: The coordinates of all intersection monitoring devices within the monitoring area are counted and recorded on the electronic map. The coordinate system can be the city's internal coordinate system or the engineering coordinate system. Figure 2, and then link the coordinate points of each monitoring device along the road. After the monitoring device group at each intersection is connected, each road section is obtained. The connecting line is the road section. The main purpose of this embodiment is to make more real and accurate statistics on the pedestrian flow on the road section. In this way, the flow direction of the pedestrian flow in each road section at the intersection can be used to study the changes in pedestrian flow or the fluctuation pattern of the crowd in the monitoring area.

[0025] In this embodiment, in step 110, a connection is established between each road segment and the POI and / or AOI spatial element.

[0026] Through the above steps, the monitoring array position data is cut into the road network data to generate the road section data. Since a POI or AOI may be set on several sections, for example, several entrances and exits of a park are on different streets (sections), in order to determine and facilitate the subsequent specific analysis of the flow absorption of each section, this embodiment needs to specifically associate the POI and / or AOI elements near each section, which is implemented in the following steps.

[0027] Select POI and AOI elements whose distance from each road section is not greater than half of the length of the road section itself, use the spatial connection tool of Arcmap to connect the POI and AOI to the corresponding road section on the road section layer, and output a connection table. In this embodiment, in the spatial connection, the "close distance" parameter is used. Since the selected road section is generally not very long, the POI and AOI attributes whose distance from the road section is not greater than half of the length of the road section are selected to be associated with the road section attributes.

[0028] For example, a store or roadside park may not be on the road (i.e., on the side of the road), but may be at a certain distance from the surrounding roads. At this time, if the vertical distance between the center coordinates of the store (POI) and the roadside park (AOI) and the surrounding roads is less than half the length of the corresponding road, then the store (POI) and the roadside park (AOI) are associated with the attribute information of the corresponding road. That is, the attribute data of this road and these POIs and (AOIs) form a connection table in the database. For details, please refer to Figure 3 .

[0029] If a new AOI needs to be set, the map can be divided into polygons with road segments as edges through road segments formed by connecting points to form a new AOI, and a relationship table between AOI and road segment edges can be output.

[0030] Step 120, the monitoring area of ​​the intersection monitoring equipment is divided accordingly according to the intersection distribution, and the section to which each block belongs is determined according to the section data in step 110, that is, the contact section of the corresponding block, which is used to determine the block and section to which the personnel flow belongs in each image frame.

[0031] In this embodiment, the monitoring area of ​​the intersection monitoring device is divided according to the distribution of the intersection, and the road section to which each block belongs, that is, the contact road section of the corresponding block is determined by the following steps: The intersection monitoring area is segmented according to the data of the divided polygonal vectors to obtain blocks, and the unique identity attributes of each block are associated with the attributes of the corresponding road section to achieve binding of the corresponding block and the corresponding road section, which is convenient for counting the turns and transfers of people at intersections through the personnel tracking algorithm, and for counting the flow and direction of people.

[0032] Specifically, refer to Figure 4 As shown, it is a schematic diagram of the division of the monitoring area of ​​the intersection monitoring equipment provided by this embodiment. The center of the intersection in the video is taken as the center point, and the image is cut with multiple dividing lines (axis lines). The monitoring area of ​​the monitoring equipment is divided by the artificially added dividing lines. The dividing lines are stored as polygonal vector data, and then the polygon data of each block obtained according to the boundary data of the monitoring area of ​​the monitoring equipment is composed of a general Shp format vector graphics file. Each polygon represents a spatial object, and an index number, a unique ID, etc. are set to store the video with the dividing lines.

[0033] In this embodiment, the monitoring area of ​​each intersection is segmented manually. Due to the different postures of the monitoring equipment, it is difficult to determine which road section the block in the monitoring video belongs to through a simple model. In fact, AI (neural network) can also be used for segmentation, but this mode of implementation will be very complicated and not as efficient as manual work.

[0034] Step 130, detecting and marking the identity information and position change information of the persons in each image frame by using face recognition technology and multi-target tracking technology, and determining the motion trajectories of the multi-target objects; In this embodiment, for the video images collected by the monitoring equipment, the faces in the image frames can be detected and assigned identity tags through a convolutional neural network or a YOLO algorithm, and the position of the detected person in the continuous image frames can be tracked through a multi-target tracking technology. In subsequent image frames, the detected faces are tracked and updated using a target tracking algorithm to maintain continuous tracking of the faces in the video. When a certain identity tag does not appear for multiple frames, its last position coordinates are recorded; and according to the block division of the intersection monitoring area in step 120, the corresponding identity tag is included in the pedestrian flow statistics of the corresponding road section. If, in the video identity recognition collected by other monitoring equipment in the subsequent time period, it is determined that the identified face identity matches the identity tracked in the previous time period, the tracked person identity is updated and tracking continues.

[0035] In one embodiment, based on the collected video, identity information and location change information are analyzed to form statistical information on the flow of people in each road section. The video of the corresponding monitoring device set can be constructed and stored based on the regional identity identification of the monitoring device, and the statistical information on the flow of people in each road section can be formed based on the collected video. In a specific embodiment, the statistical information includes but is not limited to the unique identity identification of the person + entry block / section + transfer target + transfer time. Finally, the statistical information on the flow of people in each road section can be stored as a log file.

[0036] In this embodiment, the unique identity identifier is an identity code assigned by the YOLO algorithm to each person detected; The entry section may be the block / section information where people flow into in the image; The transfer target may be information that a person in the image turns to another block / road section, POI or AOI, as the turning information; The transfer time can be the time it takes for a person in the image to turn from the incoming block / road section to other blocks / road sections, POI or AOI; The above statistical information is provided as examples for ease of understanding, but is not limited to the above information. The collected and stored statistical information can be modified according to analysis requirements, and is not listed here one by one.

[0037] In this embodiment, the flow of people with turning information is determined and stored in the analysis of video data. Compared with the situation where the change in the amplitude of the number of people in the area is determined only by collecting changes in mobile phone signaling, this embodiment is not only convenient for subsequent analysis of crowd fluctuation patterns, but also can determine the flow direction of people in each section of the road and predict the flow of people in blind spots.

[0038] In this embodiment, after detecting and marking the identity information and location information of the object in each image frame through face recognition technology and multi-target tracking technology, the corresponding facial feature information and identity information are bound and stored so that the multi-target tracking technology can track the corresponding object for a long time within a time period.

[0039] Step 140, based on the statistical period, determine the personnel flow information of each road section in each period, and the AOI and / or key POI set for each road section, average the passenger flow determined in the statistical period to the AOI and key POI, and associate the average passenger flow value with the AOI and / or key POI set for each road section to obtain each city information unit, that is, generate a city information unit containing long-term passenger flow information data, wherein the passenger flow information includes passenger flow and personnel turning.

[0040] In one embodiment, in order to save the cost of storing data, the span of the statistical period is designed according to the space size of the storage device and the needs of the application scenario. For example, the large period data of daily statistics is cut into several hours. This step mainly extracts features from the redundant data generated in a period (such as log files and facial feature extraction and encoding), obtains the flow of people in each section and the final turn of each person, and reduces the dimension to convert it into the flow of people and direction of the section. At the same time, the data of the previous period is cleared to facilitate the data storage of the next period, saving the cost of storing data. If storage conditions permit, the commonly used period of the general period sampling method, that is, 2 hours, can be used. The specific steps are as follows: Since there will be personnel flow at both ends of any road section, the personnel flow in each statistical period is accumulated, that is, the number of people in both directions of each section and the turning information are counted separately. Based on the definition of the forward and reverse directions of the road section, the forward and reverse flow of people in each section can be determined.

[0041] In this embodiment, based on the AOIs and / or key POIs associated with the above-mentioned road sections and the coordinates of the AOIs and key POIs, when a certain identity identification does not appear in multiple frames, the last position coordinates recorded are matched with the coordinates of the nearby AOIs and key POIs based on the shortest distance condition, and the person is classified into the corresponding AOI element or POI element.

[0042] refer to Figure 5 As shown, it is a schematic diagram of the process of associating AOI with routes provided by this embodiment, wherein the direction of each road section is determined according to the vector direction of the coordinate difference at both ends, and the positive and reverse directions of each road section are determined according to the definition (for example, from west to east and from south to north are both positive, and vice versa is reverse); then the positive and reverse pedestrian flow of each road section in each statistical period, and the AOI and key POI associated with each road section are determined, and the positive and reverse pedestrian flow on the road section in the statistical period are averaged to the AOI and the key POI respectively, and the average values ​​of the positive and reverse pedestrian flow are associated with the AOI and the key POI associated with the road section to obtain each city information unit; wherein, since AOI is associated with multiple road sections, the clockwise and counterclockwise directions of the pedestrian flow direction around the AOI can be determined based on the defined positive and reverse directions of the road section. Therefore, in this embodiment, the pedestrian flow of multiple road sections associated with AOI is counted to determine the clockwise and counterclockwise pedestrian flow in the statistical period corresponding to the corresponding AOI.

[0043] In a specific embodiment, the average values ​​of the forward and reverse human flow and the time period information may be added to the AOI as attributes.

[0044] In order to further save the cost of storing data, this embodiment can associate the data collected in each statistical period with the AOI and key POI when constructing the city information unit of long-term pedestrian flow information data. It can also continue to merge the personnel flow information based on the statistical results of multiple statistical periods, determine the forward and reverse pedestrian flow of the road sections in multiple statistical periods, the clockwise and counterclockwise pedestrian flow of each city information unit, and so on.

[0045] In this embodiment, the results of the time period passenger flow statistics are combined with the POI and AOI attributes of the road section. In ArcGIS, the POI, AOI and the area elements of the urban information unit are spatially connected to form a relationship table and a joint table with the element attributes of the urban information unit is formed to generate statistical data on the flow of people in areas (such as road sections, AOIs) with time series variation characteristics. By taking advantage of the periodic characteristics of personnel flow, the above data can be used to generate input information that is convenient for LSTM model training, and the long-term urban information unit group data can be used to predict the flow and direction of people in the study area.

[0046] In one embodiment, the city information unit established with the road section personnel flow data as the core is used as the minimum primitive for calculation and prediction, and as the extracted feature for subsequent target calculation. Therefore, the time series data of the element information of the human flow can also be obtained based on the human flow information analysis associated with the city information unit, such as the following four types of human flow element information: Element 1: the number of people absorbed by the city information unit on the road section and the absorption rate in each time period; in this embodiment, the number of people absorbed by the city information unit on the road section is the number of people who have been tracked and disappeared in the above road section.

[0047] Element 2: Clockwise and counterclockwise pedestrian flow near urban information units at different time periods.

[0048] Element three: The time period of the road section with the largest passenger flow near the urban information unit in each period.

[0049] Element 4: Road sections with the largest and smallest passenger flow near urban information units at different time periods.

[0050] Here, only the above four elements are illustrated, but not limited to the above elements. New elements can be extracted from the pedestrian flow information associated with the city information unit according to calculation requirements.

[0051] Step 150, using the long-term crowd flow information data obtained in step 140 to train an LSTM model to predict crowd flow information in the future period of the study area.

[0052] In one embodiment, the trained LSTM model can predict the pedestrian flow of a road section in the future, or the positive and reverse pedestrian flow.

[0053] In one embodiment, if the above four element information of the city information unit needs to be predicted by the LSTM model, then when training the LSTM model, the four element information of the city information unit in each time period is used as training data to train the LSTM model.

[0054] Specifically, after obtaining the information time series data of each element in each urban information unit through step 140, these data can be directly used for calculation, such as forward and reverse pedestrian flow. By superimposing the pedestrian flow data and direction information of the urban information unit group on the surrounding data, it is possible to obtain the main area of ​​the urban area population transfer, and the direction and intensity of the pedestrian flow can be clearly obtained. For example. A large amount of data of urban information units has been obtained and needs to be predicted. Among the elements of the existing urban information units, there are corresponding values ​​such as flow elements based on each time period. There are average flow data in a certain direction for multiple consecutive time periods in the urban information unit. Therefore, an LSTM network can be constructed to learn the urban information unit group and obtain a model so that it can predict the clockwise and counterclockwise pedestrian flow around each unit at a certain time node, and form the overall pedestrian flow direction of the study area, and the pedestrian flow direction information of the study area can participate in path planning.

[0055] In this embodiment, the basic principle of the LSTM network is as follows: Forget Gate: controls the degree of discarding previous memories and determines how much state information of the previous time step needs to be retained. Its output value range is between 0 and 1. The calculation formula of the forget gate is as follows: ; in, is the output of the forget gate, is the weight matrix, is the hidden state at the previous time step, is the input of the current time step, is the bias term, is the sigmoid function.

[0056] Input Gate: controls which input information of the current time step is added to the neuron cell state. The calculation formula of the input gate is as follows: ; in, is the output of the input gate, is the weight matrix, is the hidden state at the previous time step, is the input of the current time step, is the bias term.

[0057] Cell State Update: Update the neuron cell state by combining the result of the forget gate and the result of the input gate. The updated cell state will be used as the input of the next time step. The calculation formula is as follows: ; in, is a candidate cell state, is the weight matrix, is the hidden state at the previous time step, is the input of the current time step, is the bias term.

[0058] Output Gate: controls the hidden state output of the current time step. The calculation formula of the output gate is as follows: ; in, is the output of the output gate, is the weight matrix, is the hidden state at the previous time step, is the input of the current time step, is the bias term.

[0059] Hidden State Update: Use the result of the output gate and the updated cell state to calculate the hidden state of the current time step. The calculation formula is as follows: ; in, is the hidden state at the current time step, is the output of the output gate, is the cell state at the current time step.

[0060] These gating units control the flow of information through activation functions such as sigmoid and tanh and weight matrices, so that LSTM can capture long-term dependencies in sequence data and is suitable for various sequence modeling tasks.

[0061] 1. When deciding to process the time series data of each element of the city information unit, the time series data needs to be divided according to the time step (for example, the time step length set for video data statistics is 2 hours above), and the data of each time step is used as an input of the LSTM model. Assuming that the input sequence length is T and the data dimension of each time step is D, the shape of the input data is (T, D), where the data dimension is the number of element types of the city information unit, for example, the above includes four elements, which makes it easier for the model to learn the reasoning of the time series and the correlation of the data in the unit at the same time.

[0062] 2. Initialize hidden state and cell state: Before processing sequence data, the hidden state and cell state of the LSTM model need to be initialized. Usually, they can be initialized to all zero vectors or random values.

[0063] 3. Traverse the time steps: Starting from time step t=2, process the entire sequence data step by step.

[0064] 4. Calculate the forget gate: according to the hidden state of the previous time step and the input of the current time step , calculate the output of the forget gate .

[0065] 5. Calculate the input gate: according to the hidden state of the previous time step and the input of the current time step , calculate the output of the input gate .

[0066] 6. Calculate cell state update: based on the hidden state of the previous time step and the input of the current time step , calculate the candidate cell states .

[0067] 7. Update cell state: according to the output of the forget gate , the output of the input gate and candidate cell states , update the cell state at the current time step .

[0068] 8. Calculate the output gate: according to the hidden state of the previous time step and the input of the current time step , calculate the output of the output gate .

[0069] 9. Update the hidden state: according to the output of the output gate and the cell state at the current time step , update the hidden state of the current time step .

[0070] 10. Output: After processing all time steps, the hidden state of the last time step It can be used as the output of the LSTM model or for further prediction or classification tasks.

[0071] The process of the above distance time data in the model, the actual training operation is as follows: Normalize the data, such as scaling the flow of people to a smaller range, such as [0, 1], to speed up the convergence of the model. Split the dataset into a training set and a test set, usually using a portion of the data (such as 80%) for training and the rest for testing.

[0072] Import the required libraries, PyTorch or TensorFlow, choose a deep learning framework. Import scientific computing libraries such as NumPy and Pandas.

[0073] Use PyTorch or TensorFlow to build an LSTM model, including LSTM layers, fully connected layers, etc., and determine the dimensions of the input data and the hyperparameters of the model, such as the number of hidden units and learning rate of the LSTM layer.

[0074] The training set data is converted into the corresponding format when training the model. A sliding window method can be used to convert continuous time series data into input-output pairs.

[0075] Choose an appropriate loss function, such as mean squared error (MSE) or mean absolute error (MAE), and an optimizer, such as stochastic gradient descent (SGD), Adam, etc.

[0076] Use the training set data to train the model and iterate multiple epochs. In each epoch, calculate the loss function and update the model parameters.

[0077] Use the test set data to make model predictions and calculate the error between the predicted results and the true values. Model performance can be evaluated using metrics such as root mean square error (RMSE) and mean absolute error (MAE). The best model in the iteration is retained.

[0078] The main content of the present invention is a statistical method based on monitoring, which can make more realistic and clear-cut statistics on pedestrian flow data. According to different purposes, long-term training can be carried out on other time period elements in the urban information unit to obtain a prediction model. For example, unit elements such as flow absorption rate can be used to predict the popularity of each urban information unit in each time period, thereby participating in regional construction planning, and analyzing hot spots in the current time period, etc.

[0079] The method of this embodiment has the following beneficial effects: 1. The method of this embodiment successfully realized the crowd situation awareness analysis and prediction based on the monitoring array and multi-source spatial data, and achieved certain application effects.

[0080] 2. The method of this embodiment provides an important reference for urban management and planning decisions, provides some new ideas and methods for urban safety prevention and control and planning decisions, and provides a statistical method for data containing transfer direction characteristics such as urban pedestrian and vehicle flow.

[0081] 3. The method of this embodiment can perform spatiotemporal evolution analysis on the crowd status at multiple times, deduce the spatial pattern of crowd distribution in monitoring blind spots, further detect spatiotemporal hotspots in areas where crowd activities change, estimate the flow transfer direction in each period of the city, and provide management decision support, which has important practical application value.

[0082] 4. The method of this embodiment uses the visual function of the monitoring array to judge the population of the block. With the support of the more mature video stream portrait analysis technology, it can make more accurate statistics on the personnel data in the area. The what-you-see-is-what-you-get data has better authenticity than side statistical methods such as interpolation.

[0083] 5. The method of this embodiment is a scientific statistical analysis method based on fully popularized equipment, which promotes the deepening of the functional level of existing hardware technology. It is less hindered by hardware promotion in its popularization and application, and is also an expansion of the functions of existing hardware technology.

[0084] 6. In terms of auxiliary decision-making, the method of this embodiment adopts LSTM neural network to analyze time series data. Compared with other neural networks, it has obvious advantages in time series data processing. At the same time, some data elements obtained by the present invention have directions, which can provide better auxiliary decision-making for traffic management, etc.

[0085] Device Embodiment According to an embodiment of the present invention, a crowd spatiotemporal distribution analysis device based on a monitoring array is provided. Figure 6 As shown, it is a block diagram of a crowd spatiotemporal distribution analysis device based on a monitoring array provided in this embodiment. The crowd spatiotemporal distribution analysis device based on a monitoring array according to an embodiment of the present invention includes: The monitoring area segmentation module 10 is used to determine the monitoring area boundary, divide the monitoring array position data of the monitoring area to generate road section data, and establish a connection between each road section and the POI and / or AOI spatial element.

[0086] In this embodiment, the monitoring area segmentation module 10 is used to divide the monitoring array position data of the monitoring area to generate the road section data as follows: The coordinates of all monitoring devices at intersections in the study area are counted and measured at fixed points and recorded on the electronic map. The coordinate system can use the city's internal coordinate system or the engineering coordinate system; then the coordinate points of each monitoring device are linked along the road, and after the monitoring device groups at each intersection are connected, each road section is obtained.

[0087] In this embodiment, the monitoring area segmentation module 10 is configured to establish a connection between each road segment and the POI and / or AOI spatial elements as follows: Select POI and AOI features whose distance from each road segment is no more than half the length of the road segment itself, use Arcmap's spatial join tool to connect POI and AOI to the road segment layer respectively, and output the connection table.

[0088] The intersection area division module 11 is used to divide the monitoring area of ​​the intersection monitoring equipment according to the intersection distribution, determine the section to which each block belongs, and determine the block and section to which the personnel flow belongs in each image frame.

[0089] In this embodiment, the intersection area division module 11 divides the monitoring area of ​​the intersection monitoring device according to the intersection distribution, determines the road section to which each block belongs, and is configured to execute the following steps: The intersection monitoring area is segmented according to the data of the divided polygonal vectors to obtain blocks, and the unique identity attribute of each block is associated with the attribute of the corresponding road section to achieve the binding of the corresponding block and the corresponding road section.

[0090] The multi-target tracking module 12 is used to detect and mark the identity information and position information of the persons in each image frame by using face recognition technology and multi-target tracking technology, and determine the movement tracks of the multi-target objects.

[0091] In this embodiment, a convolutional neural network or a YOLO algorithm is used to detect faces in image frames and assign identity tags, and a multi-target tracking technique is used to track the position of the detected person in consecutive image frames. In subsequent image frames, a target tracking algorithm is used to track and update the detected faces to maintain continuous tracking of them in the video. When an identity tag does not appear for multiple frames, its last position coordinates are recorded. The intersection monitoring area is divided into blocks according to the intersection area division module 11, and the corresponding identity tags are included in the pedestrian flow statistics of the corresponding road section. If the video identity recognition collected by other monitoring equipment in the subsequent time period determines that the identified face identity matches the identity tracked in the previous time period, the tracked person identity is updated and tracking continues.

[0092] In one embodiment, statistical information on the flow of personnel in each road section is formed based on the collected videos, and the video of the corresponding monitoring device set can be constructed and stored based on the regional identity identification of the monitoring device, and the statistical information on the flow of personnel in each road section is formed based on the collected videos. In a specific embodiment, the statistical information includes but is not limited to the unique identity identification of the personnel + entry block / section + transfer target + transfer time. Finally, the statistical information on the flow of personnel in each road section can be stored as a log file.

[0093] In this embodiment, the unique identity identifier is an identity code assigned by the YOLO algorithm to each person detected; The entry section may be the block / section information where people flow into in the image; The transfer target may be information that a person in the image turns to another block / road section, POI or AOI, as the turning information; The transfer time may be the time taken for a person in the image to turn from an incoming block / road section to another block / road section, POI or AOI.

[0094] The city information unit construction module 13 is used to determine the personnel flow information of each road section in each time period based on the statistical time period, and the AOI and / or key POI set on each road section, average the passenger flow determined in the statistical period to the AOI and key POI, and associate the average passenger flow value with the AOI and key POI set on each road section to obtain each city information unit containing long-term passenger flow information data, wherein the passenger flow information includes passenger flow and personnel turning.

[0095] In this embodiment, the city information unit construction module 13 determines the flow of people in each section of each time period based on the statistical time period, and is configured to perform the following steps: Based on the definition of the forward and reverse directions of the road section, the forward and reverse pedestrian flow and turning information of each road section are counted based on the statistical period.

[0096] In this embodiment, the specific process of generating the city information unit is as follows: The direction of each road section is determined according to the vector direction of the coordinate difference at both ends, and the positive and reverse directions of each road section are determined according to the definition (for example, from west to east and from south to north are both positive, and vice versa). Then, the positive and reverse personnel flow information of each road section in each statistical period, as well as the AOI and key POI associated with each road section are determined, and the positive and reverse human flow on the road section during the statistical period are averaged to the AOI and key POI respectively, and the average positive and reverse human flow values ​​are associated with the AOI and key POI associated with the road section to obtain each city information unit. The human flow of multiple sections associated with AOI is counted to determine the clockwise and counterclockwise human flow in the corresponding statistical period of the corresponding AOI.

[0097] In this embodiment, the city information unit construction module 13 further includes a city information unit element analysis and determination module, which is used to obtain time series data of element information about the flow of people based on the analysis of the flow of people information associated with the city information unit, such as the following four element information: Element 1: the number of people and absorption rate absorbed by the urban information unit on the road section at each time period; Element 2: Clockwise and counterclockwise pedestrian flow near the urban information unit at each time period; Element 3: the time period of the road section with the largest passenger flow near the urban information unit in each period; Element 4: Road sections with the largest and smallest passenger flow near urban information units at different time periods.

[0098] The prediction module 14 is used to train the LSTM model using long-term crowd flow information data to predict the crowd flow information in the future period of the study area.

[0099] In one embodiment, the prediction module 14 can predict the pedestrian flow of a road section in the future period, or the positive and reverse pedestrian flow, by completing the trained LSTM model.

[0100] The device of this embodiment analyzes the distribution of monitoring arrays, AOIs, and POIs in the area through the monitoring area segmentation module 10, and segments the video area of ​​the monitoring equipment in combination with the road network, and the intersection area division module 11 establishes the belonging blocks of the flow of people in the video collected by the monitoring equipment at each intersection, and the city information unit construction module 13 combines the city information units divided by the multi-source urban spatial information of the flow of people to form a multi-space level management area planning, and uses the city information unit as the group quantity statistical node to construct regional personnel flow data with time series change characteristics, and then the prediction module 14 performs spatiotemporal evolution analysis on the crowd status at multiple times based on the LSTM model, deduces the spatial pattern of crowd distribution in the monitoring blind spot, further detects the spatiotemporal hotspots in the crowd activity change area, and estimates the flow transfer direction of the city in various time periods, which can provide a strong basis for regional facility planning, police deployment, business strategy, crowd guidance, etc.

[0101] The embodiment of the present invention is an apparatus embodiment corresponding to the above-mentioned method embodiment. The specific operations of the processing steps of each module can be understood by referring to the description of the method embodiment, which will not be repeated here.

[0102] like Figure 7 As shown, the present invention also provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for analyzing the spatiotemporal distribution of a crowd based on a monitoring array in the above-mentioned embodiment is implemented, or when the computer program is executed by a processor, the method for analyzing the spatiotemporal distribution of a crowd based on a monitoring array in the above-mentioned embodiment is implemented.

[0103] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0104] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device or system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device and system embodiments described above are merely schematic, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0105] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or replace some or all of the technical features therein by equivalents. These modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present invention, and the contents not described in detail in the specification of the present invention belong to the common knowledge of those skilled in the art.

Claims

1. A crowd spatiotemporal distribution analysis method based on a monitoring array, characterized in that: The following steps are involved: Determine the monitoring area boundary, divide the monitoring array position data of the monitoring area to generate road section data, and establish connections between each road section and POI and / or AOI spatial elements; The monitoring area of ​​the intersection monitoring equipment is divided accordingly according to the distribution of the intersection, and the section to which each block belongs is determined, which is used to determine the block and section to which the personnel flow belongs in each image frame; Through face recognition technology and multi-target tracking technology, the identity information and position change information of people in each image frame are detected and marked, and the movement trajectory of multiple target objects is determined; Based on the statistical period, determine the flow of people in each section of each period, and the AOI and / or key POI set for each section, average the flow of people determined in the statistical period to the AOI and key POI, and associate the average flow of people with the AOI and key POI set for each section, and obtain each city information unit containing long-term flow information data, wherein the flow of people includes flow of people and personnel turning; The LSTM model is trained using long-term passenger flow information data, where the LSTM model is used to predict passenger flow information in the study area in the future.

2. The crowd spatiotemporal distribution analysis method based on monitoring array according to claim 1, characterized in that: The specific method of establishing a connection between each road segment and the POI and / or AOI spatial elements is as follows: Select POI and AOI features whose distance from each road segment is no more than half the length of the road segment itself, use the spatial join tool of Arcmap to connect the POI and AOI to the corresponding road segment on the road segment layer, and output the connection table.

3. The crowd spatiotemporal distribution analysis method based on monitoring array according to claim 1, characterized in that: The monitoring area of ​​the intersection monitoring device is divided according to the distribution of the intersection, and the road section to which each block belongs is determined by the following steps: The intersection monitoring area is segmented according to the data of the divided polygonal vectors to obtain blocks, and the unique identity attribute of each block is associated with the attribute of the corresponding road section to achieve the binding of the corresponding block and the corresponding road section.

4. The crowd spatiotemporal distribution analysis method based on monitoring array according to claim 1, characterized in that: After detecting and marking the identity information and position change information of the person in each image frame by using the face recognition technology and the multi-target tracking technology, the method further includes the steps of: Based on the collected videos, identity information and location change information are analyzed to form statistical information on the flow of people on each road section, where the statistical information includes the unique identity of the person, the block / section entered, the transfer target and the transfer time.

5. The crowd spatiotemporal distribution analysis method based on monitoring array according to claim 1, characterized in that: The specific method of determining the flow of people in each section of each time period is as follows: Based on the definition of the forward and reverse directions of the road section, the pedestrian flow and turning information in both directions of each road section are counted separately to determine the forward and reverse pedestrian flow of each road section.

6. The crowd spatiotemporal distribution analysis method based on monitoring array according to claim 5, characterized in that: The method of averaging the passenger flow determined during the statistical period to the AOI and key POI, and associating the average passenger flow with the AOI and key POI set on each road section to obtain each city information unit specifically includes the following steps: Determine the forward and reverse pedestrian flow of each road section in each statistical period, as well as the AOI and key POI associated with each road section, average the forward and reverse pedestrian flow on the road section within the statistical period to the AOI and key POI respectively, and associate the average forward and reverse pedestrian flow with the AOI and key POI associated with the road section to obtain each city information unit.

7. The crowd spatiotemporal distribution analysis method based on monitoring array according to any one of claims 5 or 6, characterized in that: Also includes the steps: Based on the analysis of the crowd flow information associated with the city information unit, the time series data of the element information of the crowd flow is obtained. The element information of the crowd flow includes: Element 1: the number of people and absorption rate absorbed by the urban information unit on the road section at each time period; Element 2: Clockwise and counterclockwise pedestrian flow near the urban information unit at each time period; Element 3: the time period of the road section with the largest passenger flow near the urban information unit in each period; Element 4: Road sections with the largest and smallest passenger flow near urban information units at different time periods.

8. A crowd spatiotemporal distribution analysis device based on a monitoring array, characterized in that: include: A monitoring area segmentation module is used to determine the boundaries of the monitoring area, divide the monitoring array position data of the monitoring area to generate section data, and establish connections between each section and POI and / or AOI spatial elements; The intersection area division module is used to divide the monitoring area of ​​the intersection monitoring equipment according to the distribution of the intersection, determine the section to which each block belongs, and determine the block and section to which the personnel flow belongs in each image frame; A multi-target tracking module is used to detect and mark the identity information and position information of the objects in each image frame through face recognition technology and multi-target tracking technology, and determine the movement trajectory of the multi-target objects; The city information unit construction module is used to determine the personnel flow information of each road section in each period, and the AOI and / or key POI set for each road section based on the statistical period, average the passenger flow determined in the statistical period to the AOI and key POI, and associate the average passenger flow with the AOI and key POI set for each road section to obtain each city information unit containing long-term passenger flow information data, wherein the passenger flow information includes passenger flow and personnel turning; The prediction module is used to train the LSTM model using long-term crowd flow information data to predict crowd flow information in the future period of the study area.

9. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the method for analyzing the spatiotemporal distribution of a crowd based on a monitoring array as described in any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the crowd spatiotemporal distribution analysis method based on a monitoring array as described in any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Block pedestrian flow prediction method and system based on space-time diagram convolutional neural network

    CN111612206A

  • Urban people flow prediction method based on space-time dynamic neural network

    CN112257934A

  • Residual multi-graph convolution crowd distribution prediction method and system based on space-time relationship

    CN112766240A

  • Smart city management system and method based on image processing

    CN117830949A

  • Subway pedestrian flow network fusion method based on video pedestrian recognition, and pedestrian flow prediction method

    WO2022126669A1

Cited By

  • Urban crowd distribution analogue simulation method and system

    CN119443988A

  • Online passenger flow monitoring analysis data error correction method

    CN119807601A