Vehicle trajectory data complementing method based on space-time diagram embedding

Through the spatio-temporal graph embedding method of LSTM and GCN, combined with time and spatial information, the problems of inaccurate trajectory data completion and poor real-time performance in the existing technology are solved, and a more accurate and stable trajectory data completion effect is achieved.

CN118779595AActive Publication Date: 2024-10-15QINGDAO SONLI SOFTWARE INFORMATION TECH

Patent Information

Application Number
CN202411251999.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-09
Publication Date
2024-10-15
Estimated Expiration
2044-09-09

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively capture the contextual dependencies and dynamic traffic network information of complex trajectory sequences, resulting in inaccurate vehicle trajectory data completion, poor real-time performance, and difficulty in coping with different types of trajectory missing.

Method used

The spatio-temporal graph embedding method based on LSTM model and GCN is used to extract the time-related information of vehicle trajectory data through the attention mechanism, and the GCN module is used to learn real-time traffic information, construct a trajectory flow graph, and complete trajectory points by combining time and space information.

Benefits of technology

It improves the accuracy and real-time performance of trajectory data completion, can better capture the spatiotemporal dependence of complex trajectory data, adapts to different types of trajectory missing, and provides stable completion effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118779595A_ABST
    Figure CN118779595A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of data processing, in particular to a vehicle trajectory data completion method based on space-time diagram embedding, which is characterized in that based on an LSTM (Long Short Term Memory) model, time correlation information among vehicle trajectory data is fully extracted through an attention mechanism, and trajectory flow diagram embedding of real-time road condition information is learned through a GCN module, so that spatial information of a traffic network is obtained; according to the method, the LSTM model and the GCN model are combined to carry out track point completion, accurate vehicle track data are obtained, through combination of the LSTM model and the GCN model, the space-time dependency relationship of complex track data can be more accurately captured, the accuracy of track data completion is improved, the calculation efficiency is improved, the real-time performance is enhanced, and a stable completion effect can be provided for different types of track missing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of data processing, and in particular to a vehicle trajectory data completion method based on spatiotemporal graph embedding. Background Art

[0002] With the rapid development of Internet of Things technology and GPS positioning technology, the transportation industry has accumulated a large amount of vehicle trajectory data, which contains rich temporal and spatial information and can be widely used in vehicle travel destination analysis, urban traffic planning, urban traffic congestion management and other fields. However, in actual situations, due to the limitations of the collection environment and financial resources, it is difficult to obtain complete vehicle trajectory data. Through the existing data, combined with deep learning algorithms, it is possible to complete vehicle trajectory data, improve the accuracy and efficiency of traffic management, and significantly improve the overall performance of the smart transportation system.

[0003] In the early days, vehicle trajectory data was mainly completed by interpolation algorithms, but the completion method was too simple and could not capture the changes in real-time traffic flow and road conditions, resulting in a large deviation between the completed trajectory and the actual driving path. Although the trajectory playback method based on membership data uses historical trajectory data for matching, it is affected by the noise and missing of historical trajectories, and cannot complete unknown new paths. It is difficult to cope with new traffic patterns and emergencies, and the completion effect is unstable. The trajectory completion method based on graph neural network uses graph neural network to represent the road network as a graph structure, but it has the disadvantages of large computational complexity and poor real-time performance. The method of generating missing trajectory data based on generative adversarial network (GAN) is complex and prone to collapse, and it is difficult to deal with different types of trajectory missing. In summary, the existing methods cannot well capture the complex contextual dependencies of trajectory sequences, mine dynamic traffic network information, and reasonably and accurately complete trajectory data. Therefore, it is necessary to find a trajectory data completion method that integrates dynamic spatiotemporal information. Summary of the invention

[0004] In order to solve the shortcomings of the above methods, the present invention proposes a vehicle trajectory data completion method based on spatiotemporal graph embedding. Based on the LSTM model, the temporal correlation information between vehicle trajectory data is fully extracted through the attention mechanism, and the trajectory flow graph embedding of real-time road condition information is learned through the GCN module to obtain the spatial information of the traffic road network. The two are combined to complete the trajectory points and obtain accurate vehicle trajectory data.

[0005] In order to achieve the above object, the present invention adopts the following technical solution: A vehicle trajectory data completion method based on spatiotemporal graph embedding comprises the following steps: S1. Data collection: Obtain the precise latitude and longitude information of each location point of the vehicle through the vehicle positioning equipment and road monitoring equipment, and obtain the vehicle location data at different times; S2, data processing: the obtained vehicle position data is divided into units of days, that is, the vehicle position data of each day is taken as a trajectory, and the trajectory data is covered at a certain ratio to form a trajectory with a low sampling rate, thereby obtaining trajectory data; S3, trajectory flow graph construction: the trajectory data is formed into a trajectory set and a trajectory flow graph is constructed; S4, GCN spatial information embedding: Use the GCN graph convolutional network to encode the transformation mode and attributes of the trajectory point, and obtain the GCN embedding representation of the trajectory point; S5, spatiotemporal information embedding: embed the trajectory points and combine them with the GCN embedding representation of the trajectory points to obtain the spatiotemporal information embedding representation; S6, LSTM spatiotemporal trajectory completion: The embedded trajectory points are input into the LSTM model to complete the trajectory data and obtain the predicted trajectory that matches the current traffic network.

[0006] As a further technical solution of the present invention, the trajectory flow graph constructed in step S3 is an attribute weighted directed graph, in which nodes represent location points, edges represent adjacent access relationships between location points, edge weights represent the number of occurrences, and the attributes of each location point are composed of longitude, latitude and access frequency. Specifically, for the trajectory set , the trajectory flow graph is an attribute-weighted directed graph , where the node set V is the set of position points p, and the edge set Indicates the adjacent access relationship between location points. is the attribute function of the position point, the attribute of each position point p It is composed of longitude, latitude, and access frequency. If If the Si trajectory appears in the trajectory set S, there is an edge from p1 to p2, that is, they are visited continuously, w is the weight function of the edge, and the edge Weight Indicates that it appears in the S track The number of times.

[0007] As a further technical solution of the present invention, the specific process of step S4 is: S41. For the constructed trajectory flow graph G, its adjacency matrix is ​​A∈R N×N , calculate the normalized Laplacian matrix: , where D is the degree matrix, is the identity matrix of G with dimension N×N; S42, input node feature matrix H (0) =X∈R N×C, C means the feature dimension of the input node feature matrix. The GCN layer is used to aggregate its neighborhood information with the node's own embedding information to update the node's embedding information: ,in Indicates The input signal of the layer, Indicates The model weight matrix of the layer, is the corresponding deviation term, is the ReLU activation function; For the The dimension of the layer output features; S43. By stacking multiple GCN modules to enhance the representation ability of the model, the final GCN output trajectory point GCN embedding representation: , For the The node feature matrix of the layer, that is, the node feature matrix of the GCN module The node feature representation after layer processing, For the The node feature matrix of the layer, that is, the node feature matrix of the GCN module The node feature representation after layer processing, For the The bias term of the layer is used to introduce bias.

[0008] As a further technical solution of the present invention, the specific process of step S5 is: S51, the trajectory S={S i} is embedded, a trajectory point m=<x,y,s> , x, y, s are longitude, latitude, and time information respectively, and after embedding, they are: ; ; ; in is an embedding function used to convert the input data x, y into a vector representation of fixed dimension; is the frequency parameter, which is used to adjust the time information The periodic characteristics of is the time information, indicating the trajectory point timestamp, Phase parameter, used to adjust time information The phase of S52. Combine the trajectory representation with the GCN embedding representation of the trajectory point to obtain the spatiotemporal information embedding ,in, For splicing operation, is the weight coefficient of the spatial information graph.

[0009] As a further technical solution of the present invention, the specific process of step S6 is: S61. Spatiotemporal embedding information of trajectory points Input to the encoder of the LSTM model, the encoder uses the LSTM unit to obtain the spatiotemporal dependencies in the trajectory sequence, and continuously updates the hidden layer state of the LSTM unit through the input vector: , and obtain the spatiotemporal hidden state , the hidden layer state update method at the current time t is as follows: ; ; ; ; ; in, is the input vector at time t, i.e., the spatiotemporal embedding information of the trajectory point; is the hidden layer state at time t, which is determined by the LSTM unit according to the current input and the hidden layer state at the previous moment Calculated; is the input gate at time t, which determines the current input Cell status the extent of the impact; It is the forget gate at time t, which determines the cell state at the previous moment Current cell status the extent of the impact; It is the output gate at time t, which determines the current cell state The hidden layer state the extent of the impact; is the candidate cell state at time t, which is based on the current input and the hidden layer state at the previous moment Calculated; is the cell state at time t, which is passed through the forget gate and input gate The cell state at the previous moment and candidate cell states Obtained by weighted sum update; is the weight matrix of the input gate, the recursive weight matrix, and the bias vector; is the weight matrix of the forget gate, the recursive weight matrix and the bias vector; is the weight matrix of the output gate, the recursive weight matrix and the bias vector; are the weight matrix, recursive weight matrix, and bias vector of the candidate cell state; is the sigmoid activation function, which is used in the gating mechanism to compress the input between 0 and 1; tanh is the hyperbolic tangent activation function, which is used to calculate the candidate cell state and compress the input between -1 and 1; ⊙ represents element-wise multiplication (Hadamard product); S62, the spatiotemporal hidden state obtained by the encoder The decoder of the input LSTM model is used for high-sampling trajectory completion. The decoder is composed of LSTM units. An attention layer is added to the decoder. The attention weight is introduced to obtain the weighted combination of the spatiotemporal hidden states output by the encoder. The context vector at the moment , the attention layer input is the spatiotemporal hidden state of the encoder and the hidden state of the decoder at the previous time step , the output is the context vector : ,in , For the The attention weights for each encoder hidden state at each time step, It is a scoring function used to calculate the correlation between the encoder hidden layer state and the decoder hidden layer state at the previous time step. The decoder LSTM unit hidden layer state update calculation process is: ,in, and The segment ID and movement ratio predicted for the previous time step; S63, the hidden state obtained by the encoder Input to the fully connected layer, use the Softmax function to classify the predicted road segment ID, obtain the probability matrix of all road segment IDs, and select the road segment ID with the highest probability as the final predicted road segment ID; and use the Sigmoid activation function to predict the movement ratio; S64, integrating the road segment ID and the movement ratio to obtain a predicted trajectory that matches the current traffic road network.

[0010] Compared with the prior art, the present invention has the following beneficial effects: The present invention solves the problem that existing methods cannot fully capture the contextual dependencies and dynamic traffic network information of complex trajectory sequences. By combining the LSTM model and GCN, the spatiotemporal dependencies of complex trajectory data can be captured more accurately, and the accuracy of trajectory data completion can be improved. In addition, the optimized model design improves the computational efficiency and enhances the real-time performance. It can cope with different types of trajectory missing and provide a stable completion effect. The specific advantages are as follows: (1) Through the LSTM model, the contextual dependencies of each trajectory point can be deeply learned, which not only captures the temporal order of trajectory points, but also understands the complex dynamic changes in the trajectory, ensuring temporal rationality and consistency. In addition, the long-term short-term memory characteristics of LSTM enable it to retain important historical information, so that the location of future points can be better predicted when completing trajectory points.

[0011] (2) By establishing a trajectory flow graph of location points and using a graph convolutional network (GCN) to obtain the embedded information of the dynamic traffic network, the spatial characteristics of the traffic network can be captured, including the connectivity of roads and the dynamic changes of traffic flow. The characteristics of GCN enable it to effectively integrate neighborhood information, thereby achieving high-precision trajectory point completion in space and ensuring the rationality and accessibility of trajectory points in space.

[0012] (3) By organically combining temporal information with spatial information, the completed trajectory is ensured to be not only temporally coherent but also spatially feasible. The fused trajectory points can more accurately reflect the actual movement path of the vehicle, thereby achieving high-precision trajectory data completion in complex traffic environments. This method can not only adapt to different types of trajectory missing, but also perform well in real-time. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] The accompanying drawings constituting a part of the present invention are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present disclosure and do not constitute improper limitations on the present invention.

[0014] Figure 1 A schematic flow chart of a vehicle trajectory data completion method based on spatiotemporal graph embedding provided by the present invention. DETAILED DESCRIPTION

[0015] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0016] It should be noted that the following detailed descriptions are exemplary and are intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0017] It should be noted that the terms used herein are only for describing specific embodiments, and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that the terms "include" and "have" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0018] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.

[0019] Example: like Figure 1 As shown, this embodiment provides a vehicle trajectory data completion method based on spatiotemporal graph embedding, comprising the following steps: S1. Data collection: When a vehicle passes through the monitoring area, the monitoring equipment takes photos at fixed time intervals, and the on-board positioning equipment obtains the precise latitude and longitude information of each location point to obtain the vehicle location data at different times.

[0020] S2. Data processing: The obtained vehicle position data is divided into days, that is, the vehicle position data of each day is taken as a trajectory, and the trajectory data is covered at a certain ratio to form a trajectory with a low sampling rate to obtain the trajectory data.

[0021] S3. Trajectory flow graph construction: The trajectory data is formed into a trajectory set and a trajectory flow graph is constructed. The constructed trajectory flow graph is an attribute-weighted directed graph, in which nodes represent location points, edges represent adjacent access relationships between location points, and edge weights represent the number of occurrences. The attributes of each location point are composed of longitude, latitude, and access frequency. Specifically, for the trajectory set , the trajectory flow graph is an attribute-weighted directed graph , where the node set V is the set of position points p, and the edge set Indicates the adjacent access relationship between location points. is the attribute function of the position point, the attribute of each position point p It is composed of longitude, latitude, and access frequency. If If the Si trajectory appears in the trajectory set S, there is an edge from p1 to p2, that is, they are visited continuously, w is the weight function of the edge, and the edge Weight Indicates that it appears in the S track The number of times.

[0022] S4, GCN spatial information embedding: The GCN graph convolutional network is used to encode the transformation mode and attributes of the trajectory points to obtain the GCN embedding representation of the trajectory points; the specific process is: S41, for the constructed trajectory flow graph G, its adjacency matrix is ​​A∈R N×N , calculate the normalized Laplacian matrix: , where D is the degree matrix, is the identity matrix of G with dimension N×N; S42, input node feature matrix H (0) =X∈R N×C , C means the feature dimension of the input node feature matrix. The GCN layer is used to aggregate its neighborhood information with the node's own embedding information to update the node's embedding information: ,in Indicates The input signal of the layer, Indicates The model weight matrix of the layer, is the corresponding deviation term, is the ReLU activation function; For the The dimension of the layer output features; S43. By stacking multiple GCN modules to enhance the representation ability of the model, the final GCN output trajectory point GCN embedding representation: , For the The node feature matrix of the layer, that is, the node feature matrix of the GCN module The node feature representation after layer processing, For the The node feature matrix of the layer, that is, the node feature matrix of the GCN module The node feature representation after layer processing, For the The bias term of the layer is used to introduce bias.

[0023] S5. Spatiotemporal information embedding: The trajectory points are embedded and represented, and combined with the GCN embedding representation of the trajectory points to obtain the spatiotemporal information embedding representation. Through the embedding representation, the time and space information are fully integrated to provide a basis for subsequent trajectory completion. The specific process is as follows: S51, the trajectory S={S i} is embedded, a trajectory point m=<x,y,s> , x, y, s are longitude, latitude, and time information respectively, and after embedding, they are: ; ; ; in is an embedding function used to convert the input data x, y into a vector representation of fixed dimension; Is the frequency parameter, used to adjust the time information The periodic characteristics of is the time information, indicating the trajectory point timestamp, Phase parameter, used to adjust time information The phase of S52. Combine the trajectory representation with the GCN embedding representation of the trajectory point to obtain the spatiotemporal information embedding ,in, For splicing operation, is the weight coefficient of the spatial information graph.

[0024] S6, LSTM spatiotemporal trajectory completion: The embedded trajectory points are input into the encoder of the LSTM model, and the spatiotemporal dependency of the trajectory sequence is obtained by using the LSTM unit. The spatiotemporal hidden state output by the encoder is used as the input of the decoder. The hidden state is weighted and combined through the attention layer. The decoder LSTM unit updates the hidden layer state in combination with the context vector. The road section ID and mobile ratio are predicted through the fully connected layer and activation function, and the predicted trajectory matching the current traffic network is obtained comprehensively. The specific process is as follows: S61. Spatiotemporal embedding information of trajectory points Input to the encoder of the LSTM model, the encoder uses the LSTM unit to obtain the spatiotemporal dependencies in the trajectory sequence, and continuously updates the hidden layer state of the LSTM unit through the input vector: , and obtain the spatiotemporal hidden state , the hidden layer state update method at the current time t is as follows: ; ; ; ; ; in, is the input vector at time t, i.e., the spatiotemporal embedding information of the trajectory point; is the hidden layer state at time t, which is determined by the LSTM unit according to the current input and the hidden layer state at the previous moment Calculated; is the input gate at time t, which determines the current input Cell status the extent of the impact; It is the forget gate at time t, which determines the cell state at the previous moment Current cell status the extent of the impact; It is the output gate at time t, which determines the current cell state The hidden layer state the extent of the impact; is the candidate cell state at time t, which is based on the current input and the hidden layer state at the previous moment Calculated; is the cell state at time t, which is passed through the forget gate and input gate The cell state at the previous moment and candidate cell states Obtained by weighted sum update; is the weight matrix of the input gate, the recursive weight matrix, and the bias vector; is the weight matrix of the forget gate, the recursive weight matrix and the bias vector; is the weight matrix of the output gate, the recursive weight matrix and the bias vector; are the weight matrix, recursive weight matrix, and bias vector of the candidate cell state; is the sigmoid activation function, which is used in the gating mechanism to compress the input between 0 and 1; tanh is the hyperbolic tangent activation function, which is used to calculate the candidate cell state and compress the input between -1 and 1; ⊙ represents element-wise multiplication (Hadamard product); S62, the spatiotemporal hidden state obtained by the encoder The decoder of the input LSTM model is used for high-sampling trajectory completion. The decoder is composed of LSTM units. An attention layer is added to the decoder. The attention weight is introduced to obtain the weighted combination of the spatiotemporal hidden states output by the encoder. The context vector at the moment , the attention layer input is the spatiotemporal hidden state of the encoder and the hidden state of the decoder at the previous time step , the output is the context vector : ,in , For the The attention weights for each encoder hidden state at each time step, It is a scoring function used to calculate the correlation between the encoder hidden layer state and the decoder hidden layer state at the previous time step. The decoder LSTM unit hidden layer state update calculation process is: ,in, and The segment ID and movement ratio predicted for the previous time step; S63, the hidden state obtained by the encoder Input to the fully connected layer, use the Softmax function to classify the predicted road segment ID, obtain the probability matrix of all road segment IDs, and select the road segment ID with the highest probability as the final predicted road segment ID; and use the Sigmoid activation function to predict the movement ratio; S64, integrating the road segment ID and the movement ratio to obtain a predicted trajectory that matches the current traffic road network.

[0025] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

[0026] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.

Claims

1. A vehicle trajectory data completion method based on spatiotemporal graph embedding, characterized in that: The following steps are involved: S1. Data collection: Obtain the precise latitude and longitude information of each location point of the vehicle through the vehicle positioning equipment and road monitoring equipment, and obtain the vehicle location data at different times; S2, data processing: the obtained vehicle position data is divided into units of days, that is, the vehicle position data of each day is taken as a trajectory, and the trajectory data is covered at a certain ratio to form a trajectory with a low sampling rate, thereby obtaining trajectory data; S3, trajectory flow graph construction: the trajectory data is formed into a trajectory set and a trajectory flow graph is constructed; S4, GCN spatial information embedding: Use the GCN graph convolutional network to encode the transformation mode and attributes of the trajectory point, and obtain the GCN embedding representation of the trajectory point; S5, spatiotemporal information embedding: embed the trajectory points and combine them with the GCN embedding representation of the trajectory points to obtain the spatiotemporal information embedding representation; S6, LSTM spatiotemporal trajectory completion: The embedded trajectory points are input into the LSTM model to complete the trajectory data and obtain the predicted trajectory that matches the current traffic network.

2. The vehicle trajectory data completion method based on spatiotemporal graph embedding according to claim 1 is characterized in that: The trajectory flow graph constructed in step S3 is an attribute-weighted directed graph, in which nodes represent location points, edges represent adjacent access relationships between location points, and edge weights represent the number of occurrences. The attributes of each location point consist of longitude, latitude, and access frequency. Specifically, for the trajectory set , the trajectory flow graph is an attribute-weighted directed graph , where the node set V is the set of position points p, and the edge set Indicates the adjacent access relationship between location points. is the attribute function of the position point, the attribute of each position point p It is composed of longitude, latitude, and access frequency. If If the Si trajectory appears in the trajectory set S, there is an edge from p1 to p2, that is, they are visited continuously, w is the weight function of the edge, and the edge Weight Indicates that it appears in the S track The number of times.

3. The vehicle trajectory data completion method based on spatiotemporal graph embedding according to claim 2 is characterized in that: The specific process of step S4 is: S41. For the constructed trajectory flow graph G, its adjacency matrix is ​​A∈R N×N , calculate the normalized Laplacian matrix: , where D is the degree matrix, is the identity matrix of G with dimension N×N; S42, input node feature matrix H (0) =X∈R N×C , C means the feature dimension of the input node feature matrix. The GCN layer is used to aggregate its neighborhood information with the node's own embedding information to update the node's embedding information: ,in Indicates The input signal of the layer, Indicates The model weight matrix of the layer, is the corresponding deviation term, is the ReLU activation function; For the The dimension of the layer output features; S43. By stacking multiple GCN modules to enhance the representation ability of the model, the final GCN output trajectory point GCN embedding representation: , For the The node feature matrix of the layer, that is, the node feature matrix of the GCN module The node feature representation after layer processing, For the The node feature matrix of the layer, that is, the node feature matrix of the GCN module The node feature representation after layer processing, For the The bias term of the layer is used to introduce bias.

4. The vehicle trajectory data completion method based on spatiotemporal graph embedding according to claim 3 is characterized in that: The specific process of step S5 is: S51, the trajectory S={S i } is embedded, a trajectory point m=<x,y,s> , x, y, s are longitude, latitude, and time information respectively, and after embedding, they are: ; ; ; in is an embedding function used to convert the input data x, y into a vector representation of fixed dimension; is the frequency parameter, which is used to adjust the time information The periodic characteristics of is the time information, indicating the trajectory point timestamp, Phase parameter, used to adjust time information The phase of S52. Combine the trajectory representation with the GCN embedding representation of the trajectory point to obtain the spatiotemporal information embedding ,in, For splicing operation, is the weight coefficient of the spatial information graph.

5. The vehicle trajectory data completion method based on spatiotemporal graph embedding according to claim 4 is characterized in that: The specific process of step S6 is: S61. Spatiotemporal embedding information of trajectory points Input to the encoder of the LSTM model, the encoder uses the LSTM unit to obtain the spatiotemporal dependencies in the trajectory sequence, and continuously updates the hidden layer state of the LSTM unit through the input vector: , and obtain the spatiotemporal hidden state , the hidden layer state is updated as follows at the current time t: ; ; ; ; ; in, is the input vector at time t, i.e., the spatiotemporal embedding information of the trajectory point; is the hidden layer state at time t, which is determined by the LSTM unit according to the current input and the hidden layer state at the previous moment Calculated; is the input gate at time t, which determines the current input Cell status the extent of the impact; It is the forget gate at time t, which determines the cell state at the previous moment Current cell status the extent of the impact; It is the output gate at time t, which determines the current cell state The hidden layer state the extent of the impact; is the candidate cell state at time t, which is based on the current input and the hidden layer state at the previous moment Calculated; is the cell state at time t, which is passed through the forget gate and input gate The cell state at the previous moment and candidate cell states Obtained by weighted sum update; is the weight matrix of the input gate, the recursive weight matrix, and the bias vector; is the weight matrix of the forget gate, the recursive weight matrix and the bias vector; is the weight matrix of the output gate, the recursive weight matrix and the bias vector; are the weight matrix, recursive weight matrix, and bias vector of the candidate cell state; is the sigmoid activation function, which is used in the gating mechanism to compress the input between 0 and 1; tanh is the hyperbolic tangent activation function, which is used to calculate the candidate cell state and compress the input between -1 and 1; ⊙ represents element-by-element multiplication; S62, the spatiotemporal hidden state obtained by the encoder The decoder of the input LSTM model is used for high-sampling trajectory completion. The decoder is composed of LSTM units. An attention layer is added to the decoder. The attention weight is introduced to obtain the weighted combination of the spatiotemporal hidden states output by the encoder. The context vector at the moment , the attention layer input is the spatiotemporal hidden state of the encoder and the hidden state of the decoder at the previous time step , the output is the context vector : ,in , For the The attention weights for each encoder hidden state at each time step, Is a scoring function used to calculate the correlation between the encoder hidden layer state and the decoder hidden layer state at the previous time step. The decoder LSTM unit hidden layer state update calculation process is: ,in, and The segment ID and movement ratio predicted for the previous time step; S63, the hidden state obtained by the encoder Input to the fully connected layer, use the Softmax function to classify the predicted road segment ID, obtain the probability matrix of all road segment IDs, and select the road segment ID with the highest probability as the final predicted road segment ID; and use the Sigmoid activation function to predict the movement ratio; S64, integrating the road segment ID and the movement ratio to obtain a predicted trajectory that matches the current traffic road network.

Citation Information

Patent Citations

  • User track position prediction method based on space-time embedding Self-Attention

    CN111400620A

  • LSTM trajectory prediction method combining space-time factors and based on graph neural network

    CN113111581A

  • Sparse trajectory data recovery system and method based on deep learning

    CN115017250A

  • User track reconstruction method based on graph neural network and space-time attention mechanism

    CN117573787A

  • Short-term traffic flow prediction method and system, storage medium, equipment and terminal

    CN117612369A

Cited By

  • Inter-vehicle relevance traffic monitoring method based on space-time analysis and track matching

    CN119049290A

  • Method and device for monitoring state of mining equipment

    CN119147045A

  • Vehicle track and traffic flow prediction method based on checkpoint data

    CN119339551A

  • Vehicle trajectory and traffic flow prediction method based on checkpoint data

    CN119339551B

  • Self-supervised trajectory classification method and system based on multilevel feature extraction

    CN119357751A