Road traffic jam prediction method based on artificial intelligence

By obtaining the positioning and navigation information of the mobile terminal, a collection of multi-dimensional spatial data points is generated, and the long-short-term memory network model is combined with feature extraction and spatio-temporal convolution network to predict traffic flow and congestion patterns, solving the complexity of traffic congestion prediction in the existing technology. and high cost issues, achieving efficient and accurate prediction of traffic congestion patterns.

CN118538030AInactive Publication Date: 2024-08-23SHANGHAI TRITON DIGITAL TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410750076.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-12
Publication Date
2024-08-23
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing traffic congestion prediction methods rely on expensive fixed equipment and data-intensive models, and the models are complex or computationally expensive, making it difficult to effectively simplify the prediction of traffic congestion patterns.

Method used

By obtaining the positioning and navigation information of multiple mobile terminals, a collection of multi-dimensional spatial data points is generated, and the long-short-term memory network model is combined with feature extraction and spatio-temporal convolution network to predict traffic flow and congestion patterns, and filter out unrealistic data caused by traffic light status. Congestion data points are used to draw traffic flow spatial curves and feature vectors are extracted for classification prediction.

Benefits of technology

It achieves accurate prediction of traffic flow and congestion patterns in different lanes, reduces the complexity and computational cost of prediction results, and improves the accuracy and efficiency of prediction.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118538030A
    Figure CN118538030A
Patent Text Reader

Abstract

The invention provides a road traffic jam prediction method based on artificial intelligence, and the method comprises the steps: obtaining the positioning information and navigation information of a plurality of mobile terminals, and projecting the positioning information and navigation information into a multi-dimensional space coordinate system to generate a multi-dimensional space data point set; calculating the intensity of the mobile terminal according to the data point set, screening out first congestion information, and removing non-actual congestion data points caused by the state of the signal lamp to obtain second congestion information; drawing a traffic flow space curve and performing feature extraction to generate a feature vector; inputting the feature vector into a congestion mode classification model based on long and short term memory network training to generate a traffic congestion mode; and predicting the time for the vehicle to pass the congested road section according to the congestion mode. According to the invention, by acquiring and analyzing the positioning information and the navigation information of the plurality of mobile terminals and combining the multi-dimensional spatial data point set and the LSTM model, the traffic flow and the congestion mode of different lanes can be accurately predicted.
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 analysis, and in particular to a highway traffic congestion prediction method based on artificial intelligence. Background Art

[0002] With the continuous increase in the number of cars, the relative scarcity of road resources has led to increasingly serious traffic congestion problems. Accurately predicting traffic congestion and taking corresponding traffic control measures are of great significance for alleviating urban traffic pressure and improving road traffic efficiency. Traditional traffic congestion prediction methods mainly rely on fixed traffic detection equipment such as induction coils (ground-pressure magnetic induction coils are pre-buried at the intersections of the road, which can generate induction signals when vehicles pass through) and video surveillance installed along the road. These devices can obtain data such as traffic flow and vehicle speed on specific sections of the road, and make congestion predictions based on traffic flow theoretical models. However, the deployment and maintenance costs of fixed equipment are high, and the coverage range is also limited to a certain extent.

[0003] At present, people are accustomed to the use of smart car navigation terminals or mobile terminals. The terminals provide convenience for the collection of traffic big data. A large number of car mobile terminals can be used as mobile "traffic detectors" to upload real-time driving data such as location and speed, so as to obtain more comprehensive and accurate traffic information. At present, there are two main ideas for traffic prediction methods based on mobile data: one is to establish a complex traffic simulation model, integrate multi-source heterogeneous data into the model, and obtain the prediction results through model solution; the other is to regard the problem as a typical spatiotemporal series prediction problem, and use data-driven methods such as machine learning to directly fit and predict historical data. The former method has sufficient theoretical basis, but the model is complex and the computational cost is high; the latter method is relatively simple, but requires a lot of data training, and the model has poor interpretability. Therefore, it is necessary to optimize the prediction method of highway traffic congestion and simplify the prediction process of congestion by analyzing the mode of traffic congestion. Congestion modes include congestion caused by traffic accidents, congestion caused by road maintenance, and congestion caused by the front vehicle driving too slowly. Summary of the invention

[0004] In order to solve the deficiencies of the prior art, the present invention provides a highway traffic congestion prediction method based on artificial intelligence, the method comprising:

[0005] Acquire positioning information and navigation information of multiple mobile terminals, the positioning information including coordinates and timestamps, and the navigation information including driving lanes and traffic light states; project the positioning information and navigation information into a multidimensional space coordinate system to generate a multidimensional space data point set, the multidimensional space data point set reflecting a time series data set of the positioning of the mobile terminal, the driving lane, and the traffic light state corresponding to the positioning changing over time;

[0006] According to the multidimensional space data point set, the mobile terminal density at the corresponding location and driving lane that changes with time is obtained, and the mobile terminal density is filtered out through a set density threshold to obtain first congestion information, wherein the density threshold represents the upper limit of the density of mobile terminals in a unit location area and unit time; according to the signal light state, the first congestion information is eliminated from the non-actual congestion data points caused by the signal light state to obtain second congestion information;

[0007] In a multidimensional space coordinate system, the data points of the second congestion information are plotted over time to form a traffic flow space curve, wherein the traffic flow space curve represents the positioning density of mobile terminals in different driving lanes on the time axis from the beginning of congestion to the end of congestion; the traffic flow space curve is subjected to feature extraction to obtain a feature vector, and the feature vector is input into a congestion pattern classification model based on long short-term memory network training to generate a traffic congestion pattern, and the time for vehicles to pass through the congested section is predicted according to the traffic congestion pattern.

[0008] Furthermore, the method for the congestion mode classification model based on long short-term memory network training includes:

[0009] Acquire multiple historical traffic data sets with annotated traffic congestion patterns, the data sets comprising a multidimensional spatial data point set, each data point comprising a time series data set of location information of a mobile terminal, a driving lane, and a signal light state changing over time;

[0010] Performing feature expansion on the historical traffic data to generate first training data, wherein the feature expansion is to perform time series segmentation on the historical traffic data through a sliding window method to obtain time series segments of fixed length, each time series segment comprising a set of multidimensional spatial data points of multiple time steps;

[0011] Projecting the data points of each time series segment into a multidimensional space coordinate system to generate a multidimensional space curve corresponding to the time series segment, wherein the multidimensional space curve reflects the change trend of the positioning and navigation information of the mobile terminal at different time steps;

[0012] Extracting features from the multidimensional space curve, using the extracted results as extended feature vectors, wherein the extended feature vectors include the multidimensional space coordinates of each time step and their rate of change in the time series;

[0013] Constructing and initializing a long short-term memory network model, the model comprising an input layer, a plurality of hidden layers, and an output layer, the input layer receiving an extended feature vector, the hidden layer comprising a plurality of LSTM units for capturing temporal dependencies, and the output layer generating a congestion mode classification result;

[0014] Inputting the first training data into the LSTM model for training, adjusting the parameters of the LSTM model by a supervised learning method, and dividing the historical data set into a training set and a validation set by a cross-validation method;

[0015] Use the training set to optimize the model parameters, adjust the weight parameters of the LSTM model through the back-propagation algorithm and the gradient descent method, calculate the gradient of each time step, use the chain rule to pass the gradient from the output layer back to the input layer, and update the parameters of the LSTM model layer by layer;

[0016] Use the validation set to evaluate the performance of the trained LSTM model, and tune the model based on the evaluation results until the performance indicators of the LSTM model on the validation set reach the preset standards, ultimately forming a trained congestion mode classification model.

[0017] Furthermore, a method for extracting features from the multidimensional space curve;

[0018] The multidimensional space curve is segmented, each time series segment is divided into a number of sub-segments, each sub-segment represents a set of multidimensional space data points within a set time interval; each sub-segment is interpolated, and interpolation data points within the sub-segment are generated by an interpolation algorithm;

[0019] Calculate the spatial position change rate of each data point in each sub-segment, where the spatial position change rate is the change rate of the Euclidean distance between adjacent data points; calculate the mean vector and standard deviation vector of all data points in the sub-segment, and calculate the change rate between time steps; perform dimensionality reduction on the feature vector through principal component analysis, and further enhance the feature vector after dimensionality reduction based on the local spatiotemporal context information to generate the final extended feature vector.

[0020] Furthermore, the method of calculating the spatial position change rate of each data point in each sub-segment, the spatial position change rate being the change rate of the Euclidean distance between adjacent data points; calculating the mean vector and the standard deviation vector of all data points in the sub-segment, and calculating the change rate between time steps; performing dimensionality reduction processing on the feature vector by principal component analysis, and further enhancing the feature vector after dimensionality reduction based on local spatiotemporal context information to generate the final extended feature vector includes:

[0021] Acquire multiple data points in each sub-segment, wherein the data points include positioning information and navigation information at a time step; process the multiple data points in each sub-segment, including:

[0022] Performing interpolation processing on each sub-segment, generating interpolation data points in the sub-segment by using an interpolation algorithm; calculating the spatial position change rate of each interpolation data point, wherein the spatial position change rate is the change rate of the Euclidean distance between adjacent data points;

[0023] Calculate the mean vector and standard deviation vector of all data points in the sub-segment, where the mean vector is the average value of all data points in each dimension, and the standard deviation vector is the standard deviation of all data points in each dimension; calculate the rate of change between time steps, where the rate of change is the amount of change of the mean vector and standard deviation vector of adjacent time steps;

[0024] The feature vector is reduced in dimension through principal component analysis, and the reduced feature vector is further enhanced based on the local spatiotemporal context information, including:

[0025] Perform spatiotemporal context analysis on the data points in each sub-segment to extract the correlation between feature vectors in the local time window; generate enhanced feature vectors by modeling the local spatiotemporal context through a spatiotemporal convolutional network;

[0026] The enhanced feature vector is input into a long short-term memory network model to capture temporal dependencies; the final output of the feature extraction and enhancement steps is the expanded feature vector.

[0027] Furthermore, the method of modeling local spatiotemporal context through spatiotemporal convolutional networks includes:

[0028] Acquire multidimensional spatial data points within a local time window; input the multidimensional spatial data points into a spatiotemporal convolutional network, wherein the spatiotemporal convolutional network includes a plurality of convolutional layers and a pooling layer; in each convolutional layer, use a convolution kernel to perform a convolution operation on the multidimensional spatial data points to extract local features;

[0029] In each pooling layer, the features output by the convolutional layer are pooled to reduce the dimension of the feature vector; the output features of all convolutional layers and pooling layers are merged to generate local spatiotemporal context features; the local spatiotemporal context features are input into the fully connected layer to generate the final enhanced feature vector.

[0030] Furthermore, the method of performing a convolution operation to extract local features includes:

[0031] Acquire multidimensional spatial data points within a local time window, wherein the multidimensional spatial data points include positioning information of the mobile terminal, driving lanes, and signal light status; input the multidimensional spatial data points into a spatiotemporal convolutional network, wherein the spatiotemporal convolutional network includes a plurality of convolutional layers and pooling layers, each convolutional layer includes a plurality of three-dimensional convolutional kernels, and the three-dimensional convolutional kernels are used to perform convolution operations in time, space, and lane dimensions;

[0032] In each convolution layer, a three-dimensional convolution kernel is used to perform a three-dimensional convolution operation on the multi-dimensional spatial data points. By performing convolution in the time dimension, the temporal characteristics of the traffic flow are extracted; by performing convolution in the spatial dimension, the spatial characteristics of the road network are extracted; and by performing convolution in the lane dimension, the traffic characteristics of different lanes are extracted.

[0033] The output of the convolution operation is processed by a nonlinear activation function, wherein the nonlinear activation function includes a ReLU activation function; the activated features are normalized, wherein the normalization includes batch normalization, and the internal deviation is reduced and the training process is accelerated by normalizing small batches of data;

[0034] In each pooling layer, the features output by the convolutional layer are pooled using the pooling kernel; the features output by the pooling layer are connected to generate local spatiotemporal context features; the local spatiotemporal context features are input to the fully connected layer, which includes several neurons for mapping the feature vector to a high-dimensional space; the features output by the fully connected layer are activated and normalized to extract local features.

[0035] Furthermore, the method of the pooling operation includes:

[0036] Perform a maximum pooling operation on the features output by the convolution layer, and extract the maximum value features in the local area through the pooling kernel; perform an average pooling operation on the features output by the convolution layer, and calculate the average value features in the local area through the pooling kernel;

[0037] The results of maximum pooling and average pooling are combined to generate combined pooling features; the combined pooling features are batch normalized to standardize the feature vector.

[0038] Furthermore, the method of performing dimension reduction processing on the feature vector by principal component analysis includes:

[0039] Acquire multiple data points of each sub-segment, wherein the data points include positioning information, driving lanes, and signal light status; perform standardization processing on the multiple data points of each sub-segment, wherein the standardization processing includes subtracting the mean of each dimension of each data point from the value of the dimension of the dimension and dividing the value by the standard deviation of the dimension;

[0040] Constructing a covariance matrix, wherein the covariance matrix is ​​used to represent the linear correlation between the dimensions of the standardized data points; performing eigenvalue decomposition on the covariance matrix to extract eigenvalues ​​and eigenvectors, wherein the eigenvalues ​​are used to represent the variance of the data in the direction of the corresponding eigenvector;

[0041] The feature vector having a feature value exceeding a set feature threshold is selected as the principal component, and the principal component is used to represent the data after dimensionality reduction; each data point is projected onto the direction of the principal component to generate a feature vector after dimensionality reduction; the feature vector after dimensionality reduction is reconstructed to generate an enhanced feature vector based on local spatiotemporal context information.

[0042] Furthermore, the method further comprises:

[0043] Obtain the reduced-dimensional feature vector and divide it into time windows, where the time window is used to contain a group of data points at consecutive time steps; within each time window, calculate the spatiotemporal correlation between the feature vectors, where the spatiotemporal correlation is used to represent the relationship between the data points in the time and space dimensions;

[0044] Use a convolutional neural network to perform a convolution operation on the feature vector within the time window to extract local spatiotemporal features. The convolution operation includes sliding the convolution kernel on the feature vector and calculating the dot product between the convolution kernel and the feature vector.

[0045] The result of the convolution operation is pooled, which includes applying a pooling kernel to the convolution result and calculating the maximum or average value in the pooling area; merging the pooled local spatiotemporal features to generate an enhanced feature vector; and normalizing the merged enhanced feature vector. Normalization is to scale the value of the feature vector to within a set threshold.

[0046] The present invention has the following beneficial effects: by acquiring and analyzing the positioning information and navigation information of multiple mobile terminals, combining a multidimensional spatial data point set and an LSTM model, the traffic flow and congestion pattern of different lanes can be accurately predicted, thereby ensuring the accuracy of the prediction results. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 This is a flow chart of the highway traffic congestion prediction method based on artificial intelligence in Example 1. DETAILED DESCRIPTION

[0048] In order to make the purpose, technical solution and advantages of the present invention more clear, the present invention is further described in detail below in combination with specific implementation methods and with reference to the accompanying drawings. It should be understood that these descriptions are only exemplary and are not intended to limit the scope of the present invention.

[0049] Before giving examples, the inventive concept of the present invention needs to be further elaborated. Congestion is caused by different reasons. In different congestion modes, when congestion just occurs to the end of congestion, handheld terminals such as mobile phones or vehicle-mounted mobile terminals represent vehicles traveling, and the time they pass through the road section is different. The congestion mode is mined according to the duration distribution of different durations, the dynamic changes of different duration distributions, the driving speed and the driving lane. For example, when congestion caused by a traffic accident occurs, the accident vehicle will block some lanes. At the beginning, the unaffected lanes will run normally, while the vehicles in the affected lanes will suddenly reduce their speed. Therefore, the passing time of multiple vehicles varies greatly, and the speed of some vehicles is reduced to a very low level; but after a period of time, the affected vehicle variables will slowly reduce the speed of the mobile terminals in other lanes and increase the speed of the mobile terminals in the affected lanes. For another example, in the congestion caused by road maintenance, there will be cones to prompt the reduction of lanes, so the vehicle will slowly change lanes at the beginning, the speed of vehicles in all lanes will slow down, and the duration distribution will not be too dispersed. In short, under different congestion modes, the time distribution of vehicles passing through the road section, changes in time distribution, driving speed, and changes in lanes can be used to explore the congestion pattern, thereby predicting the time required to pass different lanes.

[0050] Example 1

[0051] like Figure 1 As shown, a highway traffic congestion prediction method based on artificial intelligence, the method comprising:

[0052] Acquire positioning information and navigation information of multiple mobile terminals, the positioning information including coordinates and timestamps, and the navigation information including driving lanes and traffic light states; project the positioning information and navigation information into a multidimensional space coordinate system to generate a multidimensional space data point set, the multidimensional space data point set reflecting a time series data set of the positioning of the mobile terminal, the driving lane, and the traffic light state corresponding to the positioning changing over time;

[0053] According to the multidimensional space data point set, the mobile terminal density at the corresponding location and driving lane that changes with time is obtained, and the mobile terminal density is filtered out through a set density threshold to obtain first congestion information, wherein the density threshold represents the upper limit of the density of mobile terminals in a unit location area and unit time; according to the signal light state, the first congestion information is eliminated from the non-actual congestion data points caused by the signal light state to obtain second congestion information;

[0054] In a multidimensional space coordinate system, the data points of the second congestion information are plotted over time to form a traffic flow space curve, wherein the traffic flow space curve represents the positioning density of mobile terminals in different driving lanes on the time axis from the beginning of congestion to the end of congestion; the traffic flow space curve is subjected to feature extraction to obtain a feature vector, and the feature vector is input into a congestion pattern classification model based on long short-term memory network training to generate a traffic congestion pattern, and the time for vehicles to pass through the congested section is predicted according to the traffic congestion pattern.

[0055] For example, the traffic management department installs an intelligent traffic monitoring system that can obtain the positioning information and navigation information of multiple mobile terminals (such as smart phones and vehicle navigation devices) in real time. The positioning information includes coordinates and timestamps, and the navigation information includes driving lanes and signal light status. Then, this information is projected into a multidimensional space coordinate system to generate a set of multidimensional space data points. This set reflects the time series data of the mobile terminal's positioning, driving lanes, and signal light status changing over time.

[0056] Next, the system analyzes the multidimensional spatial data point set to obtain the density of mobile terminals in the corresponding positioning and driving lanes over time. The first congestion information is filtered out by the set density threshold, which represents the upper limit of the density of mobile terminals in the unit positioning area and unit time. Subsequently, the non-actual congestion data points caused by the signal light status in the first congestion information are removed through the signal light status to obtain the second congestion information.

[0057] Finally, a traffic flow space curve of the data points of the second congestion information changing over time is drawn in a multidimensional space coordinate system. The system extracts features from the traffic flow space curve, generates feature vectors, and inputs them into the congestion pattern classification model based on long short-term memory network (LSTM) training. Based on the classification results, the system can predict the time it takes for vehicles to pass through congested sections, helping traffic management departments to release traffic information and suggestions in advance.

[0058] Furthermore, the method for the congestion mode classification model based on long short-term memory network training includes:

[0059] Acquire multiple historical traffic data sets with annotated traffic congestion patterns, the data sets comprising a multidimensional spatial data point set, each data point comprising a time series data set of location information of a mobile terminal, a driving lane, and a signal light state changing over time;

[0060] Performing feature expansion on the historical traffic data to generate first training data, wherein the feature expansion is to perform time series segmentation on the historical traffic data through a sliding window method to obtain time series segments of fixed length, each time series segment comprising a set of multidimensional spatial data points of multiple time steps;

[0061] Projecting the data points of each time series segment into a multidimensional space coordinate system to generate a multidimensional space curve corresponding to the time series segment, wherein the multidimensional space curve reflects the change trend of the positioning and navigation information of the mobile terminal at different time steps;

[0062] Extracting features from the multidimensional space curve, using the extracted results as extended feature vectors, wherein the extended feature vectors include the multidimensional space coordinates of each time step and their rate of change in the time series;

[0063] Constructing and initializing a long short-term memory network model, the model comprising an input layer, a plurality of hidden layers, and an output layer, the input layer receiving an extended feature vector, the hidden layer comprising a plurality of LSTM units for capturing temporal dependencies, and the output layer generating a congestion mode classification result;

[0064] Inputting the first training data into the LSTM model for training, adjusting the parameters of the LSTM model by a supervised learning method, and dividing the historical data set into a training set and a validation set by a cross-validation method;

[0065] Use the training set to optimize the model parameters, adjust the weight parameters of the LSTM model through the back-propagation algorithm and the gradient descent method, calculate the gradient of each time step, use the chain rule to pass the gradient from the output layer back to the input layer, and update the parameters of the LSTM model layer by layer;

[0066] Use the validation set to evaluate the performance of the trained LSTM model, and tune the model based on the evaluation results until the performance indicators of the LSTM model on the validation set reach the preset standards, ultimately forming a trained congestion mode classification model.

[0067] Exemplarily, the traffic management department obtains multiple historical traffic data sets with annotated traffic congestion patterns. These data sets include a set of multidimensional spatial data points, each of which contains a set of time series data of the location information of the mobile terminal, the driving lane, and the status of the traffic light over time. Then, the system performs feature expansion on these historical traffic data to generate the first training data. Feature expansion is to perform time series segmentation on the historical traffic data through the sliding window method to obtain time series segments of fixed length, each of which contains a set of multidimensional spatial data points of multiple time steps.

[0068] Next, the system projects the data points of each time series segment into a multidimensional space coordinate system to generate a multidimensional space curve corresponding to the time series segment. These multidimensional space curves reflect the changing trends of the positioning and navigation information of the mobile terminal at different time steps. Then, the system extracts features from these multidimensional space curves and uses the extraction results as extended feature vectors, which include the multidimensional space coordinates of each time step and its rate of change in the time series.

[0069] Finally, a long short-term memory network model (LSTM) is constructed and initialized. The model includes an input layer, multiple hidden layers, and an output layer. The input layer receives the extended feature vector, the hidden layer includes multiple LSTM units for capturing temporal dependencies, and the output layer generates the congestion mode classification results. The system inputs the first training data into the LSTM model for training, adjusts the parameters of the LSTM model through the supervised learning method, and divides the historical data set into a training set and a validation set using the cross-validation method. The training set is used to optimize the model parameters, and the weight parameters of the LSTM model are adjusted through the back-propagation algorithm and the gradient descent method, and the parameters of the LSTM model are updated layer by layer. The performance of the trained LSTM model is evaluated using the validation set, and the model is tuned according to the evaluation results until the performance indicators of the LSTM model on the validation set reach the preset standards, and finally a trained congestion mode classification model is formed.

[0070] Furthermore, a method for extracting features from the multidimensional space curve;

[0071] The multidimensional space curve is segmented, each time series segment is divided into a number of sub-segments, each sub-segment represents a set of multidimensional space data points within a set time interval; each sub-segment is interpolated, and interpolation data points within the sub-segment are generated by an interpolation algorithm;

[0072] Calculate the spatial position change rate of each data point in each sub-segment, where the spatial position change rate is the change rate of the Euclidean distance between adjacent data points; calculate the mean vector and standard deviation vector of all data points in the sub-segment, and calculate the change rate between time steps; perform dimensionality reduction on the feature vector through principal component analysis, and further enhance the feature vector after dimensionality reduction based on the local spatiotemporal context information to generate the final extended feature vector.

[0073] For example, the traffic management department segments the multidimensional space curve into several sub-segments, each of which represents a set of multidimensional space data points within a set time interval. Then, the system performs interpolation processing on each sub-segment, and generates interpolation data points within the sub-segment through an interpolation algorithm.

[0074] Next, the spatial position change rate of each data point in each sub-segment is calculated. The spatial position change rate is the change rate of the Euclidean distance between adjacent data points. Then, the system calculates the mean vector and standard deviation vector of all data points in the sub-segment, and calculates the change rate between time steps. The feature vector is reduced in dimension through principal component analysis, and the reduced feature vector is further enhanced based on the local spatiotemporal context information to generate the final extended feature vector.

[0075] Furthermore, the method of calculating the spatial position change rate of each data point in each sub-segment, the spatial position change rate being the change rate of the Euclidean distance between adjacent data points; calculating the mean vector and the standard deviation vector of all data points in the sub-segment, and calculating the change rate between time steps; performing dimensionality reduction processing on the feature vector by principal component analysis, and further enhancing the feature vector after dimensionality reduction based on local spatiotemporal context information to generate the final extended feature vector includes:

[0076] Acquire multiple data points in each sub-segment, wherein the data points include positioning information and navigation information at a time step; process the multiple data points in each sub-segment, including:

[0077] Performing interpolation processing on each sub-segment, generating interpolation data points in the sub-segment by using an interpolation algorithm; calculating the spatial position change rate of each interpolation data point, wherein the spatial position change rate is the change rate of the Euclidean distance between adjacent data points;

[0078] Calculate the mean vector and standard deviation vector of all data points in the sub-segment, where the mean vector is the average value of all data points in each dimension, and the standard deviation vector is the standard deviation of all data points in each dimension; calculate the rate of change between time steps, where the rate of change is the amount of change of the mean vector and standard deviation vector of adjacent time steps;

[0079] The feature vector is reduced in dimension through principal component analysis, and the reduced feature vector is further enhanced based on the local spatiotemporal context information, including:

[0080] Perform spatiotemporal context analysis on the data points in each sub-segment to extract the correlation between feature vectors in the local time window; generate enhanced feature vectors by modeling the local spatiotemporal context through a spatiotemporal convolutional network;

[0081] The enhanced feature vector is input into a long short-term memory network model to capture temporal dependencies; the final output of the feature extraction and enhancement steps is the expanded feature vector.

[0082] Exemplarily, traffic data analysis can also obtain multiple data points in each sub-segment, which include positioning information and navigation information at a time step. First, the system performs interpolation processing on multiple data points in each sub-segment, and generates interpolation data points in the sub-segment through an interpolation algorithm. Then, the spatial position change rate of each interpolation data point is calculated, and the spatial position change rate is the change rate of the Euclidean distance between adjacent data points.

[0083] Next, the mean vector and standard deviation vector of all data points in the sub-segment are calculated. The mean vector is the average value of all data points in each dimension, and the standard deviation vector is the standard deviation of all data points in each dimension. Then, the system calculates the rate of change between time steps, which is the change in the mean vector and standard deviation vector of adjacent time steps. The feature vector is reduced in dimension by principal component analysis, and the reduced feature vector is further enhanced based on local spatiotemporal context information, including spatiotemporal context analysis of the data points in each sub-segment and extraction of correlations between feature vectors in the local time window.

[0084] Furthermore, the method of modeling local spatiotemporal context through spatiotemporal convolutional networks includes:

[0085] Acquire multidimensional spatial data points within a local time window; input the multidimensional spatial data points into a spatiotemporal convolutional network, wherein the spatiotemporal convolutional network includes a plurality of convolutional layers and a pooling layer; in each convolutional layer, use a convolution kernel to perform a convolution operation on the multidimensional spatial data points to extract local features;

[0086] In each pooling layer, the features output by the convolutional layer are pooled to reduce the dimension of the feature vector; the output features of all convolutional layers and pooling layers are merged to generate local spatiotemporal context features; the local spatiotemporal context features are input into the fully connected layer to generate the final enhanced feature vector.

[0087] Exemplarily, traffic data analysis can also obtain multidimensional spatial data points within a local time window and input these data points into a spatiotemporal convolutional network. The spatiotemporal convolutional network includes multiple convolutional layers and pooling layers. In each convolutional layer, the system uses a convolution kernel to perform a convolution operation on the multidimensional spatial data points to extract local features. In each pooling layer, the system performs a pooling operation on the features output by the convolutional layer to reduce the dimension of the feature vector.

[0088] Next, the output features of all convolutional layers and pooling layers are merged to generate local spatiotemporal context features. Then, the local spatiotemporal context features are input into the fully connected layer to generate the final enhanced feature vector. These enhanced feature vectors can better capture the local spatiotemporal features, thereby improving the accuracy of traffic congestion prediction.

[0089] Furthermore, the method of performing a convolution operation to extract local features includes:

[0090] Acquire multidimensional spatial data points within a local time window, wherein the multidimensional spatial data points include positioning information of the mobile terminal, driving lanes, and signal light status; input the multidimensional spatial data points into a spatiotemporal convolutional network, wherein the spatiotemporal convolutional network includes a plurality of convolutional layers and pooling layers, each convolutional layer includes a plurality of three-dimensional convolutional kernels, and the three-dimensional convolutional kernels are used to perform convolution operations in time, space, and lane dimensions;

[0091] In each convolution layer, a three-dimensional convolution kernel is used to perform a three-dimensional convolution operation on the multi-dimensional spatial data points. By performing convolution in the time dimension, the temporal characteristics of the traffic flow are extracted; by performing convolution in the spatial dimension, the spatial characteristics of the road network are extracted; and by performing convolution in the lane dimension, the traffic characteristics of different lanes are extracted.

[0092] The output of the convolution operation is processed by a nonlinear activation function, wherein the nonlinear activation function includes a ReLU activation function; the activated features are normalized, wherein the normalization includes batch normalization, and the internal deviation is reduced and the training process is accelerated by normalizing small batches of data;

[0093] In each pooling layer, the features output by the convolutional layer are pooled using the pooling kernel; the features output by the pooling layer are connected to generate local spatiotemporal context features; the local spatiotemporal context features are input to the fully connected layer, which includes several neurons for mapping the feature vector to a high-dimensional space; the features output by the fully connected layer are activated and normalized to extract local features.

[0094] For example, traffic data analysis can also obtain multidimensional spatial data points within a local time window, which include the location information of the mobile terminal, the driving lane, and the status of the signal light. These data points are input into the spatiotemporal convolutional network, which includes multiple convolutional layers and pooling layers. Each convolutional layer contains several three-dimensional convolution kernels for performing convolution operations in the time, space, and lane dimensions.

[0095] In each convolution layer, a 3D convolution kernel is used to perform a 3D convolution operation on the multidimensional spatial data points. By performing convolution in the time dimension, the temporal features of the traffic flow are extracted; by performing convolution in the space dimension, the spatial features of the road network are extracted; by performing convolution in the lane dimension, the traffic features of different lanes are extracted. The output of the convolution operation is processed by a nonlinear activation function and normalized. Finally, the features output by the pooling layer are connected to generate local spatiotemporal context features and input into the fully connected layer.

[0096] Furthermore, the method of the pooling operation includes:

[0097] Perform a maximum pooling operation on the features output by the convolution layer, and extract the maximum value features in the local area through the pooling kernel; perform an average pooling operation on the features output by the convolution layer, and calculate the average value features in the local area through the pooling kernel;

[0098] The results of maximum pooling and average pooling are combined to generate combined pooling features; the combined pooling features are batch normalized to standardize the feature vector.

[0099] For example, traffic data analysis can also perform a maximum pooling operation on the features output by the convolution layer, and extract the maximum value features in the local area through the pooling kernel. At the same time, an average pooling operation is performed on the features output by the convolution layer, and the average value features in the local area are calculated through the pooling kernel. Then, the features of the maximum pooling and the average pooling are merged to generate local spatiotemporal context features. The system inputs these features into the fully connected layer to generate the final enhanced feature vector.

[0100] Furthermore, the method of performing dimension reduction processing on the feature vector by principal component analysis includes:

[0101] Acquire multiple data points of each sub-segment, wherein the data points include positioning information, driving lanes, and signal light status; perform standardization processing on the multiple data points of each sub-segment, wherein the standardization processing includes subtracting the mean of each dimension of each data point from the value of the dimension of the dimension and dividing the value by the standard deviation of the dimension;

[0102] Constructing a covariance matrix, wherein the covariance matrix is ​​used to represent the linear correlation between the dimensions of the standardized data points; performing eigenvalue decomposition on the covariance matrix to extract eigenvalues ​​and eigenvectors, wherein the eigenvalues ​​are used to represent the variance of the data in the direction of the corresponding eigenvector;

[0103] The feature vector having a feature value exceeding a set feature threshold is selected as the principal component, and the principal component is used to represent the data after dimensionality reduction; each data point is projected onto the direction of the principal component to generate a feature vector after dimensionality reduction; the feature vector after dimensionality reduction is reconstructed to generate an enhanced feature vector based on local spatiotemporal context information.

[0104] For example, traffic data analysis can also divide multidimensional spatial data points into several subsets, each of which contains a portion of data points within a local time window. Then, the system assigns each subset to different computing nodes and performs convolution operations, pooling operations, and feature extraction operations in parallel. Each computing node performs a convolution operation on the assigned data points to extract local features; and performs a pooling operation to generate local spatiotemporal context features. Finally, the feature vectors generated by all computing nodes are merged to generate the final enhanced feature vector.

[0105] Furthermore, the method further comprises:

[0106] Obtain the reduced-dimensional feature vector and divide it into time windows, where the time window is used to contain a group of data points at consecutive time steps; within each time window, calculate the spatiotemporal correlation between the feature vectors, where the spatiotemporal correlation is used to represent the relationship between the data points in the time and space dimensions;

[0107] Use a convolutional neural network to perform a convolution operation on the feature vector within the time window to extract local spatiotemporal features. The convolution operation includes sliding the convolution kernel on the feature vector and calculating the dot product between the convolution kernel and the feature vector.

[0108] The result of the convolution operation is pooled, which includes applying a pooling kernel to the convolution result and calculating the maximum or average value in the pooling area; merging the pooled local spatiotemporal features to generate an enhanced feature vector; and normalizing the merged enhanced feature vector. Normalization is to scale the value of the feature vector to within a set threshold.

[0109] For example, traffic data analysis can also perform data enhancement on historical traffic data, including random translation, rotation, scaling, and noise addition on multidimensional spatial data points. Through data enhancement technology, multiple extended training data sets are generated. These extended data sets contain more diverse traffic scenarios, which help improve the generalization ability of the model. The system inputs the extended training data set into the model for training, adjusts the model parameters through supervised learning methods, and finally forms a congestion model with strong generalization ability.

[0110] Finally, it should be noted that: Although the present invention has been described in detail with reference to the aforementioned embodiments, it is still possible for those skilled in the art to modify the technical solutions described in the aforementioned embodiments, or to make equivalent substitutions for some of the technical features therein. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A highway traffic congestion prediction method based on artificial intelligence, It is characterized in that The method comprises: Acquire positioning information and navigation information of multiple mobile terminals, the positioning information including coordinates and timestamps, and the navigation information including driving lanes and traffic light states; project the positioning information and navigation information into a multidimensional space coordinate system to generate a multidimensional space data point set, the multidimensional space data point set reflecting a time series data set of the positioning of the mobile terminal, the driving lane, and the traffic light state corresponding to the positioning changing over time; According to the multidimensional space data point set, the mobile terminal density at the corresponding location and driving lane that changes with time is obtained, and the mobile terminal density is filtered out through a set density threshold to obtain first congestion information, wherein the density threshold represents the upper limit of the density of mobile terminals in a unit location area and unit time; according to the signal light state, the first congestion information is eliminated from the non-actual congestion data points caused by the signal light state to obtain second congestion information; In a multidimensional space coordinate system, the data points of the second congestion information are plotted over time to form a traffic flow space curve, wherein the traffic flow space curve represents the positioning density of mobile terminals in different driving lanes on the time axis from the beginning of congestion to the end of congestion; the traffic flow space curve is subjected to feature extraction to obtain a feature vector, and the feature vector is input into a congestion pattern classification model based on long short-term memory network training to generate a traffic congestion pattern, and the time for vehicles to pass through the congested section is predicted according to the traffic congestion pattern.

2. The method for predicting highway traffic congestion based on artificial intelligence according to claim 1, It is characterized in that The method for the congestion mode classification model based on long short-term memory network training includes: Acquire multiple historical traffic data sets with annotated traffic congestion patterns, the data sets comprising a set of multidimensional spatial data points, each data point comprising a set of time series data of location information of a mobile terminal, a driving lane, and a signal light state changing over time; Performing feature expansion on the historical traffic data to generate first training data, wherein the feature expansion is to perform time series segmentation on the historical traffic data through a sliding window method to obtain time series segments of fixed length, each time series segment comprising a multidimensional space data point set of multiple time steps; Projecting the data points of each time series segment into a multidimensional space coordinate system to generate a multidimensional space curve corresponding to the time series segment, wherein the multidimensional space curve reflects the change trend of the positioning and navigation information of the mobile terminal at different time steps; Extracting features from the multidimensional space curve, using the extracted results as extended feature vectors, wherein the extended feature vectors include the multidimensional space coordinates of each time step and their rate of change in the time series; Constructing and initializing a long short-term memory network model, the model comprising an input layer, a plurality of hidden layers, and an output layer, the input layer receiving an extended feature vector, the hidden layer comprising a plurality of LSTM units for capturing temporal dependencies, and the output layer generating a congestion mode classification result; Inputting the first training data into the LSTM model for training, adjusting the parameters of the LSTM model by a supervised learning method, and dividing the historical data set into a training set and a validation set by a cross-validation method; Use the training set to optimize the model parameters, adjust the weight parameters of the LSTM model through the back-propagation algorithm and the gradient descent method, calculate the gradient of each time step, use the chain rule to pass the gradient from the output layer back to the input layer, and update the parameters of the LSTM model layer by layer; Use the validation set to evaluate the performance of the trained LSTM model, and tune the model based on the evaluation results until the performance indicators of the LSTM model on the validation set reach the preset standards, ultimately forming a trained congestion mode classification model.

3. The method for predicting highway traffic congestion based on artificial intelligence according to claim 2, It is characterized in that A method for extracting features from the multidimensional space curve; The multidimensional space curve is segmented, each time series segment is divided into a number of sub-segments, each sub-segment represents a set of multidimensional space data points within a set time interval; each sub-segment is interpolated, and interpolation data points within the sub-segment are generated by an interpolation algorithm; Calculate the spatial position change rate of each data point of each sub-segment, where the spatial position change rate is the change rate of the Euclidean distance between adjacent data points; The mean vector and standard deviation vector of all data points in the sub-segment are calculated, and the rate of change between time steps is calculated; the feature vector is reduced in dimension through principal component analysis, and the feature vector after dimension reduction is further enhanced based on the local spatiotemporal context information to generate the final extended feature vector.

4. The method for predicting highway traffic congestion based on artificial intelligence according to claim 3, It is characterized in that The spatial position change rate of each data point of each sub-segment is calculated, and the spatial position change rate is the change rate of the Euclidean distance between adjacent data points; The method of calculating the mean vector and standard deviation vector of all data points in the sub-segment and the rate of change between time steps; reducing the dimension of the feature vector by principal component analysis, and further enhancing the feature vector after the dimension reduction based on the local spatiotemporal context information to generate the final extended feature vector includes: Acquire multiple data points in each sub-segment, wherein the data points include positioning information and navigation information at a time step; process the multiple data points in each sub-segment, including: Performing interpolation processing on each sub-segment, generating interpolation data points in the sub-segment by using an interpolation algorithm; calculating the spatial position change rate of each interpolation data point, wherein the spatial position change rate is the change rate of the Euclidean distance between adjacent data points; Calculate the mean vector and standard deviation vector of all data points in the sub-segment, where the mean vector is the average value of all data points in each dimension, and the standard deviation vector is the standard deviation of all data points in each dimension; calculate the rate of change between time steps, where the rate of change is the amount of change of the mean vector and standard deviation vector of adjacent time steps; The feature vector is reduced in dimension through principal component analysis, and the reduced feature vector is further enhanced based on the local spatiotemporal context information, including: Perform spatiotemporal context analysis on the data points in each sub-segment to extract the correlation between feature vectors in the local time window; generate enhanced feature vectors by modeling the local spatiotemporal context through a spatiotemporal convolutional network; The enhanced feature vector is input into a long short-term memory network model to capture temporal dependencies; the final output of the feature extraction and enhancement steps is the expanded feature vector.

5. The method for predicting highway traffic congestion based on artificial intelligence according to claim 4, It is characterized in that Methods for modeling local spatiotemporal context via spatiotemporal convolutional networks include: Acquire multidimensional spatial data points within a local time window; input the multidimensional spatial data points into a spatiotemporal convolutional network, wherein the spatiotemporal convolutional network includes a plurality of convolutional layers and a pooling layer; in each convolutional layer, use a convolution kernel to perform a convolution operation on the multidimensional spatial data points to extract local features; In each pooling layer, the features output by the convolutional layer are pooled to reduce the dimension of the feature vector; the output features of all convolutional layers and pooling layers are merged to generate local spatiotemporal context features; the local spatiotemporal context features are input into the fully connected layer to generate the final enhanced feature vector.

6. A highway traffic congestion prediction method based on artificial intelligence according to claim 5, It is characterized in that The method for performing a convolution operation to extract local features comprises: Acquire multidimensional spatial data points within a local time window, wherein the multidimensional spatial data points include positioning information of the mobile terminal, driving lanes, and signal light status; input the multidimensional spatial data points into a spatiotemporal convolutional network, wherein the spatiotemporal convolutional network includes a plurality of convolutional layers and pooling layers, each convolutional layer includes a plurality of three-dimensional convolutional kernels, and the three-dimensional convolutional kernels are used to perform convolution operations in time, space, and lane dimensions; In each convolution layer, a three-dimensional convolution kernel is used to perform a three-dimensional convolution operation on the multi-dimensional spatial data points. By performing convolution in the time dimension, the temporal characteristics of the traffic flow are extracted; by performing convolution in the spatial dimension, the spatial characteristics of the road network are extracted; and by performing convolution in the lane dimension, the traffic characteristics of different lanes are extracted. The output of the convolution operation is processed by a nonlinear activation function, wherein the nonlinear activation function includes a ReLU activation function; the activated features are normalized, wherein the normalization includes batch normalization, and the internal deviation is reduced and the training process is accelerated by normalizing small batches of data; In each pooling layer, the features output by the convolutional layer are pooled using the pooling kernel; the features output by the pooling layer are connected to generate local spatiotemporal context features; the local spatiotemporal context features are input to the fully connected layer, which includes several neurons for mapping the feature vector to a high-dimensional space; the features output by the fully connected layer are activated and normalized to extract local features.

7. The method for predicting highway traffic congestion based on artificial intelligence according to claim 6, It is characterized in that The method of the pooling operation comprises: Perform a maximum pooling operation on the features output by the convolution layer, and extract the maximum value features in the local area through the pooling kernel; perform an average pooling operation on the features output by the convolution layer, and calculate the average value features in the local area through the pooling kernel; The results of maximum pooling and average pooling are combined to generate combined pooling features; the combined pooling features are batch normalized to standardize the feature vector.

8. A highway traffic congestion prediction method based on artificial intelligence according to any one of claims 3 to 7, It is characterized in that The method for performing dimensionality reduction processing on the feature vector by principal component analysis comprises: Acquire multiple data points of each sub-segment, wherein the data points include positioning information, driving lanes, and signal light status; perform standardization processing on the multiple data points of each sub-segment, wherein the standardization processing includes subtracting the mean of each dimension of each data point from the value of the dimension of the dimension and dividing the value by the standard deviation of the dimension; Constructing a covariance matrix, wherein the covariance matrix is ​​used to represent the linear correlation between the dimensions of the standardized data points; performing eigenvalue decomposition on the covariance matrix to extract eigenvalues ​​and eigenvectors, wherein the eigenvalues ​​are used to represent the variance of the data in the direction of the corresponding eigenvector; The feature vector having a feature value exceeding a set feature threshold is selected as the principal component, and the principal component is used to represent the data after dimensionality reduction; each data point is projected onto the direction of the principal component to generate a feature vector after dimensionality reduction; the feature vector after dimensionality reduction is reconstructed to generate an enhanced feature vector based on local spatiotemporal context information.

9. The method for predicting highway traffic congestion based on artificial intelligence according to claim 8, It is characterized in that The method further comprises: Obtain the reduced-dimensional feature vector and divide it into time windows, where the time window is used to contain a group of data points at consecutive time steps; within each time window, calculate the spatiotemporal correlation between the feature vectors, where the spatiotemporal correlation is used to represent the relationship between the data points in the time and space dimensions; Use a convolutional neural network to perform a convolution operation on the feature vector within the time window to extract local spatiotemporal features. The convolution operation includes sliding the convolution kernel on the feature vector and calculating the dot product between the convolution kernel and the feature vector. The result of the convolution operation is pooled, which includes applying a pooling kernel to the convolution result and calculating the maximum or average value in the pooling area; merging the pooled local spatiotemporal features to generate an enhanced feature vector; and normalizing the merged enhanced feature vector. Normalization is to scale the value of the feature vector to within a set threshold.