A Beidou spatiotemporal traffic data recovery method based on transform-induced low-rank tensor

By constructing a spatiotemporal data model and multi-modal nonlinear tensor core norm optimization, the accuracy and missing value processing problems of traffic flow prediction in the existing technology are solved, and high-precision traffic data recovery and analysis support are achieved.

CN118445284BActive Publication Date: 2024-09-13HEFEI INSTITUTE OF PHYSICAL SCIENCE CHINESE ACADEMY OF SCIENCES
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410906895.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-08
Publication Date
2024-09-13
Estimated Expiration
2044-07-08

AI Technical Summary

Technical Problem

Existing technology is difficult to accurately predict urban traffic flow, ignores the interrelationships between traffic nodes, and cannot effectively handle irregular traffic network topology relationships and missing values ​​in massive real traffic data, resulting in a decline in the quality of traffic flow prediction.

Method used

The Beidou spatio-temporal traffic data recovery method based on transformation-induced low-rank tensor is adopted. By constructing a spatio-temporal data model, a three-dimensional space region is formed, a third-order spatio-temporal tensor is constructed, and the multi-modal nonlinear tensor kernel norm is used to fill in missing data. , restore the original third-order space-time tensor.

Benefits of technology

It achieves a more accurate and complete description of the changing patterns of traffic conditions, fills in missing values ​​in traffic data with high precision, improves the quality of traffic data mining and analysis, and surpasses the recovery effect of advanced tensor optimization algorithms at home and abroad.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118445284B
    Figure CN118445284B
Patent Text Reader

Abstract

The present invention discloses a Beidou spatiotemporal traffic data recovery method based on transformation-induced low-rank tensor, which relates to the field of spatiotemporal traffic big data technology, and includes the following contents: obtaining spatiotemporal data of traffic flow, the spatiotemporal data includes the time of data sampling, vehicle position and vehicle speed, and the vehicle position includes longitude and latitude; dividing the three-dimensional space area formed by the spatiotemporal data of traffic flow into a set number of data blocks according to the elastic grid partitioning method; constructing a traffic tensor, i.e., a third-order spatiotemporal tensor, according to the divided data blocks; designing a spatiotemporal tensor recovery algorithm according to the spatiotemporal characteristics of the traffic tensor, and filling and recovering the missing data in the third-order spatiotemporal tensor. The present invention can utilize the spatiotemporal characteristics of the traffic tensor to fill the missing values ​​therein with large area and high precision, and provide a good basic support for traffic data mining, data analysis and other applications.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of space-time traffic big data technology, and in particular to a Beidou space-time traffic data recovery method based on transformation-induced low-rank tensor. Background Art

[0002] There is a close relationship between traffic flow, traffic density and traffic speed. Usually, a traffic flow model is used to characterize the relationship between the three in order to achieve the purpose of traffic prediction. Accurate traffic prediction is an important foundation for building an intelligent transportation system, and is of great significance to various downstream applications such as traffic time estimation, route planning, and traffic light control. Due to the high dynamics and complex spatiotemporal dependencies of urban transportation networks, accurate traffic prediction remains a challenge.

[0003] Traditional statistical signal processing methods, such as ARIMA model and support vector regression (SVR) model, model traffic prediction using univariate time signal regression. These methods rely on the assumption of signal stability and ignore the relationship between traffic nodes, making it difficult to capture the complex traffic patterns in the real world. With the development of deep learning technology, models such as convolutional neural networks have emerged, but they can only process spatial information in a Euclidean space gridding manner and cannot handle irregular traffic network topology relationships.

[0004] In addition, in actual use, it was found that downstream application technologies such as traffic forecasting have high requirements for data integrity, and the missing values ​​contained in the massive real traffic data collected by Beidou will have a far-reaching negative impact on the prediction results; on the other hand, the existing technology cannot fully extract the spatiotemporal characteristics of traffic flow data, and the mathematical model lacks basic digital representation, and cannot explain the phenomena of drivers overtaking and changing lanes in real traffic, the topological characteristics of roads, and other phenomena. These defects will lead to a reduction in the quality of downstream applications such as traffic flow forecasting, and cannot meet actual usage needs. Summary of the invention

[0005] In order to overcome the defects in the above-mentioned prior art, the present invention provides a Beidou spatiotemporal traffic data recovery method based on transform-induced low-rank tensor, which can not only more accurately and completely characterize the changing laws of traffic conditions, but also utilize the spatiotemporal characteristics of the collected traffic tensor to fill in the missing values ​​on a large scale and with high precision, thereby providing a good basic support for traffic data mining, data analysis and other applications.

[0006] To achieve the above object, the present invention adopts the following technical solutions, including:

[0007] A Beidou spatiotemporal traffic data recovery method based on transformation-induced low-rank tensor, comprising the following steps:

[0008] S1, obtaining spatiotemporal data of traffic flow, the spatiotemporal data including the time of data sampling, vehicle position and vehicle speed; wherein the vehicle position includes longitude and latitude;

[0009] S2, constructing a spatiotemporal data model, dividing the three-dimensional space area formed by the spatiotemporal data of traffic flow into a set number of data blocks based on the spatiotemporal data model; the spatiotemporal data model is composed of three dimensions: longitude, latitude and time;

[0010] S3, based on the spatiotemporal data of traffic flow in each data block, construct a traffic tensor, i.e., a third-order spatiotemporal tensor, including: a third-order tensor E1 of the number of vehicles changing with time and space , and a third-order tensor E2 of the average speed of the vehicle varying with time and space; the temporal and spatial variations include changes in three dimensions: longitude, latitude and time;

[0011] S4, for the obtained third-order space-time tensor, fill and restore the missing data in the third-order space-time tensor. The specific method is: transform the third-order space-time tensor into a multimodal nonlinear tensor, calculate the multimodal nonlinear tensor nuclear norm, and restore the original third-order space-time tensor by minimizing the multimodal nonlinear tensor nuclear norm.

[0012] Preferably, step S4 specifically includes the following steps:

[0013] S41, the third-order tensor E1 or E2 is recorded as x ∈R n1×n2×n3 , where R represents a real number, n1, n2, and n3 represent third-order tensors x The number of slices in three different dimensions: longitude, latitude, and time; a third-order tensor x It has spatial mode (:, :, k), temporal mode X(i, j, :), spatiotemporal mode X(i, :, :) and X(:, j, :), where i represents the i-th slice in the longitude dimension; j represents the j-th slice in the latitude dimension, and k represents the k-th slice in the time dimension;

[0014] Define a generalized modular expansion operation Unfold( x , S):

[0015] ;

[0016] Among them, S is an ordered subset, S∈N, N is the tensor order set, N={1,2,3}, and the ordered subset S is used to select the expanded mode; the symbol × represents the Cartesian product, and the symbol ∏ represents the number product; X [S] Represents a third-order tensor x The expansion result after performing the generalized modular expansion operation along the ordered subset S;

[0017] The inverse operation of the generalized modular expansion operation is:

[0018] ;

[0019] Fold S (X [S] ) represents the expansion result X [S] Perform the reverse operation and expand the result X [S] Restored to a third-order tensor x ;

[0020] Define a variant of the modular expansion operation:

[0021] ;

[0022] in, Represents a third-order tensor x The expansion result after performing the variant modulo expansion operation along the ordered subset S;

[0023] Select the ordered subset S={1,3}, for the third-order tensor x After performing the generalized modular expansion operation, the three-dimensional expansion tensor X is obtained. [(1,3)] ∈R n1×n3×n2 ;

[0024] Select the ordered subset S={3}, for the third-order tensor x After performing the generalized modular expansion operation, the two-dimensional expansion matrix X is obtained. [3] ∈R n3×n1n2 ;

[0025] Select the ordered subset S={1,2}, for the third-order tensor x After performing the variant mode expansion operation, the two-dimensional expansion matrix is ​​obtained ∈R n1n2×n3 ;

[0026] S42, using the two modular expansion operations defined in step S41, define two modular multiplication operations;

[0027] The first is a two-dimensional modular multiplication operation, recorded as:

[0028] ;

[0029] , ;

[0030] Where M is a semi-positive definite transformation matrix; the third-order tensor x After performing a generalized modular expansion operation along (p1, p2), we get a three-dimensional expansion tensor. ; Represents a three-dimensional expanded tensor The ath slice along dimension p3; Represents the first modular multiplication symbol; np3 represents the number of slices in the p3 dimension;

[0031] The second is a variant of the two-dimensional modular multiplication operation, denoted as:

[0032] ;

[0033] in, is a semi-positive definite transformation matrix; a third-order tensor x After performing the variant modulo expansion operation along (p1, p2), the two-dimensional expansion matrix is ​​obtained ; Represents the second modular multiplication symbol;

[0034] Indicates restoring the expansion result to a third-order tensor;

[0035] According to the two modular multiplication operations defined, the semi-positive definite transformation matrices G, H, and T are selected to be respectively combined with the two-dimensional expansion matrix obtained in step S41 , three-dimensional expansion tensor X [(1,3)] and the two-dimensional expansion matrix X [3] Perform modular multiplication; where G T G=I,H T H=I,T T T=I, I is the unit matrix;

[0036] S43, using the two modular multiplications defined in step S42, design a multimodal nonlinear tensor nuclear norm, denoted as:

[0037] ;

[0038] ;

[0039] in, represents the matrix nuclear norm, ψ(·) is the nonlinear activation function, ∈R m1×m2×m3 is the transformed multi-modal nonlinear tensor; C (k) is a third-order tensor The kth slice along the third dimension, i.e., the time dimension; ×3 represents the tensor modular multiplication along the third dimension;

[0040] S44, using the multimodal nonlinear tensor nuclear norm defined in step S43, defining a spatiotemporal multimodal low-rank tensor optimization problem, and solving the optimization problem, that is, minimizing the multimodal nonlinear tensor nuclear norm defined in step S43, to restore the original low-rank tensor; specifically as follows:

[0041] ;

[0042] ;

[0043] ;

[0044] in, is the observation tensor; P Ω (·) is the projection operator onto the sampling space Ω; st Represents a constraint.

[0045] Preferably, the method further includes step S45, designing a PAM projection approximation algorithm to solve the optimization problem in step S44, and the solution result is a tensor of restored values. The specific solution process is as follows:

[0046] First, the optimization problem in step S44 is transformed into an equivalent augmented form:

[0047] ;

[0048] ;

[0049] ;

[0050] in, represents the Frobenius norm; α, β∈[0,1] are the scaling adjustment factors set; Z (k) is a third-order tensor kth slice along the third dimension; third-rank tensor is an auxiliary variable, ∈R m1×m2×m3 ;

[0051] Then, according to the PAM projection approximation algorithm, each parameter is iteratively optimized in the following way:

[0052] ;

[0053] Among them, ρ1, ρ2, ρ3, ρ4, ρ5 and ρ6 are scaling regularization factors; superscript h , h +1 indicates the number of iterations;

[0054] It stops when the error index is less than the set threshold or reaches the maximum number of iterations, and outputs a third-order tensor. x , which is the result of filling and recovery.

[0055] Preferably, the error index is as follows:

[0056] ;

[0057] Among them, ε is the set threshold.

[0058] Preferably, a third-order tensor x The solution is as follows:

[0059] ;

[0060] Among them, the third-order tensor ;Ω T Represents the complementary space of the sampling space Ω.

[0061] Preferably, a third-order tensor The solution is as follows:

[0062] ;

[0063] Where, Γ represents the singular value reduction operator;

[0064] Preferably, a third-order tensor The solution is as follows:

[0065] ;

[0066] Among them, the third-order tensor ;

[0067] They are three-order tensors The (i,j,k)th element in .

[0068] Preferably, the solution of the semi-positive definite transformation matrix G is as follows:

[0069] ;

[0070] Among them, U G 、V G It is obtained by the following singular value decomposition process:

[0071] ;

[0072] ;

[0073] Among them, X (3) , Y (3) They are three-order tensors The modular three-expansion matrix of G ∑ G V G is a matrix The singular value decomposition result of ;

[0074] The solution of the semi-positive definite transformation matrix H is as follows:

[0075] ;

[0076] Among them, UH 、V H It is obtained by the following singular value decomposition process:

[0077] ;

[0078] ;

[0079] Among them, J (1) 、F (1) They are three-order tensors The modular expansion matrix, U H ∑ H V H is a matrix The singular value decomposition result of ;

[0080] The solution of the semi-positive definite transformation matrix T is as follows:

[0081] ;

[0082] Among them, U T 、V T It is obtained by the following singular value decomposition process:

[0083] ;

[0084] ;

[0085] Among them, W (3) is a third-order tensor The modular three-expanded matrix, U T ∑ T V T is a matrix The singular value decomposition result of .

[0086] Preferably, in step S1, the spatiotemporal data of traffic flow is obtained through the satellite navigation vehicle terminal, and the spatiotemporal data of traffic flow is stored in a spatiotemporal data set, and the spatiotemporal data set of traffic flow is recorded as {Q d | d =1,…,V}, where Q d is the spatiotemporal data of the d-th vehicle. The traffic flow spatiotemporal data set contains the spatiotemporal data of V vehicles in total; Q d ={vID d , t d , x d ,y d , v d}, where vID d Indicates the ID number of the d-th vehicle; t d represents the sampling time of the spatiotemporal data of the dth vehicle; x d Indicates the longitude of the location of the dth vehicle, yd represents the latitude of the location of the dth vehicle; v d represents the vehicle speed of the d-th vehicle;

[0087] Step S2 is specifically as follows:

[0088] S21, define each vehicle in the traffic flow spatiotemporal data set as a point, forming a point set, denoted as {D d | d =1,…,V}, where D d represents the dth point in the point set, D d ={x d ,y d , t d};

[0089] S22, using longitude, latitude and time as coordinate axes, establish a three-dimensional rectangular coordinate system, where the longitude coordinate axis is the x-axis, the latitude coordinate axis is the y-axis, and the time coordinate axis is the t-axis. d Each point in |d =1,…,V} is distributed in a three-dimensional rectangular coordinate system to form a corresponding three-dimensional space region;

[0090] S23, dividing the plane region xoy formed by the longitude coordinate axis and the latitude coordinate axis into I×J grids, that is, dividing the plane region xoy into I rows and J columns;

[0091] S24, using I×J grids as a separation basis, pushing the grids along the time coordinate axis to equally divide the three-dimensional space region into I×J data blocks;

[0092] Step S3 is specifically as follows:

[0093] S31, for each data block, along the direction of the time coordinate axis, with Δt as the sampling time interval, each data block is equally divided into K sub-data blocks;

[0094] S32, the third-order space-time tensor is divided into the third-order tensor E1 of the number of vehicles changing with time and space and the third-order tensor E2 of the average speed of vehicles changing with time and space, E1, E2∈R n1×n2×n3 , where R represents a real number, n1, n2, and n3 represent the dimension sizes, i.e., the number of slices, in three different dimensions: longitude, latitude, and time; for the third-order tensors E1 and E2, each data point represents the number of vehicles and the average speed of vehicles in a sub-data block, respectively.

[0095] A readable storage medium stores a computer program thereon, which, when executed, implements the above-mentioned Beidou spatiotemporal traffic data recovery method based on transformation-induced low-rank tensor.

[0096] An electronic device comprises a processor, a memory and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the method for recovering Beidou spatiotemporal traffic data based on transformation-induced low-rank tensor is implemented.

[0097] The advantages of the present invention are:

[0098] (1) The present invention can not only more accurately and completely describe the changing patterns of traffic conditions, but also utilize the spatiotemporal characteristics of the collected traffic tensor to fill in the missing values ​​on a large scale and with high precision, thus providing a good basic support for traffic data mining, data analysis and other applications.

[0099] (2) This paper takes advantage of the spatiotemporal correlation of traffic tensors and the low-rank nonlinear coupling of multiple modes, and designs a multimodal low-rank optimization filling algorithm for third-order spatiotemporal tensors, aiming to fill and restore missing values ​​in third-order spatiotemporal tensor data collected in the real world, especially in spatiotemporal tensor data. Simulation results show that the algorithm surpasses the existing advanced tensor optimization algorithms at home and abroad in the recovery of traffic flow spatiotemporal data collected by Beidou, and has made effective progress in data recovery under high missing rates.

[0100] (3) The present invention utilizes the spatial aggregation and temporal fluidity of traffic flow spatiotemporal data to construct a spatiotemporal data model at the macro level, which helps to achieve accurate analysis of traffic flow at the micro level. The use of an accurate spatiotemporal data model can more accurately and completely characterize the intrinsic connections and mutual characteristics of parameters such as traffic density, traffic flow and traffic speed. BRIEF DESCRIPTION OF THE DRAWINGS

[0101] Figure 1 The present invention is a flowchart of a Beidou spatiotemporal traffic data recovery method based on transformation-induced low-rank tensor.

[0102] Figure 2 Schematic diagram of the spatiotemporal data model of the present invention.

[0103] Figure 3 The following is a comparison chart of data recovery effects of different algorithms. DETAILED DESCRIPTION

[0104] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0105] Depend on Figure 1As shown, a Beidou spatiotemporal traffic data recovery method based on transformation-induced low-rank tensor of the present invention comprises the following steps:

[0106] S1, obtain the spatiotemporal data of traffic flow and save it in the spatiotemporal data set of traffic flow; the spatiotemporal data includes the time of data sampling, vehicle position and vehicle speed. Among them, the vehicle position includes longitude and latitude.

[0107] The spatiotemporal data of traffic flow is obtained through the Beidou satellite navigation vehicle terminal, and the spatiotemporal data of traffic flow is stored in a spatiotemporal data set. The spatiotemporal data set of traffic flow is recorded as {Q d | d = 1,…,V}, where Q d is the spatiotemporal data of the d-th vehicle. The traffic flow spatiotemporal data set contains the spatiotemporal data of V vehicles in total.

[0108] Q d ={vID d , t d , x d ,y d , v d}, where vID d Indicates the ID number of the d-th vehicle; t d represents the sampling time of the spatiotemporal data of the dth vehicle; x d Indicates the longitude of the location of the dth vehicle, y d represents the latitude of the location of the nth vehicle, that is, (x d ,y d ) represents the vehicle position of the d-th vehicle; v d represents the vehicle speed of the d-th vehicle.

[0109] S2, such as Figure 2 As shown, a spatiotemporal data model is constructed, and the three-dimensional space area formed by the spatiotemporal data of traffic flow is divided into a set number of data blocks based on the spatiotemporal data model; the spatiotemporal data model is composed of three dimensions: longitude, latitude and time.

[0110] Step S2 is specifically as follows:

[0111] S21, each vehicle in the traffic flow spatiotemporal data set is defined as a point, then the original traffic flow spatiotemporal data set is transformed into a point set composed of the combination of each point, denoted as {D d | d =1,…,V}, where D d represents the dth point in the point set, D d ={x d ,y d , t d}.

[0112] S22, establish a three-dimensional rectangular coordinate system with longitude, latitude and time as coordinate axes, wherein the longitude coordinate axis is the x-axis, the latitude coordinate axis is the y-axis, and the time coordinate axis is the t-axis. d The points in | d =1,…,V} are distributed in the spatial rectangular coordinate system to form a corresponding three-dimensional space region.

[0113] S23, dividing the plane area xoy formed by the longitude coordinate axis (x-axis) and the latitude coordinate axis (y-axis) into I×J grids, that is, dividing the plane area xoy into I rows and J columns.

[0114] S24, using I×J grids as a separation basis, pushes the grids along the time coordinate axis (t axis) to divide the three-dimensional space area into I×J data blocks.

[0115] S3, construct a third-order spatiotemporal tensor based on the spatiotemporal data of traffic flow in each data block. The third-order spatiotemporal tensor includes: a third-order tensor E1 of the spatiotemporal variation of the number of vehicles, and a third-order tensor E2 of the spatiotemporal variation of the average speed of vehicles; the spatiotemporal variation includes the variation of the three dimensions of longitude, latitude and time.

[0116] Step S3 is specifically as follows:

[0117] S31, for each data block, along the direction of the time coordinate axis (t axis), with Δt as the sampling time interval, each data block is equally divided into K sub-data blocks; each sub-data block not only includes the sampling time, the longitude of the vehicle's location, the latitude of the vehicle's location, and the vehicle speed, but also includes the number of vehicles, that is, each sub-data block includes the start time and end time of sampling of the sub-data block, as well as multiple vehicles, and each vehicle has its corresponding vehicle speed.

[0118] S32, the third-order space-time tensor is divided into the third-order tensor E1 of the number of vehicles changing with time and space and the third-order tensor E2 of the average speed of vehicles changing with time and space, E1, E2∈R n1×n2×n3 , where R represents a real number, n1, n2, and n3 represent the dimension sizes, i.e., the number of slices, in three different dimensions, namely, longitude, latitude, and time; for the third-order tensors E1 and E2, each data point represents the number of vehicles and the average speed of vehicles in a sub-data block, respectively.

[0119] S33, in this embodiment, the corresponding traffic information is also calculated by the third-order space-time tensor, and based on the third-order tensor E1 or E2, a grid θ is selected from I×J grids, and the area of ​​the grid θ is s.

[0120] The traffic flow of grid θ within the sampling time interval Δt is L(θ, b-1, b):

[0121] ;

[0122] Where L(θ, b-1, b) represents the grid θ at sampling time t b-1 To sampling time t b The traffic flow in the time zone formed between θ and b; N(θ, b) is the element of the third-order tensor E1, which represents the grid θ at sampling time t b The number of vehicles at the time; N(θ, b-1) is the element of the third-order tensor E1, which represents the grid θ at the sampling time t b-1 The number of vehicles in the grid θ; [N(θ, b)-N(θ,b-1)] represents the number of vehicles in the grid θ at t b-1 To sampling time t b The number of vehicles in the time zone formed between; Δt is the sampling time t b-1 To sampling time t b The time difference between ×s represents the grid θ at sampling time t b-1 To sampling time t b The time area formed between them is equivalent to a sub-data block;

[0123] The traffic density of grid θ within the sampling time interval Δt is W(θ, b-1, b):

[0124] ;

[0125] Where W(θ, b-1, b) represents the grid θ at sampling time t b-1 To sampling time t b Traffic density within the time zone formed between;

[0126] The traffic flow speed and the average vehicle speed of the grid θ within the sampling time interval Δt are proportional, which is related to the complexity of the road section in the grid. If there is only one one-way road in the grid, the two must be linearly proportional. If there are viaducts or multiple road sections, it is a nonlinear proportional relationship.

[0127] In this embodiment, the spatiotemporal data set of traffic flow mainly comes from the vehicle position, vehicle speed and sampling time collected by the BDS / GPS terminal of a certain city's operating vehicles (online car-hailing), specifically one week of collected data. The spatiotemporal data of traffic flow are collected every 4 minutes, that is, Δt = 300 seconds, and the plane area xoy formed by the longitude coordinate axis and the latitude coordinate axis is divided into 40×40 or 100×100 grids to divide the three-dimensional space area. Among them, the area of ​​100×100 grids is converted into an area range of 347.733 meters × 223.49 meters in size, and the area of ​​40×40 grids is approximately 4 times the area of ​​100×100 grids.

[0128] S4, for the obtained third-order space-time tensor, fill and restore the missing data in the third-order space-time tensor. The specific method is: transform the third-order space-time tensor into a multimodal nonlinear tensor, calculate the multimodal nonlinear tensor nuclear norm, and restore the original third-order space-time tensor by minimizing the multimodal nonlinear tensor nuclear norm.

[0129] Step S4 specifically includes the following steps:

[0130] S41, the third-order tensor E1 or E2 is recorded as x ∈R n1×n2×n3 , a third-order tensor x It includes three different dimensions, namely longitude, latitude and time, where R represents a real number, n1, n2, and n3 represent the number of slices of the third-order tensor χ in the three different dimensions of longitude, latitude and time respectively; the third-order tensor has spatial mode (:,:,k), temporal mode X(i,j,:), spatiotemporal mode X(i,:,:) and X(:,j,:); where i represents the i-th slice in the longitude dimension; j represents the j-th slice in the latitude dimension, and k represents the k-th slice in the time dimension;

[0131] Define a generalized modular expansion operation Unfold( x , S):

[0132] ;

[0133] Among them, S is an ordered subset, S∈N, N is the tensor order set, N={1,2,3}, and the ordered subset S is used to select the expanded mode; the symbol × represents the Cartesian product, and the symbol ∏ represents the number product; X [S] Represents a third-order tensor x The expansion result after performing a generalized modular expansion operation along an ordered subset S. This operation aims to achieve the expansion of a tensor into a matrix along different one-dimensional axes or the rotation of different two-dimensional axis slices.

[0134] For a third-order tensor x Perform the above generalized modulus expansion operation, select S={1,3}, realize the modal rotation of the tensor, and obtain the expanded tensor X [(1,3)] ∈R n1×n3×n2 ; Select S = {3}, then this operation degenerates into a general tensor expansion, and the expanded matrix X is obtained [3] ∈R n3×n1n2 .

[0135] The inverse operation of the generalized modular expansion operation is:

[0136] ;

[0137] Fold S (X [S] ) represents the expansion result X [S] Perform the reverse operation and expand the result X [S] Restored to a third-order tensor x The significance of this inverse operation is to restore the expanded result (tensor or matrix) after the generalized modular expansion to the original tensor.

[0138] Another variant of the modular expansion operation is defined:

[0139] ;

[0140] in, Represents a third-order tensor x The result of performing a variant modular expansion along the ordered subset S. This operation is based on the generalized modular operation defined above, with the addition of vectorization of the leading dimension.

[0141] For a third-order tensor x Perform the above variant module expansion operation and select [S]={1,2} to obtain the expansion matrix ∈R n1n2×n3 .

[0142] S42, using the two modular expansion operations defined in step S41, define two modular multiplication operations;

[0143] The first is a two-dimensional modular multiplication operation, recorded as:

[0144] ;

[0145] , ;

[0146] Where M∈R m×np1 is a semi-positive definite transformation matrix; a third-order tensor x After performing a generalized modular expansion operation along (p1, p2), we get the three-dimensional expansion tensor X [(p1,p2)] ∈R np1×np2×np3 ; Represents the three-dimensional expanded tensor X [(p1,p2)] The ath slice along dimension p3, ∈R np1×np2 ; ∈R m×np2 ; Represents the first modular multiplication symbol; np1, np2, np3 represent the number of slices in dimensions p1, p2, p3.

[0147] The second is a variant of the two-dimensional modular multiplication operation, denoted as:

[0148] ;

[0149] in, ∈R m×np1np2 is a semi-positive definite transformation matrix; a third-order tensor x After performing the variant modulo expansion operation along (p1, p2), the two-dimensional expansion matrix is ​​obtained ∈R np1np2×np3 ; Represents the second modular multiplication symbol;

[0150] It means to restore the expansion result to a third-order tensor.

[0151] According to the two modular multiplication operations defined, appropriate semi-positive definite transformation matrices G, H, and T are selected and respectively combined with the two-dimensional expansion matrix obtained in step S41 , three-dimensional expansion tensor X [(1,3)] and the two-dimensional expansion matrix X [3] Perform modular multiplication; where G T G=I,H T H=I,T T T=I, I is the unit matrix.

[0152] S43, using the two modular multiplication operations defined in step S42, design a multimodal nonlinear tensor nuclear norm, denoted as:

[0153] ;

[0154] ;

[0155] in, represents the matrix nuclear norm, ψ(·) is the specified nonlinear activation function, ∈R m1×m2×m3 is the transformed multi-modal nonlinear tensor; C (k) is a third-order tensor The kth slice along the third dimension, i.e., the time dimension; ×3 represents the tensor modular multiplication along the third dimension, and this ×3 tensor modular multiplication is a common modular multiplication in the prior art.

[0156] S44, using the multimodal nonlinear tensor nuclear norm defined in step S43, defining a spatiotemporal multimodal low-rank tensor optimization problem, and solving the optimization problem, that is, minimizing the multimodal nonlinear tensor nuclear norm defined in step S43, to achieve the effect of restoring the original low-rank tensor; specifically as follows:

[0157] ;

[0158] ;

[0159] ;

[0160] in, is the observation tensor, i.e., the tensor containing the observation values; P Ω (·) is the projection operator onto the sampling space Ω; st Represents constraint conditions; G, H, and T are three appropriate semi-orthogonal transformation matrices selected and calculated in advance based on data characteristics.

[0161] S45, for the multimodal spatiotemporal tensor containing missing values ​​obtained in step S3, substitute it into the tensor optimization problem in step S44, design a PAM projection approximation algorithm and use MATLAB software to solve the algorithm, and the final solution result is the tensor of restored values. The specific solution process is as follows:

[0162] First, the optimization problem in step S44 is transformed into an equivalent augmented form using the semi-quadratic splitting method:

[0163] ;

[0164] ;

[0165] ;

[0166] in, represents the Frobenius norm, α, β∈[0,1] are the scaling adjustment factors, Z (k) is a third-order tensor The kth slice along the third dimension (time axis); a third-order tensor is an auxiliary variable, ∈R m1×m2×m3 ;

[0167] Then, according to the PAM projection approximation algorithm, each parameter is iteratively optimized in the following way:

[0168] ;

[0169] Among them, ρ1, ρ2, ρ3, ρ4, ρ5 and ρ6 are scaling regularization factors, which can be uniformly set to 0.1; superscript h , h +1 for the number of iterations.

[0170] Solve the above sub-problems in sequence, and the analytical process of each sub-problem from top to bottom is:

[0171] (1) Third-order tensor x The solution is as follows:

[0172] ;

[0173] Among them, the third-order tensor ;Ω T Represents the complementary space (complement set) of the sampling space Ω.

[0174] (2) Third-order tensor The solution is as follows:

[0175] ;

[0176] where Γ represents the singular value reduction operator, which is defined in the reference “A singular value thresholding algorithm for matrix completion”. Cai, J.-F., Candès, EJ, andShen, Z. SIAM Journal on optimization, 20(4):1946–1982, 2010.

[0177] (3) Third-order tensor The solution is as follows:

[0178] ;

[0179] Among them, the third-order tensor ;

[0180] They are three-order tensors The (i, j, k)th element in ; this subproblem can be decomposed into m1×m2×m3 one-dimensional quadratic nonlinear optimization problems, which can be solved by Newton's method.

[0181] (4) The solution of the semi-positive definite transformation matrix G is as follows:

[0182] ;

[0183] Among them, U G 、V G It is obtained by the following singular value decomposition process:

[0184] ;

[0185] ;

[0186] Among them, X (3) , Y (3) They are three-order tensors x , The modulo three expansion matrix of , that is, the expansion matrix along the third dimension; U G ∑G V G is a matrix The singular value decomposition result of .

[0187] (5) The solution of the semi-positive definite transformation matrix H is consistent with the solution of the semi-positive definite transformation matrix G, as shown below:

[0188] ;

[0189] Among them, U H 、V H It is obtained by the following singular value decomposition process:

[0190] ;

[0191] ;

[0192] Among them, J (1) 、F (1) They are three-order tensors The modular expansion matrix, U H ∑ H V H yes The result of the singular value decomposition of the matrix.

[0193] (6) The solution of the semi-positive definite transformation matrix T is consistent with the solution of the semi-positive definite transformation matrices G and H, as shown below:

[0194] ;

[0195] Among them, U T 、V T It is obtained by the following singular value decomposition process:

[0196] ;

[0197] ;

[0198] Among them, W (3) is a third-order tensor The modular three-expanded matrix, U T ∑ T V T is a matrix The singular value decomposition result of .

[0199] Set the maximum number of iterations to 100, and iterate the above algorithm steps until the error index is less than the set threshold or the maximum number of iterations is reached. Then output the third-order tensor , which is the result of filling and recovery.

[0200] The error metrics are as follows:

[0201] ;

[0202] Where ε=1×10 -5 The threshold is set.

[0203] As shown in Tables 1 and 2 below, based on the collected Beidou spatiotemporal traffic tensor data, the recovery accuracy of the recovery algorithm (MNT-TNN) of the present invention under most missing rates (MR) is significantly better than that of the existing tensor recovery algorithm, where the recovery accuracy is measured by the following two indicators:

[0204] ;

[0205] in, is the element in the recovered tensor, Y i,j,k are the elements of the actual complete tensor, MAPE is the average percentage error, RMSE is the root mean square error.

[0206] ;

[0207] ;

[0208] In Tables 1 and 2, MNT-TNN is a recovery algorithm based on the present invention, TNN is a method in the paper “Tensor Robust Principal Component Analysis with a New Tensor Nuclear Norm” proposed by C. Lu, J. Feng, Y.Chen, W. Liu, Z. Lin and S. Yan, UTNN is a method in the paper “Robust tensor completion using transformed tensorsingular value decomposition” proposed by G.-J. Song, MK Ng, and X.-J. Zhang, FTNN is a method in the paper “Framelet Representation of Tensor Nuclear Normfor Third-Order Tensor Completion” proposed by T.-X. Jiang, MK Ng, X.-L. Zhao and T.-Z. Huang, and NTTNN is a method in the paper “Nonlinear Transform Induced Tensor Nuclear Norm for Tensor Completion” proposed by B.-Z. Li, X.-L Zhao, T.-Y.Ji, X.-J. Zhang, and T.-Z. Huang. Completion”, HALRTC is the method in the paper “Tensor Completion for Estimating Missing Values ​​in Visual Data” proposed by Ji Liu, Przemyslaw Musialski, Peter Wonka, and Jieping Ye, and LRTC-TNN is the method in the paper “A nonconvex low-rank tensor completion model for spatiotemporal traffic data imputation” proposed by Xinyu Chen, Jinming Yang, and Lijun Sun.

[0209] In the present invention, the semi-positive definite transformation matrices G, H, and T are respectively the spatial modal transformation factor, the spatiotemporal modal transformation factor, and the temporal modal transformation factor.

[0210] According to the multi-mode spatiotemporal tensor optimization problem defined in step S44 and the third-order tensor E2 with missing values ​​obtained in step S3, the required semi-orthogonal transformation matrix is ​​first calculated: for example, the adjacency matrix of the spatiotemporal graph can be obtained through the geographical location information corresponding to the third-order tensor E2 (i.e., the longitude and latitude information of the sampling point) to obtain the Laplace matrix, and then the semi-positive definite transformation matrix is ​​obtained by SVD decomposition of the Laplace matrix, and the semi-positive definite transformation matrix is ​​used as the spatial modal transformation factor G. The spatiotemporal modal transformation factor H can be obtained by first calculating the approximate longitude (latitude) adjacency matrix by performing the vector inner product between any two rows of the adjacency matrix, and then the spatiotemporal modal transformation factor H is obtained in the same way. Finally, the temporal modal transformation factor T can directly use the unitary transformation matrix used in the discrete Fourier transform or other existing transform-induced tensor rank optimization methods. Substitute the third-order tensor E2 to be restored and the three transformation factors obtained into the problem of step S44, and the tensor recovery result can be iteratively solved through steps (1) to (6) in S45 and the termination condition. As Figure 3 As shown, it is a comparison chart of data recovery effects of different algorithms, where observed represents the tensor section to be recovered containing missing values, original represents the original data tensor, and MNT-TNN is the recovery tensor section based on the algorithm of the present invention.

[0211] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A Beidou spatiotemporal traffic data recovery method based on transform-induced low-rank tensor, It is characterized in that The following steps are involved: S1, obtaining spatiotemporal data of traffic flow, the spatiotemporal data including the time of data sampling, vehicle position and vehicle speed; wherein the vehicle position includes longitude and latitude; S2, constructing a spatiotemporal data model, dividing the three-dimensional space area formed by the spatiotemporal data of traffic flow into a set number of data blocks based on the spatiotemporal data model; the spatiotemporal data model is composed of three dimensions: longitude, latitude and time; S3, constructing a traffic tensor, i.e., a third-order space-time tensor, based on the space-time traffic flow data in each data block, including: a third-order tensor E1 of the space-time variation of the number of vehicles, and a third-order tensor E2 of the space-time variation of the average speed of vehicles; the space-time variation includes the variation of the three dimensions of longitude, latitude and time; S4, for the obtained third-order space-time tensor, fill and restore the missing data in the third-order space-time tensor, specifically, transform the third-order space-time tensor into a multimodal nonlinear tensor, calculate the multimodal nonlinear tensor nuclear norm, and restore the original third-order space-time tensor by minimizing the multimodal nonlinear tensor nuclear norm; Step S4 specifically includes the following steps: S41, denote the third-order tensor E1 or E2 as χ∈R n1×n2×n3 , where R represents a real number, n1, n2, and n3 represent the number of slices of the third-order tensor χ in the three different dimensions of longitude, latitude, and time respectively; the third-order tensor χ has spatial mode (:,:, k), temporal mode X(i, j,:), spatiotemporal mode X(i,:,:) and X(:, j,:), where i represents the i-th slice in the longitude dimension; j represents the j-th slice in the latitude dimension, and k represents the k-th slice in the time dimension; Define a generalized modular expansion operation Unfold(χ, S): Where S is an ordered subset, S∈N, N is the tensor order set, N={1,2,3}, and the ordered subset S is used to select the expanded mode; the symbol × represents the Cartesian product, and the symbol Π represents the number product; X [s] represents the expansion result of the third-order tensor χ after the generalized modular expansion operation along the ordered subset S; The inverse operation of the generalized modular expansion operation is: Folds(X [S] ) represents the expansion result X [S] Perform the reverse operation and expand the result X [S] Reduced to a third-order tensor χ; Define a variant of the modular expansion operation: in, represents the expansion result of the third-order tensor χ after the variant modular expansion operation along the ordered subset S; Select the ordered subset S = {1, 3}, and perform a generalized modular expansion operation on the third-order tensor χ to obtain the three-dimensional expansion tensor X [(1,3)] ∈R n1×n3×n2 ; Select the ordered subset S = {3}, perform a generalized modular expansion operation on the third-order tensor χ, and obtain the two-dimensional expansion matrix X [3] ∈R n3×n1n2 ; Select the ordered subset S = {1, 2}, and perform a variant modular expansion operation on the third-order tensor χ to obtain a two-dimensional expansion matrix S42, using the two modular expansion operations defined in step S41, define two modular multiplication operations; The first is a two-dimensional modular multiplication operation, recorded as: Where M is a semi-positive definite transformation matrix; the third-order tensor χ is expanded along (p1, p2) to obtain the three-dimensional expanded tensor X [(p1,p2)] ; Represents the three-dimensional expanded tensor X [(p1,p2)] The ath slice along the p3 dimension;★ (p1,p2) Represents the first modular multiplication symbol; np3 represents the number of slices in the p3 dimension; The second is a variant of the two-dimensional modular multiplication operation, denoted as: in, is a semi-positive definite transformation matrix; the third-order tensor χ is expanded along (p1, p2) by a variant module to obtain a two-dimensional expansion matrix Represents the second modular multiplication symbol; Indicates restoring the expansion result to a third-order tensor; According to the two modular multiplication operations defined, the semi-positive definite transformation matrices G, H, and T are selected to be respectively combined with the two-dimensional expansion matrix obtained in step S41 3D expanded tensor X [(1,3)] and the two-dimensional expansion matrix X [3] Perform modular multiplication; where G T G=I,H T H=I,T T T = I, I is the unit matrix; S43, using the two modular multiplications defined in step S42, design a multimodal nonlinear tensor nuclear norm, denoted as: Among them, ||·|| * represents the matrix nuclear norm, ψ(·) is the nonlinear activation function, is the transformed multi-modal nonlinear tensor; C (k) is a third-order tensor The kth slice along the third dimension, i.e., the time dimension; × 3 Represents the modular multiplication of tensors along the third dimension; S44, using the multimodal nonlinear tensor nuclear norm defined in step S43, defining a spatiotemporal multimodal low-rank tensor optimization problem, and solving the optimization problem, that is, minimizing the multimodal nonlinear tensor nuclear norm defined in step S43, to restore the original low-rank tensor; specifically as follows: in, is the observation tensor; PΩ(·) is the projection operator onto the sampling space Ω; st represents the constraint condition.

2. According to claim 1, a Beidou spatiotemporal traffic data recovery method based on transform-induced low-rank tensor, It is characterized in that The method further includes step S45, designing a PAM projection approximation algorithm to solve the optimization problem in step S44, and the solution result is a tensor of restored values. The specific solution process is as follows: First, the optimization problem in step S44 is transformed into an equivalent augmented form: in, represents the Frobenius norm; α, β∈[0,1] are the scaling adjustment factors set; Z (k) is a third-order tensor kth slice along the third dimension; third-rank tensor is an auxiliary variable, Then, according to the PAM projection approximation algorithm, each parameter is iteratively optimized in the following way: Among them, ρ1, ρ2, ρ 3 , 4 , 5 and ρ6 are scaling regularization factors; superscripts h and h+1 indicate the number of iterations; The process stops when the error index is less than the set threshold or reaches the maximum number of iterations, at which point the third-order tensor χ is output, which is the result of the filling and recovery.

3. According to claim 2, a Beidou spatiotemporal traffic data recovery method based on transform-induced low-rank tensor, It is characterized in that The error metrics are as follows: Among them, ε is the set threshold.

4. According to claim 2, a Beidou spatiotemporal traffic data recovery method based on transform-induced low-rank tensor, It is characterized in that The solution for the third-order tensor χ is as follows: Among them, the third-order tensor Ω T Represents the complementary space of the sampling space Ω.

5. According to claim 2, a Beidou spatiotemporal traffic data recovery method based on transform-induced low-rank tensor, It is characterized in that Third-order tensor The solution is as follows: Where, Γ represents the singular value reduction operator; Third-order tensor The solution is as follows: Among them, the third-order tensor C i,j,k , P i,j,k , Z i,j,k They are three-order tensors The (i, j, k)th element in .

6. According to claim 2, a Beidou spatiotemporal traffic data recovery method based on transform-induced low-rank tensor, It is characterized in that The solution of the semi-positive definite transformation matrix G is as follows: Among them, U G 、V G It is obtained by the following singular value decomposition process: Among them, X (3) , Y (3) They are three-order tensors The modular three expansion matrix of G V G is a matrix The singular value decomposition result of ; The solution of the semi-positive definite transformation matrix H is as follows: Among them, U H 、V H It is obtained by the following singular value decomposition process: Among them, J (1) 、F (1) They are three-order tensors The modular expansion matrix, U H ∑ H V H is a matrix The singular value decomposition result of ; The solution of the semi-positive definite transformation matrix T is as follows: Among them, U T 、V T It is obtained by the following singular value decomposition process: Among them, W (3) is a third-order tensor The modular three-expanded matrix, U T ∑ T V T is a matrix The singular value decomposition result of .

7. The Beidou spatiotemporal traffic data recovery method based on transform-induced low-rank tensor according to claim 1, It is characterized in that In step S1, the spatiotemporal data of traffic flow is obtained through the satellite navigation vehicle terminal, and the spatiotemporal data of traffic flow is stored in a spatiotemporal data set, which is recorded as {Q d |d=1...,V}, where Q d is the spatiotemporal data of the d-th vehicle. The traffic flow spatiotemporal data set contains the spatiotemporal data of V vehicles in total; Q d ={vID d , t d , x d ,y d , v d }, where vID d Indicates the ID number of the d-th vehicle; t d represents the sampling time of the spatiotemporal data of the dth vehicle; x d Indicates the longitude of the location of the dth vehicle, y d represents the latitude of the location of the dth vehicle; v d represents the vehicle speed of the d-th vehicle; Step S2 is specifically as follows: S21, define each vehicle in the traffic flow spatiotemporal data set as a point, forming a point set, denoted as {D d |d=1...,V}, where D d represents the dth point in the point set, D d ={x d ,y d , t d }; S22, using longitude, latitude and time as coordinate axes, establish a three-dimensional rectangular coordinate system, where the longitude coordinate axis is the x-axis, the latitude coordinate axis is the y-axis, and the time coordinate axis is the t-axis. d Each point in |d=1, ..., V} is distributed in a three-dimensional rectangular coordinate system to form a corresponding three-dimensional space region; S23, dividing the plane region xoy formed by the longitude coordinate axis and the latitude coordinate axis into I×J grids, that is, dividing the plane region xoy into I rows and J columns; S24, using I×J grids as a separation basis, pushing the grids along the time coordinate axis to equally divide the three-dimensional space region into I×J data blocks; Step S3 is specifically as follows: S31, for each data block, along the direction of the time coordinate axis, with Δt as the sampling time interval, each data block is equally divided into K sub-data blocks; S32, the third-order space-time tensor is divided into the third-order tensor E1 of the number of vehicles changing with time and space and the third-order tensor E2 of the average speed of vehicles changing with time and space, E1, E2∈R n1×n2xn3 , where R represents a real number, n1, n2, and n3 represent the dimension sizes, i.e., the number of slices, in three different dimensions: longitude, latitude, and time; for the third-order tensors E1 and E2, each data point represents the number of vehicles and the average speed of vehicles in a sub-data block, respectively.

8. A readable storage medium, It is characterized in that A computer program is stored thereon, and when the computer program is executed, the Beidou spatiotemporal traffic data recovery method based on transformation-induced low-rank tensor as described in any one of claims 1 to 7 is implemented.

9. An electronic device, It is characterized in that It includes a processor, a memory, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, it implements a Beidou space-time traffic data recovery method based on transformation-induced low-rank tensor as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Traffic data tensor filling method based on spatiotemporal constraints

    CN108804392A

  • Internet of Things data reconstruction method based on structured low-rank tensor completion

    CN115309814A

  • Traffic data restoration method based on parameter-free non-convex relaxation low-rank tensor completion

    CN115829424A

  • Beidou spatio-temporal data model based on third-order tensor and traffic flow analysis method

    CN117058886A

  • Traffic speed data filling method based on space-time regularization tensor decomposition

    CN117493865A