Method and system for analyzing personnel gathering condition based on real-time position data

Through the diffusion clustering method and heat map display, the difficulty in identifying people gathering areas in the existing technology is solved, and efficient and accurate analysis and dynamic change monitoring of people gathering conditions are achieved, improving the accuracy and visualization effect of the analysis. .

CN118734095APending Publication Date: 2024-10-01WUHAN ZHILIAN SPACE TIME TECH CO LTD

Patent Information

Application Number
CN202410724900.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing technology has difficulties in accurately identifying people gathering areas from massive real-time location data and dynamically analyzing their gathering characteristics. It cannot flexibly adapt to the analysis needs of different scenarios, and simple distance-based clustering algorithms are prone to produce wrong gathering areas.

Method used

The diffusion clustering method is used to cluster the location data within the polygon area. By setting the aggregation distance threshold and the number of people threshold, the aggregation area is identified, and the changes in the aggregation trend are displayed through heat maps and time series thematic maps to ensure that all possible aggregations are Comprehensive traversal and identification of areas.

Benefits of technology

It improves the efficiency and accuracy of the analysis of people gathering status, can grasp the dynamic changes of people gathering in a timely manner, accurately identify gathering areas, reduces misidentification, and enhances the accuracy and visual display of analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118734095A_ABST
    Figure CN118734095A_ABST
Patent Text Reader

Abstract

The invention provides a method and system for analyzing a personnel gathering condition based on real-time position data, and belongs to the field of personnel gathering analysis, and the method comprises the steps: S1, obtaining the real-time position data of a to-be-analyzed region; s2, setting the region to be analyzed as a polygonal region, and determining a position data set in the polygonal region; s3, performing clustering by using a diffusion type clustering method to obtain a first clustering region set; s4, performing aggregation calculation on the first aggregation region set to obtain the central position and the number of aggregated people of each aggregation region; s5, drawing a thermodynamic diagram according to the first aggregation region set, the central position and the number of aggregation people, and displaying aggregation data of the polygonal region; and S6, repeating the steps S3-S5 within a preset time to obtain a time sequence thematic map, and determining the aggregation trend change of the to-be-analyzed region. According to the method, the dynamic change condition of personnel gathering can be timely mastered, the gathering area can be accurately identified, and the accuracy of personnel gathering condition analysis is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of personnel gathering analysis, and in particular to a method and system for analyzing personnel gathering conditions based on real-time location data. Background Art

[0002] With the rapid development of mobile Internet and Internet of Things technologies, the ability to obtain real-time location data of people is constantly improving. These location data can provide important data support for analyzing the gathering of people. The analysis of the gathering of people is of great significance in many application scenarios. In urban management, the analysis of the gathering of people can be used to prevent and respond to emergencies and improve the efficiency of public safety management. In the field of commercial marketing, the analysis of the gathering of people can help companies optimize store layout and improve marketing effectiveness. In the organization of large-scale events, real-time monitoring of the gathering of people can help improve the order and experience of the event site.

[0003] However, there are still many technical challenges in accurately identifying the gathering areas of people from massive real-time location data and dynamically analyzing their gathering characteristics. In the existing technology, the analysis area is usually divided by fixed grids or administrative divisions, which cannot flexibly adapt to the analysis needs in different scenarios; at the same time, the simple distance-based clustering algorithm cannot effectively handle complex gathering scenarios and is prone to produce incorrect gathering areas.

[0004] Therefore, finding a method that can both accurately divide the analysis area and improve the accuracy of crowd gathering analysis is a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the invention

[0005] In view of this, the present invention proposes a method and system for analyzing the status of personnel gathering based on real-time location data, which can timely grasp the dynamic changes of personnel gathering, accurately identify the gathering area, and improve the efficiency and accuracy of personnel gathering status analysis.

[0006] The technical solution of the present invention is achieved in this way:

[0007] In one aspect, the present invention provides a method for analyzing the gathering status of people based on real-time location data, comprising the following steps:

[0008] S1. Obtain real-time location data of the area to be analyzed;

[0009] S2, setting the area to be analyzed as a polygonal area, determining a location data set within the polygonal area {A i};

[0010] S3, using a diffusion clustering method to cluster the location dataset within the polygonal area i} to cluster and obtain the first clustering area set {B i};

[0011] S4, for the first aggregation area set {B i} Perform aggregation calculations separately to obtain the center position and number of people in each aggregation area;

[0012] S5, according to the first aggregation area set {B i}、Draw a heat map of the center position and the number of people gathered in each gathering area to display the gathering data of the polygonal area;

[0013] S6. Repeat steps S3-S5 within a preset time to obtain a time series thematic map, and determine the aggregation trend change of the area to be analyzed based on the time series thematic map.

[0014] On the basis of the above technical solution, preferably, step S3 specifically includes:

[0015] S31, setting the gathering distance threshold r and the gathering number threshold n;

[0016] S32, based on the aggregation distance threshold r and the location data set {A i}Determine the first neighborhood of the location data{S i};

[0017] S33, according to the gathering number threshold n and the first neighborhood {S i} for the number of position data sets {A i} to expand the neighborhood and obtain the first clustering area set {B i}.

[0018] Based on the above technical solution, preferably, step S32 specifically includes:

[0019] S321, select the location data set within the polygon area {A i A position data A in i , determine the position data A i Has it been marked? If not, then change the position number A i Marking

[0020] S322, calculate position data A respectively i and the location dataset within the polygon area i}, if the distance d1 is not greater than the aggregation distance threshold r, create the first neighborhood {S i} and initialize it to an empty set, and set the position data A i and the corresponding points are added to the first neighborhood {S i}, we get the first neighborhood {S i}.

[0021] On the basis of the above technical solution, preferably, step S33 specifically includes:

[0022] S331, according to the gathering number threshold n and the first neighborhood {S i} to determine the position data A i Is it an isolated point? If the first neighbor {S i} is not less than the threshold n, then the first clustering area set {B i} and initialize it to an empty set, and set the position data A i Join the first gathering area set {B i};

[0023] S332, select the first neighbor {S i A point S in i , repeat step S331 to find point S i The second neighborhood of i '}, and the second neighborhood {S i '} join the first clustering area set {B i};

[0024] S333, traverse the first neighborhood {S i}, get the position data A i The first gathering area B i ;

[0025] S334, position data A i As the starting point, repeat steps S331-S333 to obtain the position data set {A i} to traverse and obtain the first clustering area set {B i}.

[0026] On the basis of the above technical solution, preferably, step S4 specifically includes:

[0027] S41, select a first aggregation area set {B i The first clustering area B in i As the starting point, starting from the starting point, calculate the gathering center of the gathering area until {B i All the clustering areas of} are traversed, and the first clustering center set {C i};

[0028] S42, based on the gathering number threshold n, the first gathering center set {C i} Perform center analysis to determine the second cluster center set {D i}, and determine the second gathering center D i The coordinates of the second cluster center Di The number of people gathered.

[0029] Based on the above technical solution, preferably, step S41 specifically includes:

[0030] S411. Select a first gathering area B i , determine the first gathering area B according to the gathering distance threshold r and the gathering number threshold n i The first gathering center C i ;

[0031] S412: The first gathering area B i As a starting point, repeat step S411 until {B i All the clustering areas of} are traversed, and the first clustering center set {C i}.

[0032] Based on the above technical solution, preferably, step S411 specifically includes:

[0033] a. Select a first gathering area B i A point P in j , calculate point P i With the first clustering area set {B i}, if d2 is not greater than r, then the cluster center set {S x} and initialize the empty set, point P j and the corresponding points are added to the cluster center set {S x |S x =P j i}; Among them, P j i Indicates the i-th first clustering area B i The jth point of

[0034] b. If the central set {S x} has a number of points not less than n-1, find {S x The two points S with the largest distance between them m and S n , calculate point S m and S n Center P c , click S m and S n The distance between them is d max ;

[0035] c. j i ,{S x i}, P ci , d max i As the first gathering area B i The first gathering center C i ; where C i =(P j i ,{S x i}, P c i , d max i ), {S x i} represents the i-th first clustering area B i The aggregation center set of P c i Represents the cluster center set S x i The center of max i Represents the cluster center set S x i The maximum distance.

[0036] Based on the above technical solution, preferably, step S42 specifically includes:

[0037] S421, determine the first clustering center set {C i} is an empty set, if not, then from {C i} Take out a first gathering area B i If the first aggregation area B i Point P in the aggregation information j i If the first clustering area B i Point P in the aggregation information j i If it has not been marked, mark it and proceed to the next step;

[0038] S422, determine the aggregation center set {S x i} whether the point has been marked, if it has been marked, it is recorded as point P' j i , and execute the next step; if it has not been marked, and the cluster center set {S x i}If the data is less than n-1, jump to step S41;

[0039] S423, construct the second aggregation center set {D i} and initialize it to an empty set, and point P j iThe corresponding first gathering area B i The aggregation information is added to the second aggregation center set {D i};

[0040] S424, repeat steps S421-S423 until {C i}, and obtain the second clustering center set {D i |D i =(P' j i , {S' x i}, P' c i , d' max i )}, where {S' x i} represents point P' j i The corresponding first gathering area B i The central set of clustering; P' c i represents {S' x i} center, d' max i Indicates {S' x i} maximum distance;

[0041] S425, P' c i As the second gathering center D i The coordinates of {S' x i} as the number of people gathered.

[0042] More preferably, the method further comprises:

[0043] Rendering is performed in a three-dimensional scene according to the aggregation data of the polygonal area, and warning information is pushed to the user according to the rendering effect; the warning information includes the gathering location and the number of people in the polygonal area.

[0044] On the other hand, the present invention provides a system for analyzing the gathering status of people based on real-time location data, using the method as described above, including:

[0045] A data acquisition module configured to acquire real-time location data of the area to be analyzed;

[0046] A position acquisition module, configured to set the area to be analyzed as a polygonal area and determine a position data set within the polygonal area;

[0047] A clustering module, configured to cluster the location data set within the polygonal area using a diffusion clustering method to obtain a first clustered area set;

[0048] An aggregation calculation module is configured to perform aggregation calculation on the first aggregation area set respectively to obtain the center position and the number of people gathered in each aggregation area;

[0049] A display module is configured to draw a heat map according to the first set of clustering areas, the center position of each clustering area and the number of people gathered, and display the clustering data of the polygonal area;

[0050] The analysis module is configured to obtain a set of time series thematic maps according to the interval time, and determine the aggregation trend change of the area to be analyzed according to the time series thematic maps.

[0051] The method of the present invention has the following beneficial effects compared with the prior art:

[0052] (1) By acquiring the location data of the area to be analyzed in real time, the area is divided into polygonal areas and the diffusion clustering method is used to identify the gathering areas of people. The center position and the number of people gathered in each gathering area are calculated. The dynamic changes of the gathering of people can be grasped in time, the gathering areas can be accurately identified, and the efficiency and accuracy of the analysis of the gathering situation of people can be improved;

[0053] (2) Identify isolated points by judging the number of neighbors, and then gradually aggregate the location data points that may belong to the same clustering area into the first clustering area by iteratively expanding the neighborhood. Finally, by traversing the entire polygonal area, it ensures that all possible clustering areas are fully traversed and aggregated, thereby improving the accuracy of clustering area identification.

[0054] (3) By traversing the first clustering center set and marking the clustering points therein, repeated processing of the processed clustering points is avoided; the marked clustering center points are recorded, and the clustering centers that are not marked and have insufficient clustering population are filtered out to screen out invalid data, ensuring that all valid first clustering centers are processed to obtain a complete second clustering center set, and finally integrating the data to determine their location coordinates and the number of clustered people, thereby improving the efficiency and accuracy of personnel aggregation analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the embodiments of the present invention 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 of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0056] Figure 1 is a flow chart of the method of the present invention. DETAILED DESCRIPTION

[0057] The following will be combined with the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0058] like Figure 1 As shown, the present invention provides a method for analyzing the gathering status of people based on real-time location data, comprising the following steps:

[0059] S1. Obtain real-time location data of the area to be analyzed;

[0060] S2, setting the area to be analyzed as a polygonal area, determining a location data set within the polygonal area {A i}.

[0061] It is understandable that with the support of current mobile Internet and Internet of Things technologies, people's location information can be collected in real time from various mobile devices and sensing devices, providing a rich data source for personnel aggregation analysis.

[0062] By setting the area to be analyzed as a polygonal area, the location data in the area to be analyzed can be quickly and accurately obtained from massive real-time location data, thus achieving flexible definition of the area to be analyzed and accurate data acquisition.

[0063] In one embodiment of the present application, a polygonal boundary of an area to be analyzed is drawn by a GIS system. This polygonal area may be an irregular polygon, which is composed of a number of continuous coordinate points (x, y). The coordinate points of this polygonal area are stored in a database. By means of spatial query, all the location data points falling within the polygonal area are selected from the database. i}, the filtered location data point set {A i}Perform projection transformation and convert it into coordinate values ​​in the plane rectangular coordinate system for subsequent clustering analysis.

[0064] S3, using a diffusion clustering method to cluster the location dataset within the polygonal area i} to cluster and obtain the first clustering area set {B i}.

[0065] Specifically, step S3 specifically includes:

[0066] S31, setting the gathering distance threshold r and the gathering number threshold n;

[0067] S32, based on the aggregation distance threshold r and the location data set {A i}Determine the first neighborhood of the location data{S i};

[0068] S33, according to the gathering number threshold n and the first neighborhood {S i} for the number of position data sets {A i} to expand the neighborhood and obtain the first clustering area set {B i}.

[0069] It can be understood that the aggregation distance threshold r determines the standard for judging whether two location data belong to the same aggregation area, while the aggregation number threshold n determines the minimum number of people required to be identified as a valid aggregation area.

[0070] The first neighborhood of each location data is determined by clustering the distance threshold r. i}, realizing the local correlation analysis of location data, finding the data points that are close to each other, which helps to accurately divide the spatial range of personnel gathering; according to the gathering number threshold n, the first neighborhood {S i} to expand and obtain the first clustering area set {B i}, it realizes the identification and extraction of clustered areas from local to overall. By setting the cluster number threshold n, some small-scale local clusters can be effectively filtered out, and only effective clustered areas with a certain scale are retained, which helps to focus on the key areas where analysts gather and improve the pertinence and operability of the analysis results.

[0071] Further, step S32 specifically includes:

[0072] S321, select the location data set within the polygon area {A i A position data A in i , determine the position data A i Has it been marked? If not, then change the position number A i Marking

[0073] S322, calculate position data A respectively i A dataset with locations within a polygon area i}, if the distance d1 is not greater than the aggregation distance threshold r, create the first neighborhood {S i} and initialize it to an empty set, and set the position data A i and the corresponding points are added to the first neighborhood {S i}, we get the first neighborhood {S i}.

[0074] By using the location data A i Marking is performed to avoid repeated processing of the same data in subsequent calculations, thereby improving calculation efficiency. A set of data points that may belong to the same gathering area is extracted based on the distance threshold r, and local correlation analysis of each location data is achieved. A preliminary candidate set of gathering areas is formed, thereby improving the efficiency and accuracy of personnel gathering analysis.

[0075] Further, step S33 specifically includes:

[0076] S331, according to the gathering number threshold n and the first neighborhood {S i} to determine the position data A i Is it an isolated point: If the first neighbor {S i} is not less than the threshold n, then the first clustering area set {B i} and initialize it to an empty set, and set the position data A i Join the first gathering area set {B i};

[0077] S332, select the first neighbor {S i A point S in i , repeat step S331 to find point S i The second neighborhood of i '}, and the second neighborhood {S i '} join the first clustering area set {B i};

[0078] S333, traverse the first neighborhood {S i}, get the position data A i The first gathering area B i ;

[0079] S334, position data A i As the starting point, repeat steps S331-S333 to obtain the position data set {A i} to traverse and obtain the first clustering area set {B i}.

[0080] The present application identifies isolated points by judging the number of neighborhoods, and then gradually aggregates the location data points that may belong to the same aggregation area into the first aggregation area set {B i}, finally, by traversing the entire polygonal area, all possible clustering areas are fully traversed and clustered, thereby improving the accuracy of clustering area identification.

[0081] Step S3 is described with a specific embodiment:

[0082] S3-1, set the gathering distance threshold r to 5 meters, the gathering number threshold n to 3 people, according to the gathering distance threshold r = 5 meters, the location data set {A i}Determine the neighborhood:

[0083] S3-2. Select location dataset i A position data A in i , determine whether it has been marked; if it has not been marked as visited, mark it as visited;

[0084] S3-3. Calculate position data A i The distance d1 from all other location data; if d1≤5 meters, then A i and its corresponding position data are added to the first neighborhood {S i}middle;

[0085] S3-4, according to the gathering number threshold n = 3 people and the first neighborhood {S i}, for the location dataset {A i} to expand the neighborhood and obtain the first clustering area set {B i}, determine the position data A i The first neighbor of i} whether the number of points is less than or equal to 3 people:

[0086] If yes, then the location data A i If it is an isolated point, return to step S3-3;

[0087] If not, construct the first clustering region set {B i}, and A i Join in on it;

[0088] S3-5, select the first neighbor {S i A point S in i , repeat steps S3-2 to S3-4 to find S i The second neighborhood of i '}, and {S i '} join the first clustering area set {B i};

[0089] S3-6, repeat steps S3-2 to S3-5 until {S i All the points in {S i} are marked as visited, and A i B i ;

[0090] S3-7, Ai As a starting point, i} to traverse, repeat S3-2 to S3-6, and get {B i} for all points in .

[0091] It is understandable that if the first gathering area B i is 0, that is, all position data are isolated points, indicating the first clustering area B i There is no gathering of people inside.

[0092] S4, for the first aggregation area set {B i} Perform aggregation calculations separately to obtain the center position and number of people gathered in each aggregation area.

[0093] Specifically, step S4 specifically includes:

[0094] S41, select a first aggregation area set {B i The first clustering area B in i As the starting point, starting from the starting point, calculate the gathering center of the gathering area until {B i All the clustering areas of} are traversed, and the first clustering center set {C i};

[0095] S42, based on the gathering number threshold n, the first gathering center set {C i} Perform center analysis to determine the second cluster center set {D i}, and determine the second gathering center D i The coordinates of the second cluster center D i The number of people gathered.

[0096] By i} to conduct further center analysis to determine the location information of its clustering center. In the first clustering center set {C i}, we further extract the main gathering centers with a certain scale (threshold of the number of people gathered n), filter out some smaller secondary gathering centers, and achieve a more detailed and accurate description of the gathering of people, thereby improving the efficiency and accuracy of the gathering analysis; at the same time, we determine the second gathering center set {D i}’s coordinates and number of people gathered provide more accurate data support for subsequent visualization and analytical decision-making.

[0097] Furthermore, step S41 specifically includes:

[0098] S411. Select a first gathering area B i , determine the first gathering area B according to the gathering distance threshold r and the gathering number threshold n iThe first gathering center C i ;

[0099] S412: The first gathering area B i As a starting point, repeat step S411 until {B i All the clustering areas of} are traversed, and the first clustering center set {C i}.

[0100] By i Calculate its cluster center C i , and fully traverse {B i}, we get the first cluster center set {C i}, which helps to more accurately describe the specific location information of where people gather.

[0101] Furthermore, step S411 specifically includes:

[0102] a. Select a first gathering area B i A point P in j , calculate point P i With the first clustering area set {B i}, if d2 is not greater than r, then the cluster center set {S x} and initialize the empty set, point P j and the corresponding points are added to the cluster center set {S x |S x =P j i}; Among them, P j i Indicates the i-th first clustering area B i The jth point of

[0103] b. If the central set {S x} has a number of points not less than n-1, find {S x The two points S with the largest distance between them m and S n , calculate point S m and S n Center P c , click S m and S n The distance between them is d max ;

[0104] c. j i ,{S x i}, P c i , d maxi As the first gathering area B i The first gathering center C i ; where C i =(P j i ,{S x i}, P c i , d max i ), {S x i} represents the i-th first clustering area B i The aggregation center set of P c i Represents the cluster center set S x i Center of max i Represents the cluster center set S x i The maximum distance.

[0105] This application effectively filters out some points that are far away by clustering the distance threshold r, and preliminarily identifies B i The point set that may form the clustering center in the initial identification is used to improve the accuracy of clustering center identification; x} to further determine a more representative clustering center P c , and at the same time obtain the maximum coverage range d of the gathering center max , integrate the relevant information of the aggregation center obtained in the first two steps into a complete aggregation center description C i , which helps to better analyze the specific circumstances of personnel gathering and improves the efficiency and accuracy of personnel gathering analysis.

[0106] Further, step S42 specifically includes:

[0107] S421, determine the first clustering center set {C i} is an empty set, if not, then from {C i} Take out a first gathering area B i If the first aggregation area B i Point P in the aggregation information j i If the first clustering area B i Point P in the aggregation information j i If it has not been marked, mark it and proceed to the next step;

[0108] S422, determine the aggregation center set {S xi} whether the point has been marked, if it has been marked, it is recorded as point P' j i , and execute the next step; if it has not been marked, and the cluster center set {S x i}If the data is less than n-1, jump to step S41;

[0109] S423, construct the second aggregation center set {D i} and initialize it to an empty set, and point P j i The corresponding first gathering area B i The aggregation information is added to the second aggregation center set {D i};

[0110] S424, repeat steps S421-S423 until {C i}, and obtain the second clustering center set {D i |D i =(P' j i , {S' x i}, P' c i , d' max i )}, where {S' x i} represents point P' j i The corresponding first gathering area B i The central set of clustering; P' c i Indicates {S' x i} center, d' max i Indicates {S' x i} maximum distance;

[0111] S425, P' c i As the second gathering center D i The coordinates of {S' x i} as the number of people gathered.

[0112] This application traverses the first clustering center set {C i}, and mark the clustering points to avoid repeated processing of processed clustering points and improve analysis efficiency; record the marked clustering centers, and filter out the unmarked clustering centers with insufficient number of people, filter out invalid data, ensure that all valid first clustering centers are processed, and obtain a complete set of second clustering centers {D i}, and conduct final data integration to determine their location coordinates and the number of people gathered, thereby improving the efficiency and accuracy of personnel gathering analysis.

[0113] S5, according to the first aggregation area set {B i}、Draw a heat map of the center position and number of people gathered in each gathering area to display the gathering data of the polygonal area.

[0114] S6. Repeat steps S3-S5 within a preset time to obtain a time series thematic map, and determine the aggregation trend change of the area to be analyzed based on the time series thematic map.

[0115] By acquiring the location data of the area to be analyzed in real time, the area is divided into polygonal areas and the diffusion clustering method is used to identify the gathering areas of people. The center position and the number of people gathered in each gathering area are calculated, and the results are visualized in the form of a heat map. In addition, the method can repeat the above analysis steps within a preset time to obtain a time series thematic map, thereby analyzing the dynamic trend of the gathering of people. The efficiency and accuracy of the analysis of the gathering of people are improved, and the dynamic changes of the gathering of people can be grasped in a timely manner, the gathering areas can be accurately identified, and the relevant data can be presented in an intuitive and visual form, providing timely and comprehensive decision-making support for relevant management departments.

[0116] In an embodiment of the present application, the method further includes:

[0117] Rendering is performed in a three-dimensional scene according to the aggregation data of the polygonal area, and warning information is pushed to the user according to the rendering effect; the warning information includes the gathering location and the number of people in the polygonal area.

[0118] In an embodiment of the present application, the aggregation data of the polygonal area is visualized and rendered in a three-dimensional scene to intuitively display the status of personnel gathering, making it convenient for users to quickly understand and analyze the current gathering situation; at the same time, if the number of people gathered is too large or the gathering area is too concentrated, corresponding warning information can be pushed to the user, providing the user with more intelligent and efficient aggregation status monitoring and management functions.

[0119] The present invention also provides a system for analyzing the gathering status of people based on real-time location data, using the method as described above, including:

[0120] A data acquisition module configured to acquire real-time location data of the area to be analyzed;

[0121] A position acquisition module, configured to set the area to be analyzed as a polygonal area and determine a position data set within the polygonal area;

[0122] A clustering module, configured to cluster the location data set within the polygonal area using a diffusion clustering method to obtain a first clustered area set;

[0123] An aggregation calculation module is configured to perform aggregation calculation on the first aggregation area set respectively to obtain the center position and the number of people gathered in each aggregation area;

[0124] A display module is configured to draw a heat map according to the first set of clustering areas, the center position of each clustering area and the number of people gathered, and display the clustering data of the polygonal area;

[0125] The analysis module is configured to obtain a set of time series thematic maps according to the interval time, and determine the aggregation trend change of the area to be analyzed according to the time series thematic maps.

[0126] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for analyzing the gathering status of people based on real-time location data, characterized in that: The following steps are involved: S1. Obtain real-time location data of the area to be analyzed; S2, setting the area to be analyzed as a polygonal area, determining a location data set within the polygonal area {A i }; S3, using a diffusion clustering method to cluster the location dataset within the polygonal area i } to cluster and obtain the first clustering area set {B i }; S4, for the first aggregation area set {B i } Perform aggregation calculations separately to obtain the center position and number of people in each aggregation area; S5, according to the first aggregation area set {B i }、Draw a heat map of the center position and the number of people gathered in each gathering area to display the gathering data of the polygonal area; S6. Repeat steps S3-S5 within a preset time to obtain a time series thematic map, and determine the aggregation trend change of the area to be analyzed based on the time series thematic map.

2. A method for analyzing the gathering status of people based on real-time location data as claimed in claim 1, characterized in that: Step S3 specifically includes: S31, setting the gathering distance threshold r and the gathering number threshold n; S32, based on the aggregation distance threshold r and the location data set {A i }Determine the first neighborhood of the location data{S i }; S33, according to the gathering number threshold n and the first neighborhood {S i } for the number of position data sets {A i } to expand the neighborhood and obtain the first clustering area set {B i }.

3. A method for analyzing the gathering status of people based on real-time location data as claimed in claim 2, characterized in that: Step S32 specifically includes: S321, select the location data set within the polygon area {A i A position data A in i , determine the position data A i Has it been marked? If not, then change the position number A i Marking S322, calculate position data A respectively i and the location dataset within the polygon area i }, if the distance d1 is not greater than the aggregation distance threshold r, create the first neighborhood {S i } and initialize it to an empty set, and set the position data A i and the corresponding points are added to the first neighborhood {S i }, we get the first neighborhood {S i }.

4. The method for analyzing the gathering status of people based on real-time location data according to claim 2, characterized in that: Step S33 specifically includes: S331, according to the gathering number threshold n and the first neighborhood {S i } to determine the position data A i Is it an isolated point? If the first neighbor {S i } is not less than the threshold n, then the first clustering area set {B i } and initialize it to an empty set, and set the position data A i Join the first gathering area set {B i }; S332, select the first neighbor {S i A point S in i , repeat step S331 to find point S i The second neighborhood of i '}, and the second neighborhood {S i '} join the first clustering area set {B i }; S333, traverse the first neighborhood {S i }, get the position data A i The first gathering area B i ; S334, position data A i As the starting point, repeat steps S331-S333 to obtain the position data set {A i } to traverse and obtain the first clustering area set {B i }.

5. The method for analyzing the gathering status of people based on real-time location data according to claim 2, characterized in that: Step S4 specifically includes: S41, select a first aggregation area set {B i The first clustering area B in i As the starting point, starting from the starting point, calculate the gathering center of the gathering area until {B i All the clustering areas of} are traversed, and the first clustering center set {C i }; S42, based on the gathering number threshold n, the first gathering center set {C i } Perform center analysis to determine the second cluster center set {D i }, and determine the second gathering center D i The coordinates of the second cluster center D i The number of people gathered.

6. A method for analyzing the gathering status of people based on real-time location data as claimed in claim 5, characterized in that: Step S41 specifically includes: S411. Select a first gathering area B i , determine the first gathering area B according to the gathering distance threshold r and the gathering number threshold n i The first gathering center C i ; S412: The first gathering area B i As a starting point, repeat step S411 until {B i All the clustering areas of} are traversed, and the first clustering center set {C i }.

7. The method for analyzing the gathering status of people based on real-time location data according to claim 6, characterized in that: Step S411 specifically includes: a. Select a first gathering area B i A point P in j , calculate point P i With the first clustering area set {B i }, if d2 is not greater than r, then the cluster center set {S x } and initialize the empty set, point P j and the corresponding points are added to the cluster center set {S x |S x =P j i }; Among them, P j i Indicates the i-th first clustering area B i The jth point of b. If the central set {S x } has a number of points not less than n-1, find {S x The two points S with the largest distance between them m and S n , calculate point S m and S n Center P c , click S m and S n The distance between them is d max ; c. j i ,{S x i }, P c i , d max i As the first gathering area B i The first gathering center C i ; where C i =(P j i ,{S x i }, P c i , d max i ), {S x i } represents the i-th first clustering area B i The aggregation center set of P c i Represents the cluster center set S x i Center of max i Represents the cluster center set S x i The maximum distance.

8. The method for analyzing the gathering status of people based on real-time location data according to claim 1, characterized in that: Step S42 specifically includes: S421, determine the first clustering center set {C i } is an empty set, if not, then from {C i } Take out a first gathering area B i If the first aggregation area B i Point P in the aggregation information j i If the first clustering area B i Point P in the aggregation information j i If it has not been marked, mark it and proceed to the next step; S422, determine the aggregation center set {S x i } whether the point has been marked, if it has been marked, it is recorded as point P' j i , and execute the next step; if it has not been marked, and the cluster center set {S x i }If the data is less than n-1, jump to step S41; S423, construct the second aggregation center set {D i } and initialize it to an empty set, and point P j i The corresponding first gathering area B i The aggregation information is added to the second aggregation center set {D i }; S424, repeat steps S421-S423 until {C i }, and obtain the second clustering center set {D i |D i =(P' j i , {S' x i }, P' c i , d' max i )}, where {S' x i } represents point P' j i The corresponding first gathering area B i The central set of clustering; P' c i Indicates {S' x i } center, d' max i represents {S' x i } maximum distance; S425, P' c i As the second gathering center D i The coordinates of {S' x i } as the number of people gathered.

9. The method for analyzing the gathering status of people based on real-time location data according to claim 1, characterized in that: The method further comprises: Rendering is performed in a three-dimensional scene according to the aggregation data of the polygonal area, and warning information is pushed to the user according to the rendering effect; the warning information includes the gathering location and the number of people in the polygonal area.

10. A system for analyzing the gathering status of people based on real-time location data, characterized in that: The method according to any one of claims 1 to 9 comprises: A data acquisition module configured to acquire real-time location data of the area to be analyzed; A position acquisition module, configured to set the area to be analyzed as a polygonal area and determine a position data set within the polygonal area; A clustering module, configured to cluster the location data set within the polygonal area using a diffusion clustering method to obtain a first clustered area set; An aggregation calculation module is configured to perform aggregation calculation on the first aggregation area set respectively to obtain the center position and the number of people gathered in each aggregation area; A display module is configured to draw a heat map according to the first set of clustering areas, the center position of each clustering area and the number of people gathered, and display the clustering data of the polygonal area; The analysis module is configured to obtain a set of time series thematic maps according to the interval time, and determine the aggregation trend change of the area to be analyzed according to the time series thematic maps.

Citation Information

Patent Citations

  • Large scale crowd video analysis system and method thereof

    CN105447458A

  • BCS-DBSCAN-based visualization method and system for taxi passenger hotspot

    CN108959466A

  • Crowd clustering degree detection and presentation method based on unmanned aerial vehicle video capture

    CN111191637A

  • GIS-based automatic identification method and device for abnormal gathering of personnel

    CN111400424A

  • Urban crowd gathering hot spot area prediction method and system, medium and terminal

    CN114819253A

Cited By

  • Personnel positioning and gathering analysis method based on DBSCAN space-time sequence fusion

    CN119537977A

  • Partition metering system for gas purchase and sale difference management and control

    CN119919169A