Space-time trajectory mining method and system based on positioning data

Through the methods of local clustering and graph path retrieval, the accuracy problem of frequent trajectory extraction in spatiotemporal trajectory data is solved, accurate analysis and management of vehicle motion patterns are achieved, and errors caused by hard grid division are avoided.

CN118585690APending Publication Date: 2024-09-03CHINA INST OF RADIO PROPAGATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410682866.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-29
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing spatio-temporal trajectory mining methods are difficult to accurately extract frequent trajectories when processing spatio-temporal data of aircraft, ships and other vehicles without runway restrictions, especially due to misclassification problems caused by too fine data granularity and hard grid division. Traditional clustering The method cannot provide specific trajectory information.

Method used

Using the spatiotemporal trajectory mining method based on positioning data, through the combination of local clustering and graph path retrieval, clustering divides dense trajectory points into clusters, and constructs a directed and weighted graph, and extracts frequent occurrences through high-frequency paths in the graph. Trajectory, avoiding the error of hard mesh division.

Benefits of technology

It effectively extracts frequent trajectories and abnormal trajectories, can accurately analyze and manage the movement patterns of transportation vehicles, improves the accuracy and interpretability of trajectory data, and solves the problem of inaccurate trajectories in traditional methods.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118585690A
    Figure CN118585690A
Patent Text Reader

Abstract

The invention discloses a spatio-temporal trajectory mining method based on positioning data, which comprises the following steps: step 1, collecting historical data; step 2, processing the historical data; step 3, carrying out local clustering; step 4, constructing a large point diagram; the method mainly aims at the problem of track extraction of data with longitude and latitude position information, and a common track extraction algorithm fusing local clustering and graph path retrieval is provided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of computer machine learning, and in particular to a method and system for mining spatiotemporal trajectories based on latitude and longitude spatiotemporal positioning data in the field, which is particularly suitable for mining the spatiotemporal laws of vehicles without runway restrictions, such as aircraft and ships. Background Art

[0002] More and more studies have shown that the study of data patterns plays a vital role in people's lives. Spatiotemporal data has time and space dimensions. It can extract behavioral features in real time and establish a situation model with reference to spatiotemporal correlation constraints, so as to detect, understand and predict the situation that leads to a certain stage of behavior in real time. In order to understand and predict spatiotemporal big data events, the modeling and rule base construction of spatial big data event behaviors are studied to provide knowledge guarantee for pattern mining and active early warning of abnormal events.

[0003] Spatiotemporal data mining can help people better understand and manage data containing temporal and spatial information, provide data support and decision-making assistance for various application scenarios, and thus improve the level of social intelligence and problem-solving capabilities.

[0004] Through the analysis of spatiotemporal data, spatiotemporal trajectory mining can discover the movement patterns of transportation tools and help people solve various problems, such as traffic congestion, environmental pollution, and epidemic spread, while providing strong support for urban planning and traffic optimization. In addition, spatiotemporal trajectory mining can also bring extensive social benefits, such as improving urban management efficiency, improving the quality of public services, and ensuring public health safety.

[0005] Considering that the data recorded by aircraft and ships during driving are instantaneous position data at a certain moment, and the track pattern to be discovered is the common position information of the target activity, the data granularity is too fine to be conducive to the acquisition of the pattern. At present, the methods based on spatial grid division and data clustering are mainly used to obtain common trajectories. Spatial grid division is to divide the space into a unified grid according to the preset scale, and define the common trajectory as a grid sequence containing dense points. This method can give a representation of the common trajectory, but the hard division of the grid will cause the dense data points in the space to be assigned to different grids, resulting in inaccurate final trajectories; the clustering-based method is to cluster the dense track points, and the same track data is divided into the same cluster of clusters, which is defined as a common trajectory. This method realizes the data division of the same common trajectory, but cannot give specific trajectory information. Summary of the invention

[0006] The technical problem to be solved by the present invention is to provide a method and system for mining spatiotemporal trajectories based on positioning data, and the objects involved may be people, cars, airplanes, ships, etc. The purpose is to provide an extraction algorithm for common trajectories and abnormal trajectories by analyzing a large amount of historical location data of the object.

[0007] The present invention adopts the following technical solution:

[0008] A method for mining spatiotemporal trajectories based on positioning data, the improvement of which is that it includes the following steps:

[0009] Step 1: Collect historical data:

[0010] The historical data of the object is collected by the positioning system, and the historical data includes the object number, the time of current data collection, longitude and latitude; the data sequence of the object moving from one coordinate point to another coordinate point in a continuous period is a track;

[0011] Step 2, historical data processing:

[0012] Divide all data of the object into traces according to the number and time. Each trace is a segment. The segment number is recorded in section. The starting point, middle point, and end point of each segment are marked as 0, 1, and 2 respectively and recorded in location. All traces of the same object are merged and saved and named with the number.

[0013] Step 3, local clustering:

[0014] Step 31, sort the data in ascending order of time, and set the initial clustering identifier i=0;

[0015] Step 32, if there is data without a cluster identifier in the data, select the first data d without a cluster identifier and go to step 33; if there is no data without a cluster identifier in the data, go to step 310;

[0016] Step 33, calculating the spherical distance between d and other data without cluster identification;

[0017] Step 34, if the number of data with a spherical distance less than the threshold Eps is greater than the threshold MinPts, mark d as a core point, the cluster identifier is i, and go to step 35; otherwise, mark the data as an isolated point, the cluster identifier is -1, and go to step 32;

[0018] Step 35: Mark all data within the Eps range of data d as cluster i and add them to queue Q;

[0019] Step 36: Take the first data from queue Q, record it as d', go to step 37 and delete the data from queue Q. If queue Q is empty, set i=i+1 and go to step 32;

[0020] Step 37, calculating the spherical distance between d' and other data without cluster identification;

[0021] Step 38: If the number of data whose spherical distance of d' is less than the threshold Eps is greater than the threshold MinPts, mark d' as a core point, add all data within the range of Eps of data d' to queue Q', set the clustering identifier to i, and go to step 36; otherwise, mark d' as a boundary point, increase the value of the variable Flag recording the boundary point by 1, and go to step 39;

[0022] Step 39: If Flag is greater than a given threshold, clear the queue Q, set Flag = 0, i = i + 1, and go to step 32; otherwise, go to step 36;

[0023] Step 310: Calculate the center point of each cluster, where the center point is the average value of all data coordinates in the cluster;

[0024] Each cluster constructed is called a "big point", and each data in the cluster is called a "small point";

[0025] Step 4, build a large point map:

[0026] Step 41, use matrix A to represent the large point map, A ij Represents the weight of the edge from large point i to large point j, the initial A ij =0, 0≤i, j≤n, n represents the total number of large points;

[0027] Step 42: for each line, starting from the starting point, traverse each small point in turn. If the large points corresponding to two adjacent small points are numbered i and j, then let A ij =A ij +1;

[0028] Step 43, save the large point image file;

[0029] Step 5, add attributes to the big points:

[0030] Step 51, setting a threshold α;

[0031] Step 52, for each large point, count the number of small points in the large point as the starting point Start and the number of end points End;

[0032] Step 53, if start ≥ α, then mark the big point as the starting point, if end ≥ α, then mark the big point as the end point, and the others are normal points;

[0033] Step 54, save the "big point" information;

[0034] Step 6: Frequent trajectory extraction:

[0035] The large point graph is traversed and the high-frequency transmission paths are defined as frequent transmission trajectories.

[0036] A spatiotemporal trajectory mining system based on positioning data, the improvement of which includes:

[0037] A historical data collection unit, used for collecting historical data of the object through a positioning system;

[0038] A historical data processing unit is used to divide all the data of the object into traces and merge and save all traces of the same object;

[0039] Local clustering unit, used to cluster data;

[0040] Constructing a large point map unit, used to construct and save large point map files;

[0041] Additional attribute unit, used to add attributes to large points;

[0042] The frequent trajectory extraction unit is used to traverse the large point graph and define the high-frequency paths therein as frequent trajectories.

[0043] The beneficial effects of the present invention are:

[0044] Spatiotemporal trajectory mining refers to analyzing the behavior patterns and movement laws of mobile objects in time and space. The method of the present invention mainly aims at the trajectory extraction problem of data with longitude and latitude location information, and proposes a frequent trajectory extraction algorithm that integrates local clustering and graph path retrieval. Through local clustering, spatially dense location points are aggregated to form several dense clusters, and then a directed weighted graph of dense clusters is constructed based on the time sequence relationship between the same trace data contained in the dense clusters. In the graph, the dense clusters are nodes, and the edges between the two clusters indicate that the same trace passes through the two clusters. The direction indicates the moving direction of the trace, and the weight on the edge indicates the number of traces passing through the two dense clusters. It can be seen that the larger the edge weight, the more traces pass between the two points. Therefore, the path in the graph that is greater than the given threshold is the frequently occurring trajectory path. In addition, the calculation results based on the graph can determine the starting point and end point where the target often departs, which is very convenient for the analysis and mining of spatiotemporal trajectory data.

[0045] The method disclosed in the present invention adopts the idea of ​​local clustering to locally cluster dense trace points, thus avoiding the problem of hard grid division. By clustering, similar trace points are divided into clusters without setting grids, which well solves the problem of trace points being assigned to different grids due to spatial grid division.

[0046] The method disclosed in the present invention adopts the method of local clustering + graph path extraction to extract frequent trajectories, uses the clusters of local clustering as the nodes of the network, and transforms the frequent trajectory discovery problem into the path extraction problem in the network, which effectively solves the problem that traditional clustering cannot extract trajectories. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a schematic flow diagram of the method of the present invention;

[0048] Figure 2 It is a local clustering schematic diagram of the method of the present invention;

[0049] Figure 3 It is a schematic diagram of the local clustering termination conditions of the method of the present invention. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.

[0051] Example 1. This example discloses a method for mining spatiotemporal trajectories based on positioning data. It adopts the idea of ​​local clustering, and combines coordinate points with the same type of coordinate values ​​into a "big point" whose coordinate value is the average value of the same type of coordinate points. The time series relationship between the coordinate points forms the edges between the "big points", and finally the trajectories are represented in the form of a graph. Since the edges between the big points are weighted, the frequently occurring trajectories are obtained by screening the edges with high weights. Figure 1 As shown, the following steps are included:

[0052] Step 1: Collect historical data:

[0053] The historical data of the object is collected through the positioning system, and the historical data includes the object's number HexIdent, the time Time of current data collection, longitude Latitude, and Longitude Longitude; in a continuous period of time, the data sequence of the object moving from one coordinate point to another coordinate point is a track; for example, the flight data of an airplane flying from one airport to another airport is a track data.

[0054] Step 2, historical data processing:

[0055] The historical data only records the object's longitude and latitude and the time of collection, but does not record the track. The data needs to be processed. Generally, a track is from one location to another, and often stays at the arrival location for a certain period of time. In this way, there is a correlation between the collection time and location. The data track division is completed based on this correlation. Specifically:

[0056] Process the historical data obtained in step 1, divide all the data of the object into traces according to the number HexIdent and time Time, each trace is a segment, the segment number is recorded in section, mark the starting point, middle point, and end point of each segment as 0, 1, and 2 respectively and record them in location, merge and save all traces of the same object, and name them with the number HexIdent;

[0057] Step 3, local clustering:

[0058] Local clustering is to cluster the original trace data distribution according to spatial proximity. Figure 2 This is a schematic diagram of the clustering results. Figure 3 This is a schematic diagram of the local clustering end conditions. The specific steps are as follows:

[0059] Step 31, sort the data in ascending order of time, and set the initial clustering identifier i=0;

[0060] Step 32, if there is data without a cluster identifier in the data, select the first data d without a cluster identifier and go to step 33; if there is no data without a cluster identifier in the data, go to step 310;

[0061] Step 33, calculating the spherical distance between d and other data without cluster identification;

[0062] Step 34, if the number of data with a spherical distance less than the threshold Eps is greater than the threshold MinPts, mark d as a core point, the cluster identifier is i, and go to step 35; otherwise, mark the data as an isolated point, the cluster identifier is -1, and go to step 32;

[0063] Step 35: Mark all data within the Eps range of data d as cluster i and add them to queue Q;

[0064] Step 36: Take the first data from queue Q, record it as d', go to step 37 and delete the data from queue Q. If queue Q is empty, set i=i+1 and go to step 32;

[0065] Step 37, calculating the spherical distance between d' and other data without cluster identification;

[0066] Step 38: If the number of data whose spherical distance of d' is less than the threshold Eps is greater than the threshold MinPts, mark d' as a core point, add all data within the range of Eps of data d' to queue Q', set the clustering identifier to i, and go to step 36; otherwise, mark d' as a boundary point, increase the value of the variable Flag recording the boundary point by 1, and go to step 39;

[0067] Step 39: If Flag is greater than a given threshold, clear the queue Q, set Flag = 0, i = i + 1, and go to step 32; otherwise, go to step 36;

[0068] Step 310: Calculate the center point of each cluster, where the center point is the average value of all data coordinates in the cluster;

[0069] Each cluster constructed is called a "big point", and each data in the cluster is called a "small point". In the clustering process, the division of the "big points" mainly takes into account that the trajectory points are distributed in narrow strips. When the clustering reaches the edge of the narrow strip, the number of boundary points in the "big point" increases, and the clustering of the "big point" is terminated.

[0070] Step 4, build a large point map:

[0071] The "big points" generated in step 3 are used as nodes of the graph. If two big points contain two small points that are adjacent in time on the same track, the two big points are connected by an edge. The weight of the edge is defined as the number of such small point pairs. In essence, the weight represents the number of similar tracks.

[0072] The purpose of constructing a large point graph is to obtain the time sequence relationship of a large number of trajectory points. The time sequence of the large points is actually determined by the time sequence relationship of the small points. Therefore, the construction of the large point graph mainly depends on the time sequence relationship between the small points. The specific steps are:

[0073] Step 41, use matrix A to represent the large point map, A ij Represents the weight of the edge from large point i to large point j, the initial A ij =0, 0≤i, j≤n, n represents the total number of large points;

[0074] Step 42: for each line, starting from the starting point, traverse each small point in turn. If the large points corresponding to two adjacent small points are numbered i and j, then let A ij =A ij +1;

[0075] Step 43, save the large point image file;

[0076] Step 5, add attributes to the big points:

[0077] Each data of the trace is a "small dot", and the first data and the last data in the trace represent the starting small dot and the ending small dot respectively. If a large dot contains a large number of starting small dots, then mark the large dot as the starting point; similarly, if a large dot contains a large number of ending small dots, then mark the large dot as the ending point. The specific steps are:

[0078] Step 51, setting a threshold α;

[0079] Step 52, for each large point, count the number of small points in the large point as the starting point Start and the number of end points End;

[0080] Step 53, if start ≥ α, then mark the big point as the starting point, if end ≥ α, then mark the big point as the end point, and the others are normal points;

[0081] Step 54, save the "big point" information;

[0082] Step 6: Frequent trajectory extraction:

[0083] For the starting point and end point in the large point graph, combined with the weights on the edges in the graph, we extract the paths from the starting point to the end point whose weight values ​​are greater than a given threshold. These paths are the frequent trajectories.

[0084] The large point graph is traversed, and the high-frequency paths (large point paths with high weight values) are defined as frequent trajectories.

[0085] In summary, the method of the present invention can detect the regularity of target behavior, discover the regular driving trajectory of the object, discover target anomalies, and warn of target anomalies. Specifically, after comprehensive collection, integration, and fusion of target location data, long-term data analysis and data mining are performed to clarify the daily, routine, or customary activities of the target, a reference template is formed, and after analysis and mining of the newly acquired target real-time data, data comparison and analysis is performed with the reference template to discover anomalies.

[0086] This embodiment also discloses a spatiotemporal trajectory mining system based on positioning data, including:

[0087] A historical data collection unit, used for collecting historical data of the object through a positioning system;

[0088] A historical data processing unit is used to divide all the data of the object into traces and merge and save all traces of the same object;

[0089] Local clustering unit, used to cluster data;

[0090] Constructing a large point map unit, used to construct and save large point map files;

[0091] Additional attribute unit, used to add attributes to large points;

[0092] The frequent trajectory extraction unit is used to traverse the large point graph and define the high-frequency paths therein as frequent trajectories.

Claims

1. A spatiotemporal trajectory mining method based on positioning data, It is characterized in that The steps include: Step 1: Collect historical data: The historical data of the object is collected by the positioning system, and the historical data includes the object number, the time of current data collection, longitude and latitude; the data sequence of the object moving from one coordinate point to another coordinate point in a continuous period is a track; Step 2, historical data processing: Divide all data of the object into traces according to the number and time. Each trace is a segment. The segment number is recorded in section. The starting point, middle point, and end point of each segment are marked as 0, 1, and 2 respectively and recorded in location. All traces of the same object are merged and saved and named with the number. Step 3, local clustering: Step 31, sort the data in ascending order of time, and set the initial clustering identifier i=0; Step 32, if there is data without a cluster identifier in the data, select the first data d without a cluster identifier and go to step 33; if there is no data without a cluster identifier in the data, go to step 310; Step 33, calculating the spherical distance between d and other data without cluster identification; Step 34, if the number of data with a spherical distance less than the threshold Eps is greater than the threshold MinPts, mark d as a core point, the cluster identifier is i, and go to step 35; otherwise, mark the data as an isolated point, the cluster identifier is -1, and go to step 32; Step 35: Mark all data within the Eps range of data d as cluster i and add them to queue Q; Step 36: Take the first data from queue Q, record it as d', go to step 37 and delete the data from queue Q. If queue Q is empty, set i=i+1 and go to step 32; Step 37, calculating the spherical distance between d' and other data without cluster identification; Step 38: If the number of data whose spherical distance of d' is less than the threshold Eps is greater than the threshold MinPts, mark d' as a core point, add all data within the range of Eps of data d' to queue Q', set the clustering identifier to i, and go to step 36; otherwise, mark d' as a boundary point, increase the value of the variable Flag recording the boundary point by 1, and go to step 39; Step 39: If Flag is greater than a given threshold, clear the queue Q, set Flag = 0, i = i + 1, and go to step 32; Otherwise, go to step 36; Step 310: Calculate the center point of each cluster, where the center point is the average value of all data coordinates in the cluster; Each cluster constructed is called a "big point", and each data in the cluster is called a "small point"; Step 4, build a large point map: Step 41, use matrix A to represent the large point map, A ij Represents the weight of the edge from large point i to large point j, the initial A ij =0, 0≤i, j≤n, n represents the total number of large points; Step 42: for each line, starting from the starting point, traverse each small point in turn. If the large points corresponding to two adjacent small points are numbered i and j, then let A ij =A ij +1; Step 43, save the large point image file; Step 5, add attributes to the big points: Step 51, setting a threshold α; Step 52, for each large point, count the number of small points in the large point as the starting point Start and the number of end points End; Step 53, if start ≥ α, then mark the big point as the starting point, if end ≥ α, then mark the big point as the end point, and the others are normal points; Step 54, save the "big point" information; Step 6: Frequent trajectory extraction: The large point graph is traversed and the high-frequency transmission paths are defined as frequent transmission trajectories.

2. A spatiotemporal trajectory mining system based on positioning data, It is characterized in that include: A historical data collection unit, used for collecting historical data of the object through a positioning system; A historical data processing unit is used to divide all the data of the object into traces and merge and save all the traces of the same object; Local clustering unit, used to cluster data; Constructing a large point map unit, used to construct and save large point map files; Additional attribute unit, used to add attributes to large points; The frequent trajectory extraction unit is used to traverse the large point graph and define the high-frequency paths therein as frequent trajectories.