A method for predicting urban traffic congestion risk field based on space-time diagram network and tensor decomposition
By using spatiotemporal graph networks and tensor decomposition methods, a spatiotemporal data representation system for urban traffic is constructed. The spatial propagation and temporal evolution characteristics of traffic conditions are extracted, and a continuous congestion risk field is generated. This solves the prediction distortion problem of existing methods under extreme conditions and achieves high-precision traffic situation awareness and path planning support.
Patent Information
- Application Number
- CN202611159876.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-02
- Publication Date
- 2026-11-27
AI Technical Summary
Existing traffic condition prediction methods fail to effectively unify the modeling of spatial propagation and temporal evolution characteristics of traffic flow, resulting in distorted prediction results under extreme conditions. Furthermore, traditional methods cannot generate a continuous congestion risk field covering the entire road network, making it difficult to support dynamic path planning and traffic control.
A spatiotemporal data representation system for urban traffic is constructed using spatiotemporal graph networks and tensor decomposition. The spatial propagation and temporal evolution features of traffic states are extracted through spatiotemporal graph convolutional networks, and potential multidimensional coupling structure features are extracted through tensor decomposition to generate a continuous congestion risk field.
It improves the accuracy and spatiotemporal consistency of traffic situation awareness, can accurately capture the cascading congestion effects caused by sudden events, generate a continuous gradient characteristic congestion risk field covering the entire road network, and support dynamic route planning and traffic control.
Smart Images

Figure CN123182401A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of intelligent transportation systems and deep learning technology, and in particular to a method for predicting urban traffic congestion risk fields based on spatiotemporal graph networks and tensor decomposition. Background Technology
[0002] With the accelerating pace of urbanization and the continuous growth of motor vehicle ownership, urban traffic congestion has become a core bottleneck restricting socio-economic development and the quality of residents' travel. In applications involving shared parking resource matching and dynamic route planning, real-time and accurate road capacity prediction is a prerequisite for formulating optimal strategies. However, urban traffic flow exhibits high nonlinearity, time-varying characteristics, and spatial correlation, and existing traffic state prediction methods suffer from the following significant technical shortcomings:
[0003] First, existing models typically only use historical traffic data for time series modeling or only use road network topology for spatial feature aggregation. They fail to model spatial propagation characteristics (the spread effect of congestion at intersections) and temporal evolution characteristics (the periodicity of morning and evening rush hours and the abruptness of sudden events) in a unified manner. This results in severe distortion of prediction results under extreme conditions, making it difficult to accurately capture the cascading congestion effects caused by accidents or traffic control.
[0004] Second, traffic flow data naturally possesses multi-dimensional coupling characteristics, involving the interactive influence of multiple dimensions such as road segment number, time period, day of the week, and weather conditions. Traditional deep learning methods directly optimize parameters on the high-dimensional original tensor, resulting in redundant parameters and a tendency to overfit. They also struggle to extract the core low-dimensional latent factors that control the evolution of traffic conditions, such as key prior knowledge like commuting tidal patterns, regional functional similarity, and weather sensitivity.
[0005] Third, existing methods mostly output flow or speed values on the basis of isolated road segments or intersections, failing to generate a congestion risk field that covers the entire road network and has continuous gradient characteristics. This discrete output is difficult to seamlessly integrate with subsequent global path planning algorithms, cannot provide intuitive situational awareness for macro-level traffic management, and is also difficult to support continuous spatial path optimization decisions based on the risk field.
[0006] In summary, constructing a predictive method that can fully exploit the spatiotemporal coupling characteristics and multidimensional potential structure of traffic data to generate a continuous road network congestion risk situation map is a key technical problem that urgently needs to be solved in the field of intelligent transportation technology. Summary of the Invention
[0007] To address the above problems, this invention provides a method for predicting urban traffic congestion risk fields based on spatiotemporal graph networks and tensor decomposition. The aim is to fully explore the spatiotemporal coupling characteristics and multidimensional potential structure of traffic data, generate a continuous road network congestion risk situation map, and provide highly reliable decision support for dynamic route planning and proactive traffic management.
[0008] This invention discloses a method for predicting urban traffic congestion risk fields based on spatiotemporal graph networks and tensor decomposition, comprising the following steps:
[0009] Step 1: Collect traffic flow data, road network topology data, spatiotemporal environment data, and road attribute feature vector data. Clean, align, and standardize the multi-source data. Extract traffic state sequence data according to a predefined multi-timescale framework to construct a unified urban traffic spatiotemporal data representation system.
[0010] Step 2: Construct a spatiotemporal graph model based on the road network topology data in the urban traffic spatiotemporal data representation system. Combine the traffic state sequence data in the urban traffic spatiotemporal data representation system with the spatiotemporal graph model to construct a spatiotemporal tensor. Introduce a spatiotemporal graph convolutional network to extract the spatial propagation features and temporal evolution features of traffic states from the spatiotemporal tensor.
[0011] Step 3: Use tensor decomposition to perform low-rank decomposition on the constructed spatiotemporal tensor to extract the potential multidimensional coupled structural features that control the evolution of traffic states.
[0012] Step 4: Integrate spatial propagation characteristics, temporal evolution characteristics, and potential multidimensional coupling structure characteristics into a model to generate a continuous urban traffic congestion risk field distribution, realize traffic congestion risk prediction and hierarchical output, and obtain the traffic congestion risk perception results of the urban road network under a multi-timescale framework.
[0013] Furthermore, in step 1, traffic flow data refers to raw data reflecting the road traffic operation status directly obtained from urban road sensing equipment, specifically including three indicators: average vehicle speed per road segment, lane-level time occupancy rate, and traffic flow count. Among these, average vehicle speed... (Unit: km / h), Lane-level time occupancy rate (Dimensionless percentage) and traffic flow count (Unit: veh / h).
[0014] Furthermore, in step 1, the road network topology data refers to the spatial connection relationship and geometric shape of the urban road network, and its core content includes node set, edge set and spatial coordinate information.
[0015] Furthermore, in step 1, the spatiotemporal environmental data is used to encode non-traffic factors affecting traffic flow operation. Its core content includes three items: weather description, time period type identifier, and holiday identifier, among which the weather state encoding... (Sunny / Cloudy / Rainy / Snowy), Time Period Type Identifier (Peak / Off-peak / Nighttime) and Holiday Signs (whether).
[0016] Furthermore, in step 1, the road attribute feature vector data is used to quantify the physical traffic capacity and service level of the road segment, and its content includes three indicators: number of lanes, road grade, and speed limit. Among them, the number of lanes... Road grade (Expressway / Arterial Road / Secondary Arterial Road / Local Road) and Speed Limits .
[0017] Furthermore, in step 1, after the traffic flow data is cleaned, raw scale data with different frequencies are obtained. The geomagnetic data is at 1-minute intervals and the floating car data is at 5-minute intervals. After spatiotemporal alignment processing, the data is uniformly resampled to a 5-minute reference frequency to obtain time-space double-aligned structured data. Using (5-minute time step, node number) as the index, after standardization processing, the Z-score method is used to map the three indicators of speed, occupancy rate, and flow rate to a standard normal distribution space with a mean of 0 and a variance of 1.
[0018] Furthermore, in step 1, the road network topology data is cleaned to obtain node and road segment data in vector format, and then subjected to spatiotemporal alignment processing to obtain an adjacency matrix. and node coordinate matrix After standardization, a standardized adjacency matrix is obtained. and coordinate matrix N represents the total number of nodes in the road network, that is, the number of core intersections or important road sections in the road network topology data.
[0019] Furthermore, in step 1, after the spatiotemporal environmental data is cleaned, the unified text data and categorical environmental data are spatiotemporally aligned to obtain double-aligned categorical time-series data, which are then standardized to obtain the environmental coding matrix. .
[0020] Furthermore, in step 1, the road attribute feature vector data is cleaned to obtain the original format data with complete attributes, then undergoes spatiotemporal alignment processing to obtain an attribute attachment table indexed by nodes, and finally undergoes standardization processing to obtain a standardized feature matrix. .
[0021] Furthermore, in step 1, the multi-timescale framework is a structural design that organizes traffic state sequence data according to different time granularities. It includes three levels: recent minute level, intraday hour level, and intraweekly day level. It is used to capture the rapid congestion propagation process caused by sudden events such as accidents and traffic control, daily cycle patterns such as morning peak, midday off-peak, evening peak and nighttime trough, differences in travel patterns between weekdays and weekends, and changes in traffic demand during holidays.
[0022] Furthermore, in step 1, the traffic state sequence data is the final output value obtained by fusion of four types of data (traffic flow data, road network topology data, spatiotemporal environment data, and road attribute data) after cleaning, spatiotemporal alignment, and standardization.
[0023] Furthermore, in step 1, the urban traffic spatiotemporal data representation system is a general term for the structured data framework formed after the aforementioned four types of data have been cleaned, spatiotemporally aligned and standardized. This system integrates traffic flow data, road network topology data, spatiotemporal environment data and road attribute feature vector data into an organic whole with a unified data format and indexing rules, so that multi-source heterogeneous data can be collaboratively invoked under the same spatiotemporal reference framework.
[0024] Furthermore, in step 1, the predefined multi-timescale framework includes at least three granularities: recent minute-level scale (e.g., 5 minutes), intraday hour-level scale (e.g., 1 hour), and intraweekly day-level scale (e.g., 1 day); further processing includes: imputing missing values using linear interpolation, removing pulse data exceeding a preset threshold (e.g., 3 times the standard deviation) using a statistical outlier detection algorithm, and employing... The normalization method maps data of each dimension to a standard normal distribution space with a mean of 0 and a variance of 1. The normalization formula is: ; To address the bandwidth hyperparameter, further processing includes: resampling data from different sampling frequencies (e.g., 1-minute data from checkpoints and 5-minute data from floating car stations) to a preset baseline sampling frequency (e.g., 5 minutes) to obtain standardized multidimensional traffic state sequence data. , serving as the data base for constructing the spatiotemporal tensor representation.
[0025] Furthermore, in step 2, the spatiotemporal graph model maps intersections or road segment cross-sections in the road network topology to graph nodes through nodes. Map the physical connections of road segments to graph edges This will generate numerical representations of edge relationships. The matrix is constructed together.
[0026] Furthermore, in step 2, the spatiotemporal tensor is constructed by determining its dimensions, filling in data, and finally outputting the result. The determined dimensions are the time dimension. Determined according to a multi-timescale framework, spatial dimensions Determined by the total number of road network nodes, feature dimensions The data is determined by splicing dynamic features (speed, occupancy, flow rate), static attributes (traffic capacity factor, road grade factor, design speed factor), and environmental codes. Data filling involves reading dynamic features step-by-step from the traffic state sequence data table and copying static attributes from the road attribute feature vector data table along the time axis. Next, the environment code is matched from the spatiotemporal environment data table according to time steps and filled into the corresponding positions of the tensor, ultimately resulting in the generated values at the three scales. (minute level) (Hourly) and (Japanese level).
[0027] Furthermore, in step 2, the spatial propagation characteristics of traffic conditions are obtained through input... Through multi-layer graph convolution stacking, each node gradually obtains the spatial state within an L-order neighborhood by aggregating neighborhood information, and finally outputs the spatial propagation features. The time propagation characteristics are arranged in chronological order t=1,2,...,T, representing the time points at each moment. Input a GRU and collect the hidden states over all T time steps. Final output .
[0028] Furthermore, in step 2, constructing a spatiotemporal graph model based on road network topology data specifically involves: defining the graph structure. , where the set of nodes Characterizing the cross-section of a core intersection or important road segment in a road network. edge set and The existence of physical road connections represents the connectivity of road segments; adjacency matrix It is generated based on a comprehensive calculation of the physical connection relationship of road segments and the road impedance coefficient, and its elements are... The calculation formula is ,in For nodes With nodes The distance between the road networks, For bandwidth hyperparameters, when hour ,when and When not connected The spatiotemporal tensor is constructed by extracting node features, and is denoted as . ,in Time steps For the number of nodes, As a feature dimension, this tensor simultaneously encodes the spatial adjacency structure of the road network and the temporal dependencies of the time series.
[0029] Furthermore, in step 2, the spatiotemporal graph convolutional network employs a first-order graph convolutional kernel based on Chebyshev polynomial approximation, combined with a gated recurrent unit (GRU) to construct an encoder-decoder structure; its calculation process is as follows: First, the information of each node and its neighboring nodes is aggregated using graph convolution operations, and the transfer formula of the graph convolutional layer... , for The degree matrix, Let be the learnable weight matrix of the l-th layer. The hidden state matrix of the nodes in layer l is used. After being stacked through multiple layers of graph convolutions, the input node features are processed by the graph convolutional network and gated recurrent units. Finally, the features are concatenated and fused to extract the spatial propagation features. This feature characterizes the propagation direction and attenuation intensity of congestion events between intersections; secondly, it stacks gated cyclic units in the time dimension, and their update formula is... Through temporal input, hidden state update processing, and finally feature extraction, the temporal evolution features are extracted. This feature characterizes the periodic trend and short-term abrupt changes in traffic flow sequences; spatial propagation characteristics With time evolution characteristics Together, they constitute a high-dimensional spatiotemporal hidden state sequence, serving as the dynamic input part of the fusion modeling in step 4.
[0030] Furthermore, in step 3, the latent multidimensional coupling features are decomposed into low-rank values using Tucker-Keams clustering analysis, waveform clustering analysis, feature concatenation, and nonlinear mapping. The latent multidimensional coupling features are extracted using Tucker-Spatial Factor Clustering, Temporal Factor Clustering, feature concatenation, and mapping for low-rank extraction. .
[0031] Furthermore, in step 3, the tensor decomposition method employs Tucker decomposition; the spatiotemporal tensor representation constructed in step 2... By performing low-rank projection along the three dimensions of time, space, and features, the original high-dimensional tensor is decomposed into a product of a low-dimensional core tensor and three factor matrices. ,in The core tensor represents the interaction strength between the three dimensions. This is a time factor matrix, where each column represents a time base pattern; This is a spatial factor matrix, where each column represents a spatial basis mode; This is the feature factor matrix, where each column represents a feature basis pattern; , , The decomposition ranks are time, space, and feature dimensions, respectively. Adjusting the size of the decomposition ranks controls the granularity and computational complexity of feature extraction.
[0032] Furthermore, in step 3, the specific operation for extracting the potential multidimensional coupling structure features is as follows: [The text abruptly ends here, likely due to an incomplete sentence or a formatting error.] Cluster analysis is performed on each row (using the K-means algorithm, with a preset number of clusters). Obtain the implicit labels of the functional zones to which each node in the road network belongs. This is used to distinguish different functional areas such as commercial areas, residential areas, industrial areas, areas surrounding schools, and transportation hubs; the time factor matrix... Waveform clustering analysis is performed on each column to obtain typical daily variation curve clusters, including typical time period patterns such as morning peak, midday off-peak, evening peak, and nighttime trough. The functional partition labels of each node are one-hot encoded, and the matching degree between each time base pattern and historical data of the same period is calculated as a weight vector. The above results are concatenated and passed through a fully connected nonlinear mapping layer to form a potential coupled structure feature vector. This feature vector represents the inherent tidal patterns and regional functional similarities in the road network that are not affected by instantaneous disturbances, and is directly used as the static structural input part of the fusion modeling in step 4.
[0033] Furthermore, in step 4, the construction of a continuous urban traffic congestion risk field is achieved through... , The system employs cross-state attention fusion across modules, a gating fusion mechanism, a fully connected layer with spatial interpolation, hierarchical quantization processing, and finally extracts traffic congestion risk from the output data. It tracks the evolution of traffic conditions over past periods, using past patterns to simulate the future and achieve a predictive effect. The grading, on the other hand, is achieved through... The data is processed, and the output is a classification. Traffic congestion risk perception uses coordinates. The data is collected, its value is calculated using the RBF interpolation formula, and then the mapping rules of the quantize function are used to process the starting and ending values of each road segment in the road network. Finally, the maximum value is taken as the result.
[0034] Furthermore, in step 4, the fusion modeling of spatial propagation features, temporal evolution features, and potential multidimensional coupling structure features specifically involves: first, using a cross-modal attention module to calculate the spatial propagation features. With time evolution characteristics The adaptive weights on the time and space axes, the formula for calculating attention weights is as follows: Dynamic anomaly features are generated through weighted summation. This feature highlights abnormal traffic patterns that deviate from historical patterns within the current time period; secondly, a gating fusion mechanism is used to integrate these dynamic anomaly features. With the aforementioned potential multidimensional coupling structural features After splicing and nonlinear transformation, the gated fusion formula is as follows: Generate a comprehensive situational representation vector. ,in For Hadamard and It is a learnable projection matrix; the integrated situational representation vector simultaneously encodes real-time dynamic disturbances and historical inherent patterns.
[0035] Furthermore, in step 4, generating a continuous urban traffic congestion risk field distribution specifically involves: converting the comprehensive situational representation vector at each discrete node of the road network... Extending the radial basis function (RBF) interpolation method to a continuous two-dimensional geographic space covered by the road network, for any geographic coordinates... Its risk potential value is obtained by weighted summation of the Gaussian kernel functions of all known nodes, and the calculation formula is as follows: ,in Let be the geographical coordinates of the i-th node. Let ρ be the risk weight scalar of the integrated situational representation vector of the i-th node after mapping through the fully connected layer, and let ρ be the bandwidth parameter of the radial basis function; then the congestion risk potential function is obtained. This function is applicable to any geographic coordinates. and prediction time A continuous risk potential value is assigned; the higher the risk potential value, the greater the probability and severity of congestion at that location.
[0036] Furthermore, in step 4, the congestion risk classification output is based on the congestion risk potential function. Divide the numerical range and set a low-risk range. Medium-risk area High-risk areas and extremely high risk range Based on the aforementioned multi-timescale framework, congestion risk maps for ultra-short-term (15-30 minutes), short-term (30-60 minutes), and medium-term (2-4 hours) congestion are generated, and risk level labels for each road segment at each prediction time point are output. The path decision variables supplied to downstream dynamic path planning modules (such as the path decision variables in step 3 of the shared parking resource matching method) serve as the prior basis for the dynamic update of road network weights.
[0037] Beneficial effects
[0038] (1) This invention effectively improves the accuracy and spatiotemporal consistency of congestion risk expression, providing strong support for urban traffic situation perception and refined management.
[0039] (2) In view of the shortcomings of existing models that can only extract time or space features, this invention uses spatiotemporal graph convolutional networks to jointly characterize the spatial propagation characteristics and temporal evolution of traffic conditions, effectively solving the problem of prediction distortion under extreme conditions, and accurately capturing the cascading congestion effect caused by sudden events.
[0040] (3) This invention introduces tensor decomposition to perform low-rank representation of high-dimensional spatiotemporal data, and successfully extracts the potential multidimensional coupling structure features that control the evolution of traffic state. This not only avoids the parameter redundancy and overfitting problems caused by direct optimization of high-dimensional original tensors, but also effectively mines the kernel low-dimensional hidden factors such as regional functional similarity and inherent tidal patterns.
[0041] (4) In view of the problem of discrete and fragmented output results of traditional methods, this invention extends the discrete node features to a continuous two-dimensional geographic space through the radial basis function (RBF) interpolation method, generating a congestion risk potential energy field that covers the entire road network and has continuous gradient characteristics, which greatly enhances the spatial continuity and the interpretability of the macro situation.
[0042] (5) In the comparative verification of the embodiments, the method reduced the mean absolute percentage error (MAPE) of the speed prediction values of each node to 8.3%, which is about 34.6% lower than the 12.7% of the single LSTM model. At the same time, the detection recall rate of high-risk congestion areas reached 91.2%, which fully verified its superiority in complex traffic scenarios.
[0043] (6) The system can generate multi-granularity risk perception results and level labels at the recent minute level, intraday hour level, and intraweek day level (ultra-short-term, short-term, and medium-term) based on a multi-time scale framework. The continuous hierarchical output can be directly supplied to the downstream dynamic path planning module as a priori basis for the dynamic update of road network weights. Attached Figure Description
[0044] Figure 1 The following is an overall flowchart of the urban traffic congestion risk field prediction method based on spatiotemporal graph networks and tensor decomposition in this invention.
[0045] Figure 2 Schematic diagram of the feature extraction module of the Spatiotemporal Graph Convolutional Network (ST-GCN).
[0046] Figure 3 : Schematic diagram of the feature extraction process for multidimensional coupled structures based on Tucker decomposition.
[0047] Figure 4: Schematic diagram of the generation and hierarchical output effect of congestion risk field with integrated attention mechanism. Detailed Implementation
[0049] To better understand this invention, the following description, in conjunction with the accompanying drawings of the embodiments of this invention, will provide further details, but these descriptions are not intended to limit the scope of the invention. Various modifications and improvements made to the technical solutions of this invention by those skilled in the art without departing from the inventive concept should fall within the protection scope of this invention.
[0050] This embodiment uses the road network of a city's core urban area as the application scenario, selecting an area covering 120 road sections and 30 key intersections as the experimental subject. Multi-source data was collected continuously for 30 days, including geomagnetic induction traffic flow data, GPS floating car speed data, signal timing data, and weather data. The method of this invention is used to predict and classify traffic congestion risk fields for the next 60 minutes. The implementation area covers commercial centers, large residential communities, and three main urban roads (east-west main road X1, north-south main road Y1, and ring expressway R1). The method of this invention enables continuous perception and classified early warning of road network congestion risk.
[0051] like Figure 1 As shown, a method for predicting urban traffic congestion risk fields based on spatiotemporal graph networks and tensor decomposition includes the following steps:
[0052] Step 1: Collect traffic flow data, road network topology data, spatiotemporal environment data, and road attribute feature vector data. Clean, align, and standardize the multi-source data. Extract traffic state sequence data according to a predefined multi-timescale framework to construct a unified urban traffic spatiotemporal data representation system.
[0053] Step 2: Construct a spatiotemporal graph model based on the road network topology data in the urban traffic spatiotemporal data representation system. Combine the traffic state sequence data in the urban traffic spatiotemporal data representation system with the spatiotemporal graph model to construct a spatiotemporal tensor. Introduce a spatiotemporal graph convolutional network to extract the spatial propagation features and temporal evolution features of traffic states from the spatiotemporal tensor.
[0054] Step 3: Use tensor decomposition to perform low-rank decomposition on the constructed spatiotemporal tensor to extract the potential multidimensional coupled structural features that control the evolution of traffic states.
[0055] Step 4: Integrate spatial propagation characteristics, temporal evolution characteristics, and potential multidimensional coupling structure characteristics into a model to generate a continuous urban traffic congestion risk field distribution, realize traffic congestion risk prediction and hierarchical output, and obtain the traffic congestion risk perception results of the urban road network under a multi-timescale framework.
[0056] Furthermore, in step 1, the multi-source data acquisition is shown in Table 1.
[0057] Table 1. Data Collection Scope and Sources
[0058] Data types Source of data collection Core content to be collected Sampling frequency Traffic flow data Geomagnetic induction coils, roadside radar Cross-sectional average vehicle speed, time occupancy rate, and traffic flow count 1 minute Road network topology data Urban road network GIS database Road centerline, intersection coordinates, and direction of traffic static Spatiotemporal environmental data Weather Bureau API, Calendar System Weather codes, time period identifiers, and holiday identifiers 1 hour Road attribute data Road maintenance management system Number of lanes, road grade, speed limit static
[0059] Furthermore, in step 1, the 1-minute frequency flow data and the 5-minute frequency floating car data are uniformly resampled to a 5-minute reference frequency. After cleaning and Z-score normalization, a tensor base is obtained. The time steps are 8640 (288 steps / day × 30 days), the number of nodes is 120, and the feature dimensions are 3 (speed, occupancy, traffic).
[0060] Furthermore, in step 2, an adjacency matrix is constructed based on the road network connectivity. The spatiotemporal graph convolutional network is configured with 2 layers, 64 hidden layers, and 64 hidden dimensions for each gated recurrent unit. Spatial propagation features are extracted through forward propagation via the spatiotemporal graph convolutional network. (Characterizing the direction of congestion propagation and attenuation intensity of each road segment) and temporal evolution characteristics (Characterizing the periodicity and trend of the traffic sequence). Key intermediate results in its calculation process include: the sparsity of the node embedding matrix after graph convolutional neighborhood aggregation and ReLU activation is about 42%; the latent state variance of the gated cyclic unit increases significantly during the morning peak period (7:30-9:00), responding to the abrupt change characteristics of commuting tides.
[0061] Furthermore, in step 3, the spatiotemporal tensor table... Perform Tucker decomposition and set the decomposition rank to 1. , , The time factor matrix is obtained after decomposition. Spatial factor matrix eigenfactor matrix and core tensor Perform K-means clustering on rows 120 of the spatial factor matrix V. The clustering results distinguished five functional zones: commercial center area (nodes 1-18), residential area (nodes 19-45), industrial park (nodes 46-62), school periphery area (nodes 63-78), and transportation hub area (nodes 79-120). Waveform clustering was performed on the time factor matrix U to extract four typical daily variation curves: morning peak (7:30-9:00), midday off-peak (11:00-14:00), evening peak (17:30-19:00), and nighttime off-peak (22:00-6:00). The potential coupled structure features were obtained by concatenating and mapping the above clustering results. Furthermore, in step 4, the output of step 2 is... and After extracting the most recent 12 time steps (1-hour window) along the time axis, dynamic anomaly features are generated through cross-modal attention-weighted fusion. Then, compared with the output of step 3 By performing gating fusion, a comprehensive situational representation can be obtained. .Will The risk weight scalar w_i of each node is mapped through a fully connected layer, and radial basis function interpolation is used (with bandwidth set). (meters) to extend to the entire coverage area.
[0062] Using the current time (8:00 AM morning rush hour) as a baseline, the risk field for the next 30 minutes (8:30 AM) is predicted. The risk potential energy values of each node at 8:30 AM are interpolated to output a risk contour map. The results show that the average risk potential energy of road sections surrounding the commercial center (nodes 1-18) is 0.78 (high risk), the average risk potential energy of road sections connecting the residential area to the commercial area (nodes 19-30) is 0.65 (medium-high risk), and the average risk potential energy of the industrial park and its surrounding road sections is below 0.25 (low risk). The prediction results are compared and verified with actual floating car speed data. The mean absolute percentage error (MAPE) of the predicted speed values for each node is 8.3%, which is about 34.6% lower than that of a single LSTM model (MAPE=12.7%). The detection and recall rate of high-risk congestion areas reaches 91.2%, verifying the superiority of the proposed method in complex scenarios and the effectiveness of the layered feature fusion.
[0063] After the algorithm converges, the system outputs risk level labels at three time scales: recent minute-level (5 minutes), intraday hour-level (30 minutes), and intraweek day-level (2 hours). This results in multi-granularity risk perception results covering the entire road network, providing prior information for dynamic updates of road condition weights for downstream dynamic path planning modules (such as the path decision variables in step 3 of the shared parking resource matching method).
Claims
1. A method for predicting urban traffic congestion risk field based on spatiotemporal graph networks and tensor decomposition, characterized in that, It includes the following steps: Step 1: Collect traffic flow data, road network topology data, spatiotemporal environment data, and road attribute feature vector data. Clean, align, and standardize the multi-source data. Extract traffic state sequence data according to a predefined multi-timescale framework to construct a unified urban traffic spatiotemporal data representation system. Step 2: Construct a spatiotemporal graph model based on the road network topology data in the urban traffic spatiotemporal data representation system. Combine the traffic state sequence data in the urban traffic spatiotemporal data representation system with the spatiotemporal graph model to construct a spatiotemporal tensor. Introduce a spatiotemporal graph convolutional network to extract the spatial propagation features and temporal evolution features of traffic states from the spatiotemporal tensor. Step 3: Use tensor decomposition to perform low-rank decomposition on the constructed spatiotemporal tensor to extract the potential multidimensional coupled structural features that control the evolution of traffic states. Step 4: Integrate spatial propagation characteristics, temporal evolution characteristics, and potential multidimensional coupling structure characteristics into a model to generate a continuous urban traffic congestion risk field distribution, realize traffic congestion risk prediction and hierarchical output, and obtain the traffic congestion risk perception results of the urban road network under a multi-timescale framework.
2. The method for predicting urban traffic congestion risk field based on spatiotemporal graph networks and tensor decomposition according to claim 1, characterized in that, In step 1, the traffic flow data includes the average vehicle speed of the road segment, lane-level time occupancy rate, and traffic flow count; the road network topology data includes road centerline vector data, intersection latitude and longitude coordinates, and road segment traffic direction matrix; the spatiotemporal environment data includes weather status codes, time period type identifiers, and holiday identifiers; and the road attribute feature vector data includes the number of lanes, road grade, and speed limit value.
3. The method for predicting urban traffic congestion risk field based on spatiotemporal graph networks and tensor decomposition according to claim 2, characterized in that, In step 1, the predefined multi-timescale framework includes at least three granularities: recent minute-level scale, intraday hour-level scale, and intraweek day-level scale; the cleaning and standardization process includes: imputing missing values using linear interpolation, removing pulse data exceeding a preset threshold using a statistical outlier detection algorithm, and employing... The normalization method maps data of each dimension to a standard normal distribution space. The normalization formula is: The spatiotemporal alignment process refers to uniformly resampling data sources with different sampling frequencies to a preset reference sampling frequency to obtain standardized multidimensional traffic state sequence data, which serves as the data base for constructing the spatiotemporal tensor representation.
4. The method for predicting urban traffic congestion risk field based on spatiotemporal graph networks and tensor decomposition according to claim 1, characterized in that, In step 2, the construction of the spatiotemporal graph model based on road network topology data specifically involves: defining the graph structure. , where the set of nodes The edge set represents the cross-section of a core intersection or important road segment in a road network. Adjacency matrix represents the connectivity of road segments. Generated based on a comprehensive calculation of road segment physical connectivity and road impedance coefficient; the spatiotemporal tensor representation is denoted as... ,in For time steps, For the number of nodes, As a feature dimension, this tensor simultaneously encodes the spatial adjacency structure of the road network and the temporal dependencies of the time series.
5. The method for predicting urban traffic congestion risk field based on spatiotemporal graph networks and tensor decomposition according to claim 4, characterized in that, In step 2, the spatiotemporal graph convolutional network uses a first-order graph convolutional kernel based on spectral graph theory, combined with gated recurrent units to construct an encoder-decoder structure. The calculation process is as follows: First, graph convolution operations are used to aggregate information about each node and its neighboring nodes. The graph convolutional layer introduces an adjacency matrix A and a degree matrix D for normalization aggregation. After multiple layers are stacked, spatial propagation features are extracted. These features characterize the diffusion direction and attenuation intensity of congestion events between intersections. Second, gated recurrent units are stacked in the time dimension to extract temporal evolution features. These features characterize the periodic trend and short-term abrupt changes of the traffic flow sequence. The spatial propagation features and temporal evolution features together constitute a high-dimensional spatiotemporal hidden state sequence, serving as the dynamic input for the fusion modeling in step 4.
6. The method for predicting urban traffic congestion risk field based on spatiotemporal graph networks and tensor decomposition according to claim 1, characterized in that, In step 3, the tensor decomposition method employs Tucker decomposition; the spatiotemporal tensor representation constructed in step 2 is then applied. Low-rank projection is performed along the three dimensions of time, space, and features to decompose the original high-dimensional tensor into a low-dimensional core tensor. The product form with the three factor matrices: ,in For time factor matrix, For the space factor matrix, The feature factor matrix is used; the granularity and computational complexity of feature extraction are controlled by adjusting the decomposition rank of each dimension.
7. The method for predicting urban traffic congestion risk field based on spatiotemporal graph networks and tensor decomposition according to claim 6, characterized in that, In step 3, the specific operation of extracting the potential multidimensional coupling structure features is as follows: perform cluster analysis on the spatial factor matrix V to obtain the implicit labels of the functional zones to which each node in the road network belongs, in order to distinguish different functional areas such as commercial areas, residential areas, industrial areas, school surroundings, and transportation hubs; perform waveform cluster analysis on the time factor matrix U to obtain typical daily variation curve clusters, including typical time period patterns such as morning peak, midday off-peak, evening peak, and nighttime trough; encode the functional zone labels of each node, calculate the matching degree between each time base pattern and historical data of the same period as a weight vector, and concatenate the above results and pass through a fully connected nonlinear mapping to form a potential coupling structure feature vector; This feature vector characterizes the inherent tidal patterns and regional functional similarities in the road network that are unaffected by instantaneous disturbances, and is directly used as the static structural input part of the fusion modeling in step 4.
8. The method for predicting urban traffic congestion risk field based on spatiotemporal graph networks and tensor decomposition according to claim 1, characterized in that, In step 4, the specific steps of fusing and modeling the spatial propagation features, temporal evolution features, and potential multidimensional coupling structure features are as follows: First, the cross-modal attention module is used to calculate the adaptive weights of the spatial propagation features and temporal evolution features on the time axis and spatial axis. The dynamic anomaly features are generated by weighted summation, which highlights the abnormal traffic situation that deviates from the historical pattern in the current period. Secondly, a gating fusion mechanism is used to concatenate and nonlinearly transform the dynamic anomaly features and the potential multidimensional coupled structure features. The gating fusion formula is as follows: Generate integrated situational representation from the inside The integrated situational representation vector simultaneously encodes real-time dynamic disturbances and historical inherent patterns.
9. A method for predicting urban traffic congestion risk field based on spatiotemporal graph networks and tensor decomposition according to claim 8, characterized in that, In step 4, generating a continuous urban traffic congestion risk field distribution specifically involves: extending the comprehensive situational representation vector at each discrete node of the road network to a continuous two-dimensional geographic space covered by the road network using radial basis function interpolation. For any geographic coordinate... Its risk potential value is obtained by weighted summation of the Gaussian kernel functions of all known nodes, and the calculation formula is as follows: ,in For the first The geographical coordinates of each node For the first The risk weight scalar obtained by mapping the comprehensive situational awareness vector of each node through a fully connected layer. The bandwidth parameter of the radial basis function is used to obtain the congestion risk potential function. This function assigns a continuous risk potential value to any geographic coordinate and the predicted time. The higher the risk potential value, the greater the probability and severity of congestion at that location. The congestion risk classification output is based on the numerical range of the risk potential function, and at least four levels are set: low risk range, medium risk range, high risk range and extremely high risk range. Combined with the multi-time scale framework, ultra-short-term, short-term and medium-term congestion risk maps are generated respectively, and the risk level label of each road segment at each prediction time point is output to provide the downstream dynamic path planning module as the prior basis for updating the road network weight.
