Urban community discovery method fusing line graph and track representation

By constructing a trajectory relationship topology graph and using a deep learning model to extract features, combined with the graph convolution clustering algorithm, the problem that trajectory correlation relationships are not considered in the existing traffic topology network methods is solved, and more fine-grained urban community discovery and trajectories are achieved. Characteristic expression.

CN118607680APending Publication Date: 2024-09-06ZHEJIANG UNIV
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202311209355.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-19
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

Existing traffic topology network methods are difficult to reveal the spatiotemporal correlations between trajectories, and lack consideration of high-dimensional implicit characteristics of trajectories, resulting in coarse-grained urban community discovery results and inability to fine-grained division of urban areas.

Method used

By constructing a trajectory relationship topology graph with OD flows as nodes and OD flow associations as edges, and using a deep learning model to extract feature representation vectors of spatiotemporal trajectory data, community discovery is performed using graph convolution clustering algorithms, and the nodes and edges of the graph are exchanged. to express trajectory dimension information.

Benefits of technology

It achieves finer-grained urban sub-region division, can more accurately mine the correlation between trajectories, and obtain community results with strong correlation semantics and spatiotemporal characteristics.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118607680A
    Figure CN118607680A
Patent Text Reader

Abstract

The invention discloses a line graph and trajectory representation fused urban community discovery method, which comprises the following steps of: carrying out one-time line graph conversion on a traditional urban traffic topology network constructed based on trajectory data to obtain a novel trajectory relationship topology graph, taking OD (Origin Destination) flow as a node, taking an OD flow association relationship as an edge, and carrying out one-time line graph conversion on the basis of the trajectory data; therefore, the graph structure can better express the incidence relation between the OD streams. And then, learning through a deep learning model to obtain a feature representation vector of the spatio-temporal trajectory data, fusing the feature representation vector as a node attribute into a trajectory relationship topological graph, and carrying out a community discovery method considering the node attribute and the topological structure on the graph. Therefore, the problem that the traditional urban community discovery method lacks consideration on the high-dimensional implicit features of the track is solved. According to the method, the advantages of line graph conversion are fully utilized in the trajectory relationship topological graph, and rich trajectory spatial-temporal feature information is used as the features of graph nodes, so that the calculation of the implicit association relationship between the OD pairs is more accurate, and the community discovery result is more reasonable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the fields of traffic topology map construction and urban community discovery, and in particular to an urban community discovery method integrating line graph and trajectory representation. Background Art

[0002] Carrying out reasonable urban zoning management has always been a key issue facing urban land space planning, and it is of great significance for coordinating space utilization, improving road network construction, and improving the level of urban digitalization. However, traditional urban zoning management often relies on top-down administrative divisions, which makes it difficult to reveal the behavioral laws and mobility patterns of residents' travel activities in a fine-grained manner. In recent years, with the rapid development of technologies such as the Internet of Things and artificial intelligence, urban travel trajectory data has become an indispensable and important support for depicting human social activities at a micro scale. It has become a new trend to conduct bottom-up research on urban spatial structure distribution based on trajectory data.

[0003] Community discovery based on traffic networks is one of the most widely used urban partitioning methods. This type of method regards hot spots in the road network as nodes and the origin-destination (OD) pairs between nodes as edges, thereby constructing a traffic topology network, and then running a community detection algorithm on the network to obtain urban partition (community) results. Each partition can be used as an urban analysis unit in subsequent urban big data analysis applications, such as traffic pattern analysis, OD demand prediction, bus route optimization, etc.

[0004] However, this type of method has some limitations. Due to the complex structure of the internal road network in the city, the large number of hot spots, and the large number of nodes and uneven density of the constructed traffic topology network, it is difficult for experts in the field of urban planning to quickly obtain valuable information from such a complex and dense network. The conventionally established traffic topology network can only reveal the accessibility between nodes in hot spots, and has limitations in revealing the potential spatiotemporal relationship between OD pairs. For example, the paper Revealing travel patterns and city structure with taxi trip data (Liu X, Gong L, Gong Y, et al. Revealing travel patterns and city structure with taxi trip data [J]. Journal of transport Geography, 2015, 43: 78-90.) performs community discovery based on the traditional traffic topology network, in which the nodes of the graph represent geographical areas, and the edges represent the trajectory relationship and distance between regions. However, this method only considers the closeness of traffic between regions, lacks consideration of trajectory associations, and the resulting urban community is a continuous geographical area, but cannot obtain a more fine-grained urban area at the trajectory level. In addition, in the paper STCCD: Semantic trajectory clustering based on community detection in networks (Liu C, Guo C. STCCD: Semantic trajectory clustering based on community detection in networks [J]. Expert Systems with Applications, 2020, 162: 113689.), Liu et al. constructed a new trajectory relationship topology graph to carry out community discovery algorithm, in which the graph nodes represent trajectories, the edges represent trajectory similarities, and the final community is the division of the trajectory set. However, when calculating trajectory features, the article artificially assigns semantic labels to trajectory points, calculates the probability distribution by calculating the frequency of trajectory point labels, and obtains the feature vector of the trajectory, thus ignoring the spatiotemporal dimension of the trajectory and the implicit high-dimensional features.

[0005] In summary, the traffic topology network constructed by existing methods can usually only reveal the accessibility between hot spots, without considering the potential spatiotemporal correlation between OD pairs. At the same time, there is a lack of feature modeling of trajectories in the traffic topology network, making it difficult to mine the correlation between trajectories. Summary of the invention

[0006] In view of the shortcomings of the prior art, the present invention proposes an urban community discovery method that integrates line graphs and trajectory representations. This method starts from the perspective of trajectories and highlights the correlation between trajectories. It is more suitable for bottom-up urban space division based on trajectory data. Specifically, this method converts the traditional urban traffic topology network constructed based on trajectory data into a line graph to obtain a new type of trajectory relationship topology graph, in which OD flows are nodes and OD flow correlation relationships are edges, so that the graph structure can better express the correlation between OD flows. Afterwards, the feature representation vector of the spatiotemporal trajectory data is obtained through learning by a deep learning model, and it is integrated into the trajectory relationship topology graph as a node attribute. Then, a community discovery method that takes into account both node attributes and topological structure is carried out on the graph, thereby solving the problem that traditional urban community discovery methods lack consideration of high-dimensional implicit features of trajectories.

[0007] The purpose of the present invention is achieved through the following technical solutions:

[0008] A method for discovering urban communities by integrating line graph and trajectory representation, the method comprising the following steps:

[0009] Step 1: Collect the vehicle's GPS spatiotemporal trajectory data and create a trajectory dataset;

[0010] Step 2: Extract the start and end points of all trajectories to obtain an OD point dataset consisting of the start and end points and an OD pair dataset consisting of the start and end points on each trajectory;

[0011] Step 3: Use triangulation clustering method to cluster the OD point data set to obtain several OD point clusters;

[0012] Step 4: Abstract each OD point cluster into a node in the traffic topology network, and then calculate the reachability relationship between OD point clusters based on the OD pair data. If there is a reachability relationship, add edges to the corresponding nodes in the traffic topology network, thereby constructing a traffic topology network based on OD point clusters and OD pair data sets;

[0013] Step 5: According to the concept of line graph in graph theory, the nodes and edges of the graph are exchanged to establish a trajectory relationship topology graph with OD flows as nodes and OD clusters where the starting and ending points of the OD flows are located as edges, while retaining the relevant information of the edges and nodes in the traffic topology network;

[0014] Step 6: Based on the sequence-to-sequence autoencoder model, a gated recurrent unit (GRU) is used to extract feature representation vectors of all trajectory data; for all nodes in the trajectory relationship topology graph, the trajectory features contained in the corresponding OD flow are aggregated to obtain node features;

[0015] Step 7: Use the graph convolution clustering community discovery algorithm, and consider the node characteristics and topological structure of the trajectory relationship topology graph to perform community discovery, and obtain the node division result, that is, the OD flow / trajectory division result.

[0016] Furthermore, the data of each track point on each track includes the longitude, latitude and timestamp of the track point, and each track data set includes the data of all track points on the track and the date when the current track occurs.

[0017] Furthermore, the step three includes the following sub-steps:

[0018] (3.1) Place all coordinate points in the OD point data set on a two-dimensional plane, use the Delaunay algorithm to construct a triangulation graph, and obtain the edge set E of the graph;

[0019] (3.2) Calculate the lengths of all edges in the triangulation graph;

[0020] (3.3) Arrange the lengths of all edges of the triangulation graph in ascending order and initialize each node as a cluster;

[0021] (3.4) Traverse the edge set E, and for each endpoint u and v of edge e, query the set C where they are located u and C v , if C u ≠C v And W(C u )<θorW(C v )<θ, then merge the two sets; where W(·) is the operation function of the query set size, and θ is the preset parameter that constrains the minimum range of each cluster; after the traversal is completed, the obtained OD point cluster is recorded as {C i , i=1, 2, ..., M}, where M is the total number of OD point clusters.

[0022] Furthermore, in step (3.2), assuming that any edge e has two endpoints A and B, the distance Dist(A, B) between points A and B is calculated as:

[0023]

[0024] Wherein, N(A, k) represents a point set consisting of A and its k nearest neighbors, and W(N(A, k)) represents the size of the set N(A, k).

[0025] Furthermore, the step 4 includes the following sub-steps:

[0026] (4.1) Initialize the traffic topology network and record it as graph G = (V, E), where the edge set Node set E = {e i, i = 1, 2, ..., M}, M is the total number of OD point clusters, e i Represents OD point cluster C i The corresponding node in graph G;

[0027] (4.2) Traverse any two nodes e in the traffic topology network G i 、e j , and find the corresponding OD point cluster C i , C j ; If an OD pair p can be found in the OD pair data set P i =(x u , x v ), so that x u ∈C i And x v ∈C j , then at node e i 、e j Add a directed edge v between ij , add the edge set V, and at the same time on the edge v ij The properties of OD are retained in p i information; after the traversal is completed, the traffic topology network G is obtained.

[0028] Furthermore, the step five includes the following sub-steps:

[0029] (5.1) Let the trajectory relationship topology be L, and initialize

[0030] (5.2) Traverse the directed edge set E in the traffic topology network G = (V, E), initialize a vertex v for each edge e∈E in the trajectory relationship topology graph L, and v retains the OD pair data contained in e;

[0031] (5.3) Traverse any edge e1 and e2 in G. If e1 and e2 have a shared common vertex u, and u is both the end point of e1 and the starting point of e2, then add a directed edge from v1 to v2 in L, and retain the OD point cluster information contained in u in this edge; after the traversal is completed, the construction of the trajectory relationship topology graph L is completed.

[0032] Furthermore, in the step 5, while establishing a new trajectory relationship topological graph, the direction of the edges, trajectory information, and POI information of the nodes in the traffic topological network are retained.

[0033] Furthermore, the step six includes the following sub-steps:

[0034] (6.1) The study area is divided into spatial grids of equal size, and the longitude and latitude coordinates of all trajectory points in the training data are mapped to the grids, which are regarded as discrete tokens in the field of natural language processing; the grids with more than k hits are selected as the vocabulary V, and each trajectory can be represented as a token sequence;

[0035] (6.2) Traverse each trajectory t in the trajectory training dataset i , by i Perform a certain degree of distortion processing to generate a low sampling rate trajectory t i ′;

[0036] (6.3) The training dataset is used to train the sequence-to-sequence autoencoder model. The training objective of the model is to maximize the conditional probability P(t|t′), that is, to make t′ as close as possible to the original trajectory t after encoding and decoding. The loss function uses the negative log-likelihood loss function, expressed as: L = -logP(t|t′); after the training is completed, the newly collected trajectory dataset is input into the trained autoencoder model to obtain the effective feature representation of each trajectory;

[0037] (6.4) Each node v in the trajectory relationship topology graph i Each contains several OD pairs of data, and the original tracks are found based on these OD pairs of data. The feature vectors of these trajectories Use the following formula to aggregate and get the node features

[0038]

[0039] Furthermore, in the step (6.2), t i Perform a certain degree of distortion processing, including adding noise and randomly discarding some sampling points.

[0040] Furthermore, the step seven specifically includes:

[0041] A graph convolution clustering community discovery algorithm is used to input the graph structure and graph node features of the trajectory relationship topology graph. After feature extraction and dimensionality reduction by the graph convolution clustering community discovery algorithm, the feature representation of the graph nodes is obtained, and then the K-Means clustering algorithm is used to obtain the node division.

[0042] The beneficial effects of the present invention are as follows:

[0043] The urban community discovery method of the present invention integrates line graph and trajectory representation, exchanges the nodes and edges of the graph, establishes a new trajectory relationship topology graph with OD flow as nodes and OD clusters where the starting and ending points of the OD flow are located as edges, and conducts urban community discovery based on the graph to obtain a number of OD pair sets with close associations. Specifically, since the construction of the new trajectory relationship topology graph is based on the traditional traffic topology network converted through line graph, the graph nodes carry information on the trajectory dimension rather than the geographic area dimension, so that the results of community discovery are converted from dividing urban geographic areas to dividing trajectory / OD pair sets with strongly correlated semantics and spatiotemporal characteristics, and can divide urban sub-areas from a more fine-grained perspective, solving the defect of traditional urban community discovery methods that ignore trajectory correlation and travel patterns. In addition, the present method fully utilizes the advantages of line graph conversion in the trajectory relationship topology graph, and uses rich trajectory spatiotemporal feature information as the features of the graph nodes, so that the calculation of implicit associations between OD pairs is more accurate, and the results of community discovery are more reasonable. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 The present invention is a flowchart of an urban community discovery method integrating line graph and trajectory representation according to an embodiment of the present invention. DETAILED DESCRIPTION

[0045] The present invention will be described in detail below based on the accompanying drawings and preferred embodiments, and the purpose and effects of the present invention will become more clear. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.

[0046] like Figure 1 As shown, the urban community discovery method integrating line graph and trajectory representation in this embodiment includes the following steps:

[0047] Step 1: Collect the vehicle's GPS spatiotemporal trajectory data and create a trajectory dataset.

[0048] Each trajectory data can be regarded as a series of trajectory point sequences, denoted by T j ={(p1, p2, ..., p i , ..., p n ), d j}, where n is the number of trajectory points, p i is the trajectory T j The i-th trajectory point, lon i ,lat i and t i Represent the trajectory point p i The longitude, latitude and timestamp of the j Indicates the date when the current trajectory occurs. The trajectory dataset is a collection of several trajectories {T i, i=1, 2, ..., N}, where N is the total number of trajectories in the trajectory set.

[0049] Step 2: Extract the start and end points of all trajectories to obtain an OD point dataset consisting of the start and end points and an OD pair dataset consisting of data pairs consisting of the start and end points on each trajectory.

[0050] An OD pair is a tuple consisting of the starting and ending points of a trajectory, denoted by P od ={(lon o ,lat o , t o ), (lon d ,lat d , t d )}, the OD pair dataset is a set of several OD pairs {P i , i = 1, 2, ..., N}, where N is the total number of trajectories in the trajectory set. An OD point is the starting point or end point of a trajectory, denoted by p = (lon, lat). The OD point dataset is a set of the starting and ending points of several trajectories {X i , i=1, 2, ..., 2N}.

[0051] Step 3: Use triangulation clustering method to cluster the OD point data set and obtain several OD point clusters.

[0052] (3.1) Place all coordinate points in the OD point data set on a two-dimensional plane, use the Delaunay algorithm to construct a triangulation graph, and obtain the edge set E of the graph;

[0053] (3.2) Calculate the lengths of all edges in the triangulation graph;

[0054] Assuming that any edge e has two endpoints A and B, the distance Dist(A, B) between points A and B is calculated as:

[0055]

[0056] Where N(A, k) represents the point set consisting of A and its k nearest neighbors, and W(N(A, k)) is the number of points in the set.

[0057] (3.3) Arrange the lengths of all edges of the triangulation graph in ascending order and initialize each node as a cluster;

[0058] (3.4) Traverse the edge set E, and for each endpoint u and v of edge e, query the set C where they are located u and C v , if C u ≠C v And W(C u )<θorW(Cv )<θ, then merge the two sets; where W(·) is the operation function of the query set size, and θ is the preset parameter that constrains the minimum range of each cluster; after the traversal is completed, the obtained OD point cluster is recorded as {C i , i=1, 2, ..., M}, where M is the total number of OD point clusters.

[0059] Step 4: Abstract each OD point cluster into a node in the traffic topology network, and then calculate the reachability relationship between OD point clusters based on the OD pair data. If a reachability relationship exists, add edges to the corresponding nodes in the traffic topology network, thereby constructing a traffic topology network based on OD point clusters and OD pair data sets.

[0060] (4.1) All OD point clusters are mapped to nodes in the traffic topology network. Initialize the traffic topology network and record it as graph G = (V, E), where the edge set Node set E = {e i , i = 1, 2, ..., M}, M is the total number of OD point clusters, e i Represents OD point cluster C i The corresponding node in graph G.

[0061] (4.2) Traverse any two nodes e in the traffic topology network G i 、e j , and find the corresponding OD point cluster C i , C j If we can find an OD pair p in the OD pair dataset P i =(x u , x v ), so that x u ∈C i And x v ∈C j , then at node e i 、e j Add a directed edge v between ij , add the edge set V, and at the same time on the edge v ij The properties of OD are retained in p i After the traversal is completed, the traffic topology network G is obtained.

[0062] Step 5: According to the concept of line graph in graph theory, the nodes and edges of the graph are exchanged to establish a trajectory relationship topology graph with OD flows as nodes and OD clusters where the starting and ending points of the OD flows are located as edges, while retaining the relevant information of the edges and nodes in the traffic topology network.

[0063] (5.1) Let the trajectory relationship topology be L, and initialize

[0064] (5.2) Traverse the directed edge set E in the traffic topology network G = (V, E), initialize a vertex v for each edge e∈E in the trajectory relationship topology graph L, and v retains the OD pair data contained in e;

[0065] (5.3) Traverse any edge e1 and e2 in G. If e1 and e2 have a shared common vertex u, and u is both the end point of e1 and the starting point of e2, then add a directed edge from v1 to v2 in L, and retain the OD point cluster information contained in u in this edge; after the traversal is completed, the construction of the trajectory relationship topology graph L is completed.

[0066] Step 6: Based on the sequence-to-sequence autoencoder model, a gated recurrent unit (GRU) is used to extract feature representation vectors of all trajectory data; for all nodes in the trajectory relationship topology graph, the trajectory features contained in the corresponding OD flow are aggregated to obtain node features.

[0067] (6.1) The study area is divided into spatial grids of equal size, and the longitude and latitude coordinates of all trajectory points in the training data are mapped to the grids, which are regarded as discrete tokens in the field of natural language processing; the grids with more than k hits are selected as the vocabulary V, and each trajectory can be represented as a token sequence;

[0068] (6.2) Traverse each trajectory t in the trajectory training dataset i , by i Perform a certain degree of distortion processing to generate a low sampling rate trajectory t i ′;

[0069] (6.3) The training dataset is used to train the sequence-to-sequence autoencoder model. The training objective of the model is to maximize the conditional probability P(t|t′), that is, to make t′ as close as possible to the original trajectory t after encoding and decoding. The loss function uses the negative log-likelihood (NLL) loss function commonly used in the field of natural language processing, expressed as: L = -logP(t|t′); After the training is completed, the newly collected trajectory dataset is input into the trained autoencoder model to obtain the effective feature representation of each trajectory;

[0070] (6.4) Each node v in the trajectory relationship topology graph i Each contains several OD pairs of data, and the original tracks are found based on these OD pairs of data. The feature vectors of these trajectories Use the following formula to aggregate and get the node features

[0071]

[0072] Step 7: Use the graph convolutional clustering (GCC) community discovery algorithm to perform community discovery by considering the node characteristics and topological structure of the trajectory relationship topological graph, and obtain the node division result, that is, the OD flow / trajectory division result.

[0073] Those skilled in the art can understand that the above are only preferred examples of the invention and are not intended to limit the invention. Although the invention is described in detail with reference to the above examples, those skilled in the art can still modify the technical solutions recorded in the above examples or replace some of the technical features therein with equivalents. Any modification, equivalent replacement, etc. made within the spirit and principle of the invention shall be included in the protection scope of the invention.

Claims

1. A method for discovering urban communities by integrating line graph and trajectory representation, characterized in that: The method comprises the following steps: Step 1: Collect the vehicle's GPS spatiotemporal trajectory data and create a trajectory dataset; Step 2: Extract the start and end points of all trajectories to obtain an OD point dataset consisting of the start and end points and an OD pair dataset consisting of the start and end points on each trajectory; Step 3: Use triangulation clustering method to cluster the OD point data set to obtain several OD point clusters; Step 4: Abstract each OD point cluster into a node in the traffic topology network, and then calculate the reachability relationship between OD point clusters based on the OD pair data. If there is a reachability relationship, add edges to the corresponding nodes in the traffic topology network, thereby constructing a traffic topology network based on OD point clusters and OD pair data sets; Step 5: According to the concept of line graph in graph theory, the nodes and edges of the graph are exchanged to establish a trajectory relationship topology graph with OD flows as nodes and OD clusters where the starting and ending points of the OD flows are located as edges, while retaining the relevant information of the edges and nodes in the traffic topology network; Step 6: Based on the sequence-to-sequence autoencoder model, a gated recurrent unit (GRU) is used to extract feature representation vectors of all trajectory data; for all nodes in the trajectory relationship topology graph, the trajectory features contained in the corresponding OD flow are aggregated to obtain node features; Step 7: Use the graph convolution clustering community discovery algorithm, and consider the node characteristics and topological structure of the trajectory relationship topology graph to perform community discovery, and obtain the node division result, that is, the OD flow / trajectory division result.

2. The urban community discovery method integrating line graph and trajectory representation according to claim 1, characterized in that: The data of each track point on each track includes the longitude, latitude and timestamp of the track point, and each track data set includes the data of all track points on the track and the date when the current track occurs.

3. The urban community discovery method integrating line graph and trajectory representation according to claim 1, characterized in that: The step three includes the following sub-steps: (3.1) Place all coordinate points in the OD point data set on a two-dimensional plane, use the Delaunay algorithm to construct a triangulation graph, and obtain the edge set E of the graph; (3.2) Calculate the lengths of all edges in the triangulation graph; (3.3) Arrange the lengths of all edges of the triangulation graph in ascending order and initialize each node as a cluster; (3.4) Traverse the edge set E, and for each endpoint u and v of edge e, query the set C where they are located u and C v , if C u ≠C v And W(C u )<θorW(C v )<θ, then merge the two sets; where W(·) is the operation function of the query set size, and θ is the preset parameter that constrains the minimum range of each cluster; after the traversal is completed, the obtained OD point cluster is recorded as {C i ,=1,2,…,}, where M is the total number of OD point clusters.

4. The urban community discovery method integrating line graph and trajectory representation according to claim 3 is characterized in that: In step (3.2), assuming that any edge e has two endpoints A and B, the distance Dist(A,B) between points A and B is calculated as: Among them, N(A,k) represents the point set consisting of A and its k nearest neighbors, and W(N(A,k)) represents the size of the set N(A,k).

5. The urban community discovery method integrating line graph and trajectory representation according to claim 1, characterized in that: The step 4 includes the following sub-steps: (4.1) Initialize the traffic topology network and record it as graph G = (V, E), where the edge set Node set E = {e i ,i=1,2,…,M}, M is the total number of OD point clusters, e i Represents OD point cluster C i The corresponding node in graph G; (4.2) Traverse any two nodes e in the traffic topology network G i 、e j , and find the corresponding OD point cluster C i , C j ; If an OD pair p can be found in the OD pair data set P i =(x u ,x v ), so that x u ∈C i And x v ∈C j , then at node e i 、e j Add a directed edge v between ij , add the edge set V, and at the same time on the edge v ij The properties of OD are retained in p i information; after the traversal is completed, the traffic topology network G is obtained.

6. The urban community discovery method integrating line graph and trajectory representation according to claim 1, characterized in that: The step five includes the following sub-steps: (5.1) Let the trajectory relationship topology be L, and initialize (5.2) Traverse the directed edge set E in the traffic topology network G = (V, E), and initialize a vertex v for each edge e∈E in the trajectory relationship topology graph L, where v retains the OD pair data contained in e; (5.3) Traverse any edge e1 and e2 in G. If e1 and e2 have a shared common vertex u, and u is both the end point of e1 and the starting point of e2, then add a directed edge from v1 to v2 in L, and retain the OD point cluster information contained in u in this edge; after the traversal is completed, the construction of the trajectory relationship topology graph L is completed.

7. The urban community discovery method integrating line graph and trajectory representation according to claim 1, characterized in that: In the step 5, a new trajectory relationship topological graph is established while retaining the direction of the edges, trajectory information, and POI information of the nodes in the traffic topological network.

8. The urban community discovery method integrating line graph and trajectory representation according to claim 1, characterized in that: The step six includes the following sub-steps: (6.1) The study area is divided into spatial grids of equal size, and the longitude and latitude coordinates of all trajectory points in the training data are mapped to the grids, which are regarded as discrete tokens in the field of natural language processing; the grids with more than k hits are selected as the vocabulary V, and each trajectory can be represented as a token sequence; (6.2) Traverse each trajectory t in the trajectory training dataset i , by i Perform a certain degree of distortion processing to generate a low sampling rate trajectory t i ′ ; (6.3) The training dataset is used to train the sequence-to-sequence autoencoder model. The training objective of the model is to maximize the conditional probability P(t|t ′ ), that is, let t ′ After encoding and decoding, the original trajectory t is as close as possible. The loss function uses the negative log-likelihood loss function, which is expressed as: L = -logP(t|t ′ ); After the training is completed, the newly collected trajectory dataset is input into the trained autoencoder model to obtain the effective feature representation of each trajectory; (6.4) Each node v in the trajectory relationship topology graph i Each contains several OD pairs of data, and the original tracks are found based on these OD pairs of data. The feature vectors of these trajectories Use the following formula to aggregate and get the node features 9. The urban community discovery method integrating line graph and trajectory representation according to claim 8, characterized in that: In the step (6.2), t i Perform a certain degree of distortion processing, including adding noise and randomly discarding some sampling points.

10. The urban community discovery method integrating line graph and trajectory representation according to claim 1, characterized in that: The step seven specifically includes: A graph convolution clustering community discovery algorithm is used to input the graph structure and graph node features of the trajectory relationship topology graph. After feature extraction and dimensionality reduction by the graph convolution clustering community discovery algorithm, the feature representation of the graph nodes is obtained, and then the K-Means clustering algorithm is used to obtain the node division.

Citation Information

Cited By

  • Public service facility site selection method and system, intelligent terminal and storage medium

    CN119476650A