A highway data completion method based on low-rank prior
By extending highway data into fourth-order tensors and using weighted gamma-norm to construct a new rank minimization model, the problem of difficulty in mining time scale correlation and large deviation of non-convex norm is solved in existing models. Achieve higher data completion accuracy.
Patent Information
- Application Number
- CN202411010420.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-26
- Publication Date
- 2024-11-29
- Estimated Expiration
- 2044-07-26
AI Technical Summary
The existing rank minimization model is difficult to mine the correlation on the time scale of "week" when completing highway data, and the non-convex norm used is biased greatly when approximate rank, so it is impossible to accurately characterize the highway data. low rank.
Extend highway data into a fourth-order tensor form of 'sensor × time series in day × day in week × week in week' and build a new rank using weighted gamma-norm as a non-convex proxy for tensor rank Minimize model.
This model can more comprehensively capture the multi-dimensional characteristics of traffic data, achieve more compact rank approximation, thereby more efficiently using low-rank prior information and improving the accuracy of data completion.
Smart Images

Figure CN118535564B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of traffic data completion, and in particular relates to a highway data completion method based on low-rank prior. Background Art
[0002] As an important transportation infrastructure, highways play an important role in promoting regional economic integration, improving logistics efficiency, and improving people's quality of life. With the development of technologies such as sensors, the Internet of Things, and databases, highway systems collect and store massive amounts of data. Data integrity is a key factor in ensuring the intelligent, networked, and smart development of highways. However, in real life, data missing is very common due to various reasons such as sensor damage, communication delays, and network failures. How to accurately and efficiently complete missing data is an important and challenging task.
[0003] In recent years, low-rank tensor completion (LRTC) has attracted wide attention in the field of traffic data completion. Its principle is to use the low-rank prior information of traffic data to complete the tensor according to the known data, and then restore the original data. As a typical representative of LRTC, the rank minimization model realizes data completion by minimizing the rank of the tensor. It can reduce the noise and error that may occur in the completion process while retaining the original data structure. However, this type of model still has the following problems when used for traffic data completion: First, the existing rank minimization model usually models traffic data as a third-order tensor form of "sensor × time series in a day × day", and the third-order tensor may not be able to fully express the difference in traffic flow between weekdays and non-workdays, especially the periodic changes across weeks. Second, in order to achieve a compact rank approximation, the existing rank minimization model usually uses the truncated nuclear norm, Schatten-p norm, etc. as non-convex proxies for rank, but when the singular value is large, the deviation from the true rank is still obvious. The above problems may lead to insufficient accuracy of traffic data completion.
[0004] By analyzing the problems existing in the prior art, the present invention mainly solves the following technical problems: First, the third-order tensor form of "sensor × time series in a day × day" is difficult to mine the correlation on the time scale of "week". Second, the existing non-convex norm has a large deviation when approximating the rank, and cannot accurately characterize the low-rank nature of highway data, making it difficult to achieve effective use of low-rank prior information. Summary of the invention
[0005] In order to solve the above problems, this paper proposes a highway data completion method based on low-rank prior, which expands the highway data into a fourth-order tensor form of "sensor × time series in a day × day in a week × week", which can more comprehensively capture the multi-dimensional characteristics of traffic data. On this basis, a novel weighted gamma- The norm, as a non-convex proxy for tensor rank, can achieve a more compact rank approximation, thereby more effectively utilizing low-rank prior information.
[0006] The technical solution of the present invention is as follows:
[0007] A highway data completion method based on low-rank prior includes the following steps:
[0008] Step 1: Obtain the highway data with missing items and normalize them, and then represent the normalized data as a fourth-order tensor of “sensor × time series in a day × day in a week × week”;
[0009] Step 2: Treat the highway data completion problem as a low-rank tensor completion problem, build a rank minimization model and use the weighted gamma- Norm for model transformation;
[0010] Step 3: Introduce auxiliary variables and additional constraints to construct the objective function;
[0011] Step 4: Use the alternating direction multiplier method to solve the objective function and obtain the final highway completion data.
[0012] Furthermore, in step 2, the highway data completion problem is expressed as the following constrained rank minimization model:
[0013] (1);
[0014] (1) In the formula, Indicates finding the minimum value; is the normalized partially observable tensor with missing values, is the completion tensor, is the set of real numbers, , , , They correspond to the sizes of different dimensions of the tensor respectively; Indicates rank; Indicates constraints; yes The set of observable data points in ; yes Orthogonal projection on ; Definition yes The complement of Projection on, the two operators satisfy ;
[0015] In formula (1), the weighted gamma- The norm is used as a non-convex proxy for the tensor rank, and formula (1) is transformed into:
[0016] (2);
[0017] (2) In the formula, is the weight coefficient; yes Model- Expand the matrix; It's Gamma- norm; The calculation formula is: , and They are The number of rows and columns, yes No. singular values, is the singular value index, , is a non-negative parameter, .
[0018] Furthermore, in step 3, an auxiliary variable is introduced and a set of additional constraints , formula (2) is transformed into the following objective function:
[0019] (3);
[0020] (3) In the formula, is an auxiliary variable Model- Expand the matrix;
[0021] The augmented Lagrangian function corresponding to formula (3) is expressed as:
[0022] (4);
[0023] (4) In the formula, , , , All are auxiliary variables; according to The value of corresponds to different Lagrange multipliers , , , ; is the penalty parameter; Represents the inner product of two tensors; yes -The square of the norm.
[0024] Furthermore, in step 4, the solution process is:
[0025] Step 4.1: Input normalized partial observable tensor with missing values , observable index set , weight coefficient , , , , penalty parameter , non-negative parameter , , termination condition , update rate , number of iterations , maximum number of iterations ;
[0026] Step 4.2: Initialize the parameters to get the initial value of the completed tensor , Auxiliary variable initial value , , , and the initial value of the Lagrange multiplier , , , ;
[0027] Step 4.3, iteratively update each variable using the alternating direction multiplier method;
[0028] Step 4.4, determine whether the iteration stop condition is met, and the iteration stops when the iteration stop condition is met;
[0029] Step 4.5: After the iteration stops, output the final completion tensor, denormalize the final completion tensor, and obtain the final highway completion data.
[0030] Furthermore, in step 4.3, the updating process is:
[0031] Step 4.3.1. Update and complete the tensor , the formula is as follows:
[0032] (5);
[0033] (5) In the formula, It is The completed tensor after iterations; It is Auxiliary variables after iterations; It is Lagrange multiplier after iterations;
[0034] Step 4.3.2. Update auxiliary variables , the formula is as follows:
[0035] (6);
[0036] (6) In the formula, It is The auxiliary tensor after iterations; Indicates that the target matrix is modulo- To perform the folding operation, is the dimension of the tensor, ; represents a diagonal matrix; and The matrix The two orthogonal matrices obtained after singular value decomposition; The matrix The diagonal matrix obtained after singular value decomposition is , Indicates that the target tensor is transformed along the modulus - Perform expansion operation; It means to find the maximum value; Represents the matrix Gamma- Norm on singular values Find the gradient until convergence; is the transpose symbol; It is After iterations Model- Expand the matrix; It is After iterations Model- Expand the matrix;
[0037] Step 4.3.3: Update the Lagrange multiplier , the formula is as follows:
[0038] (7);
[0039] (7) In the formula, and They are Second and Lagrange multiplier after iterations;
[0040] Step 4.3.4: Update penalty parameters , the formula is as follows:
[0041] (8);
[0042] (8) In the formula, is the updated penalty parameter; is the update rate;
[0043] Step 4.3.5: Update the number of iterations .
[0044] Furthermore, in step 4.4, the iteration stopping condition is: when or The iteration is terminated when It is The completed tensor after iterations; express -norm.
[0045] The beneficial technical effects of the present invention are as follows: In view of the problem that the existing methods in this field do not fully utilize the low-rank prior information of highway data, the present invention proposes a novel rank minimization model. The model models the traffic data in the form of a fourth-order tensor and uses a weighted gamma- The norm is used as a non-convex proxy for the tensor rank. Compared with existing models in this field, our model has higher completion accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] Figure 1 This is a flow chart of the highway data completion method based on low-rank prior of the present invention.
[0047] Figure 2 It is a line graph of the root mean square error of each model in the random missing scenario in the experiment of the present invention.
[0048] Figure 3 It is a line graph of the root mean square error of each model in the space missing scenario in the experiment of the present invention.
[0049] Figure 4 It is a line graph of the root mean square error of each model in the time missing scenario in the experiment of the present invention. DETAILED DESCRIPTION
[0050] The present invention is further described in detail below with reference to the accompanying drawings and specific embodiments:
[0051] like Figure 1 As shown in FIG. 1 , a highway data completion method based on low-rank prior includes the following steps:
[0052] Step 1: Obtain highway data with missing items and use the Min-Max data normalization method to normalize the data. The formula of the Min-Max data normalization method is expressed as ,in, is the original data point of the highway, and are the maximum and minimum values of all data points in the highway dataset, are the normalized highway data points; the normalized highway data is then represented as a fourth-order tensor form of “sensor × time series in a day × day in a week × week”.
[0053] Step 2: Treat the highway data completion problem as a low-rank tensor completion problem, build a rank minimization model and use the weighted gamma- Norm for model transformation;
[0054] The highway data completion problem can be expressed as the following constrained rank minimization model:
[0055] (1);
[0056] (1) In the formula, Indicates finding the minimum value; is the normalized partially observable tensor with missing values, is the completion tensor, , , , They correspond to the sizes of the four dimensions of the tensor respectively; is the rank of the tensor; Indicates constraints; yes The observable set of indices of known elements in ; yes Orthogonal projection on ; Definition yes The complement of Projection on, the two operators satisfy ; Observable data points in The value is equal to the value at the same index The value of , , , The indices corresponding to different dimensions of the tensor;
[0057] In formula (1), the weighted gamma- The norm is used as a non-convex proxy for the tensor rank, and formula (1) is transformed into:
[0058] (2);
[0059] (2) In the formula, is the weight coefficient; yes Model- Expand the matrix; It's Gamma- norm; The calculation formula is: , and They are The number of rows and columns, yes No. singular values, is the singular value index, , are different non-negative parameters, Step 3: Introduce auxiliary variables and additional constraints to construct the objective function;
[0060] Considering that there is non-negligible interdependence between the variables in the objective function due to shared terms, in order to optimize each variable independently, an auxiliary variable is introduced and a set of additional constraints , formula (2) is transformed into the following objective function:
[0061] (3);
[0062] (3) In the formula, Auxiliary variables Model- Expand the matrix to replace .
[0063] The augmented Lagrangian function corresponding to formula (3) is expressed as:
[0064] (4);
[0065] (4) In the formula, , , , All are auxiliary variables; according to The value of corresponds to different Lagrange multipliers , , , ; is the penalty parameter; Represents the inner product of two tensors; yes -The square of the norm.
[0066] Step 4: Use the alternating direction multiplier method (ADMM) to solve the objective function and obtain the final highway completion data.
[0067] The core principle of the alternating direction multiplier method (ADMM) is to decompose the original problem into multiple sub-problems and solve these sub-problems alternately to finally obtain the solution to the original problem. Based on the ADMM framework, the minimization of formula (5) can be transformed into iterative solutions to multiple sub-problems respectively. The specific solution process is:
[0068] Step 4.1: Input normalized partial observable tensor with missing values , observable index set , weight coefficient , , , , penalty parameter , non-negative parameter , , termination condition , update rate , number of iterations , maximum number of iterations ;
[0069] Step 4.2: Initialize the parameters to get the initial value of the completed tensor , Auxiliary variable initial value , , , and the initial value of the Lagrange multiplier , , , ;
[0070] Step 4.3, use the alternating direction multiplier method to iteratively update each variable; the updating process is:
[0071] Step 4.3.1. Update and complete the tensor , the formula is as follows:
[0072] (5);
[0073] (5) In the formula, It is The completed tensor after iterations; It is Auxiliary variables after iterations; It is Lagrange multiplier after iterations;
[0074] Step 4.3.2. Update auxiliary variables , the formula is as follows:
[0075] (6);
[0076] (6) In the formula, It is The auxiliary tensor after iterations; Indicates that the target matrix is modulo- To perform the folding operation, is the dimension of the tensor, ; Represents the function of constructing a diagonal matrix; and The matrix The two orthogonal matrices obtained after singular value decomposition; The matrix The diagonal matrix obtained after singular value decomposition is , Indicates that the target tensor is transformed along the modulus - Perform expansion operation; It means to find the maximum value; Represents the matrix Gamma- Norm on singular values Find the gradient until convergence; is the transpose symbol; It is After iterations Model- Expand the matrix; It is After iterations Model- Expand the matrix;
[0077] Step 4.3.3: Update the Lagrange multiplier , the formula is as follows:
[0078] (7);
[0079] (7) In the formula, and They are Second and Lagrange multiplier after iterations;
[0080] Step 4.3.4: Update penalty parameters , the formula is as follows:
[0081] (8);
[0082] (8) In the formula, is the updated penalty parameter; is the update rate;
[0083] Step 4.3.5: Update the number of iterations .
[0084] Step 4.4, determine whether the iteration stop condition is met, and the iteration stops when the iteration stop condition is met;
[0085] The iteration stopping condition is: or The iteration is terminated when is the termination condition, is the maximum number of iterations; for -norm.
[0086] Step 4.5: After the iteration stops, the final completion tensor is output, and the final completion tensor is denormalized to obtain the final highway completion data;
[0087] The anti-normalization formula is expressed as ,in are the denormalized highway data points.
[0088] In order to prove the feasibility and superiority of the present invention, the following comparative experiments are given. The data set selects the PEMS03 highway traffic data set. The missing scenarios include random missing, spatial missing and temporal missing. The missing rates include 20%, 40% and 60%. The comparative models select HaLRTC (rank minimization model based on nuclear norm), LRTC-TNN (rank minimization model based on truncated nuclear norm) and SpBCD (rank minimization model based on Schatten-p norm). The evaluation index selects the root mean square error. The comparison results are shown in Figure 2. Figure 2-Figure 4 shown. Figure 2-Figure 4 The line graphs are respectively the root mean square errors of the models in the random missing, spatial missing and temporal missing scenarios in the experiment of the present invention. It can be clearly seen that the root mean square error of the present invention achieves the minimum value in all scenarios and all missing rates, indicating that the present invention can achieve higher completion accuracy.
[0089] Of course, the above description is not a limitation of the present invention, and the present invention is not limited to the above examples. Changes, modifications, additions or substitutions made by technicians in this technical field within the essential scope of the present invention should also fall within the protection scope of the present invention.
Claims
1. A highway data completion method based on low-rank prior, characterized in that: The following steps are included: Step 1: Obtain the highway data with missing items and normalize them, and then represent the normalized data as a fourth-order tensor of "sensor × time series in a day × day in a week × week"; Step 2: Consider the highway data completion problem as a low-rank tensor completion problem, construct a rank minimization model, and perform model conversion based on the weighted gamma-p norm; Step 3: Introduce auxiliary variables and additional constraints to construct the objective function; Step 4: Use the alternating direction multiplier method to solve the objective function and obtain the final highway completion data; In step 2, the highway data completion problem is expressed as the following constrained rank minimization model: (1) In the formula, min means to find the minimum value; is the normalized partially observable tensor with missing values, is the completion tensor, is a set of real numbers, N1, N2, N3, N4 correspond to the sizes of different dimensions of the tensor respectively; rank(·) represents the rank; st represents the constraint condition; Ω is The set of observable data points in ; is the orthogonal projection on Ω; definition is the complement of Ω c Projection on, the two operators satisfy In formula (1), the weighted gamma-p norm is used as a non-convex proxy for the tensor rank, and formula (1) is transformed into: (2) In the formula, a k is the weight coefficient; X (k) yes The modulo-k expansion matrix of ; is the gamma-p norm; The calculation formula is: a and b are X (k) The number of rows and columns, σ i (X( k )) is X( k ), where i is the singular value index, γ and p are non-negative parameters, p∈(0,1); In step 3, an auxiliary variable is introduced and a set of additional constraints Formula (2) is transformed into the following objective function: (3) In the formula, is an auxiliary variable The modulo-k expansion matrix of ; The augmented Lagrangian function corresponding to formula (3) is expressed as: (4) In the formula, All are auxiliary variables; According to the value of k, different Lagrange multipliers are obtained. β is the penalty parameter; <,> represents the inner product of two tensors; is the square of the F-norm; In step 4, the solution process is: Step 4.1: Input normalized partial observable tensor with missing values Observable index set Ω, weight coefficients α1, α2, α3, α4, penalty parameter β, non-negative parameters γ, p, termination condition ε, update rate ρ, number of iterations l, maximum number of iterations l max ; Step 4.2: Initialize the parameters to get the initial value of the completed tensor Auxiliary variable initial value and the initial value of the Lagrange multiplier Step 4.3, iteratively update each variable using the alternating direction multiplier method; Step 4.4, determine whether the iteration stop condition is met, and the iteration stops when the iteration stop condition is met; Step 4.5: After the iteration stops, the final completion tensor is output, and the final completion tensor is denormalized to obtain the final highway completion data; In step 4.3, the updating process is: Step 4.3.
1. Update and complete the tensor The formula is as follows: (5) In the formula, is the completed tensor after the l+1th iteration; is the auxiliary variable after the lth iteration; is the Lagrange multiplier after the lth iteration; Step 4.3.
2. Update auxiliary variables The formula is as follows: (6) In the formula, is the auxiliary tensor after the l+1th iteration; flod k (·, dim, k) means folding the target matrix along the modulus -k, dim is the dimension of the tensor, k = 1, 2, 3, 4; diag(·) means constructing a diagonal matrix function; U and V are matrices Two orthogonal matrices are obtained after singular value decomposition; S is the matrix The diagonal matrix obtained after singular value decomposition is unflod k (·, dim, k) means expanding the target tensor along the modulus -k; max means finding the maximum value; grad(σ) means The gamma-p norm of is used to find the gradient of the singular value σ until convergence; T is the transposed sign; is after the l+1th iteration The modulo-k expansion matrix of ; After the lth iteration The modulo-k expansion matrix of ; Step 4.3.3: Update the Lagrange multiplier The formula is as follows: (7) In the formula, and are the Lagrange multipliers after the l+1th and lth iterations respectively; Step 4.3.4, update the penalty parameter β, the formula is as follows: (8) In the formula, is the updated penalty parameter; ρ is the update rate; Step 4.3.5, update the number of iterations l = l + 1; In step 4.4, the iteration stopping condition is: or l≥l max The iteration is terminated when is the completed tensor after the lth iteration; ‖·‖ F represents the F-norm.
Citation Information
Patent Citations
Traffic data restoration method based on non-convex low-rank tensor representation
CN115828039A
Industrial time series data completion method based on tensor weighted gamma norm
CN117056327A
