Charging duration prediction method and device based on double normal form fusion tensor CP decomposition
By constructing the charging duration tensor and optimizing the target loss function based on the dual-paradigm fusion tensor CP decomposition method, the problem of low accuracy in predicting the charging duration of electric vehicle charging piles is solved, and more efficient charging pile utilization is achieved.
Patent Information
- Application Number
- CN202410770270.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-10-15
Smart Images

Figure CN118779748A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of big data technology, and in particular to a charging time prediction method and device based on dual-paradigm fusion tensor CP decomposition. Background Art
[0002] With the rise of new energy technologies and the development of the manufacturing industry, more and more companies and organizations have begun to get involved in the electric vehicle market, providing a strong impetus for the development of electric vehicles. As a result, the number of electric vehicles has begun to explode, resulting in a series of problems with the mismatch of the number of infrastructure. Therefore, it is necessary to speed up the improvement of charging infrastructure, especially the construction of charging stations. According to the data we collected, we found that there is an imbalance in the utilization rate of electric vehicle charging piles, and some charging piles have excessive or overloaded loads, resulting in low efficiency. In order to better meet the charging needs of users, we solve the problem of charging imbalance by predicting the charging time of charging piles and improve the utilization efficiency of charging piles.
[0003] Currently, many studies have been conducted in industry and academia to design effective models to predict the charging time of unknown charging piles. Most of the existing models are designed based on matrix decomposition methods to predict the charging time of unknown charging piles through the known historical charging time of charging piles. However, the models designed based on matrix decomposition mainly focus on processing two-dimensional static data, while ignoring contextual information (such as time and location). In practical applications, contextual information plays a very important role in predicting the charging time of charging piles. Because the charging time of the charging pile changes over time, the prediction method based on matrix decomposition cannot effectively reflect the timeliness of the charging time, which will cause the problem of low prediction accuracy. Summary of the invention
[0004] In view of the problem of low accuracy in predicting the charging time of an electric vehicle charging pile in the prior art, the present invention proposes a charging time prediction method and device based on dual-paradigm fusion tensor CP decomposition.
[0005] In order to achieve the above object, the present invention provides the following technical solutions:
[0006] The charging time prediction method based on dual-paradigm fusion tensor CP decomposition specifically includes the following steps:
[0007] S1: Collect historical charging time information of charging piles;
[0008] S2: Construct a charging pile charging time tensor based on the stored historical charging pile charging time data;
[0009] S3: Construct a target loss function that is close to the prediction of the charging time of the charging pile according to the charging time tensor of the charging pile, and then perform iterative optimization;
[0010] S4: Calculate the predicted value of the charging time of the charging pile.
[0011] Preferably, in S1, the historical charging pile charging time information is stored in the form of a four-tuple, and the four-tuple representation is V = (d, h, u, t), d represents the duration of the charging pile order data request, h represents the daily hourly time period for charging of the charging pile, u represents the charging pile ID used by the user, and t represents the charging time of charging pile number u in the h-th hour period on the d-th day.
[0012] Preferably, the S2 includes:
[0013] S2-1: Divide the 4-tuple V = (d, h, u, t) of all historical charging pile charging time data into M slices according to the charging pile ID u, and select the 4-tuple V with the charging pile ID u = 1. (1) =(d,h,1,t), the data V (1) =(d,h,t) to slice and construct the slice matrix U (1) , the matrix U (1) The matrix U is I rows long and J columns wide. (1) The element U in (1) ij It represents the charging time of the No. 1 charging pile in the jth hour period on the i-th day, 1≤i≤I, 1≤j≤J; d is the day of the order date, and h is the hour period of the order date. By analogy, M slice matrices U can be constructed. (2) , U (3) , ..., U (M);
[0014] S2-2: Arrange the M slice matrices from front to back in three-dimensional space according to the ID of the charging pile from small to large, so as to construct the charging time tensor T∈R I×J×M , R represents the real number set, M represents the number of slice matrices, I represents the total number of days for charging the charging pile, and J represents the total time period for charging the charging pile.
[0015] Preferably, S3 includes:
[0016] S3-1: First, the process parameters involved in the prediction process of the charging time of the charging pile are initialized;
[0017] S3-2: Construct the target loss function for predicting the charging time of the charging pile according to the charging time tensor and process parameters of the charging pile;
[0018] S3-3: Use the stochastic gradient descent method to iterate the target loss function ε so that the value of the target loss function reaches the minimum value during the iteration process;
[0019] S3-4: Determine whether the target loss function of the iterative process reaches the termination condition of the iteration. If so, terminate the iteration; otherwise, continue iterative training.
[0020] Preferably, in S3-1, the process parameters include the charging time tensor T of the charging pile, the latent feature matrices D, H, U, the latent feature dimension R, the maximum number of training iterations L, the number of iterations control variable r during training, and the convergence termination threshold τ; wherein:
[0021] The latent feature dimension R determines the latent feature space dimension of the latent feature matrices D, H, and U;
[0022] The latent feature matrix D, H, and U is composed of the corresponding charging pile charging time data tensor T I×J×M The value of each dimension of and the latent feature dimension R are determined, that is, D is the latent feature matrix of I rows and R columns, H is the latent feature matrix of J rows and R columns, and U is the latent feature matrix of M rows and R columns;
[0023] The maximum number of training iterations L is a variable that controls the number of iterations during the training process;
[0024] The iteration round control variable r is initialized to 0;
[0025] The convergence termination threshold τ is a parameter used in the iterative process to determine whether the model has converged.
[0026] Preferably, in S3-2, the expression of the objective loss function ε is:
[0027]
[0028] In formulas (1) and (2), (i,j,m)∈∧ represents the subscript of the known elements contained in the tensor T; t ijm Represents the known entity in the charging time tensor T of the charging pile, namely, the charging time value of the mth charging pile in the jth hour period on the i-th day; represents the predicted value of charging time of the mth charging pile in the jth hour period on the i-th day; Δ ijm represents the difference between the charging time value of the mth charging pile in the jth hour period on the i-th day and the predicted value; R represents the number of columns of the three latent feature matrices; d ir represents the value of the i-th row and r-th column in the latent feature matrix D of the number of days; h jr represents the value of the jth row and rth column in the latent feature matrix H for a small period; u mr Represents the value of the mth row and rth column in the duration latent feature matrix P.
[0029] Preferably, in S3-3, the formula for training iteration is:
[0030]
[0031] In formula (3), d ir is the value of the rth row in the day hidden feature matrix D, η ir is d ir The learning rate; h jr is the value of the rth row in the temporal latent feature matrix H, η jr h jr The learning rate u mr is the value of the rth row in the latent feature matrix U; η mr for u mr The learning rate d ir 、h jr 、u mr The value of is continuously updated and optimized during the iterative process of training.
[0032] Preferably, in S4, the calculation formula for the predicted value of the charging time of the charging pile is:
[0033]
[0034] In formula (4), represents the predicted value of charging time of the mth charging pile in the jth hour period on the i-th day; d ir represents the value of the i-th row and r-th column in the latent feature matrix D of the number of days; h jr represents the value of the jth row and rth column in the latent feature matrix H for a small period; u mr Represents the value of the mth row and rth column in the duration latent feature matrix P; R represents the number of columns of the three latent feature matrices D, H, and U.
[0035] The present invention also provides a charging time prediction device based on dual-paradigm fusion tensor CP decomposition, comprising:
[0036] A data receiving module is used to receive historical charging time data of charging piles from a server;
[0037] A data storage module, used to store the historical charging pile charging time data sent from the data receiving module;
[0038] A prediction value storage module, used to store the prediction value of the charging time of the charging pile calculated by the prediction module;
[0039] A tensor construction module is used to construct a charging pile charging time tensor based on historical charging pile charging time data;
[0040] The prediction module is used to construct an objective function according to the characteristics of the charging time tensor of the charging pile and calculate the predicted value of the charging time of the output charging pile.
[0041] Preferably, the prediction module includes an initialization parameter unit, a training unit and a prediction value calculation unit;
[0042] An initialization parameter unit, used to initialize the process parameters involved in the training iteration process of predicting the charging time of the charging pile;
[0043] A training parameter unit, used for iterative training based on process parameters involved in the prediction process of charging time of the charging pile and an objective function constructed based on the tensor of charging time of the charging pile;
[0044] The prediction value calculation unit is used to calculate the prediction value of the charging time of the charging pile.
[0045] In summary, due to the adoption of the above technical solution, compared with the prior art, the present invention has at least the following beneficial effects:
[0046] The present invention provides a method and device for predicting the charging time of an electric vehicle charging pile based on dual-paradigm fusion CP tensor decomposition. By monitoring the charging status of existing charging piles, each charging pile is a node, and multiple charging piles are connected together to form a network. Since the status of the charging piles is always changing, this is a time-varying network, and a tensor can be constructed. Thus, the charging time prediction of the charging piles is carried out in accordance with the rules and with high accuracy through CP tensor decomposition, so as to solve the problem of predicting the charging time of dynamic charging piles containing time series information. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 Schematic diagram of a charging time prediction method based on dual-paradigm fusion tensor CP decomposition according to an exemplary embodiment of the present invention.
[0048] Figure 2 Schematic diagram of a charging duration prediction device based on dual-paradigm fusion tensor CP decomposition according to an exemplary embodiment of the present invention.
[0049] Figure 3 FIG. 4 is a schematic diagram of a prediction module structure according to an exemplary embodiment of the present invention. DETAILED DESCRIPTION
[0050] The present invention is further described in detail below in conjunction with the examples and specific implementation methods. However, this should not be understood as the scope of the above subject matter of the present invention being limited to the following examples, and all technologies realized based on the content of the present invention belong to the scope of the present invention.
[0051] In the description of the present invention, it is necessary to understand that the terms "longitudinal", "lateral", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention.
[0052] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as herein.
[0053] like Figure 1 As shown, the present invention provides a charging time prediction method based on dual-paradigm fusion tensor CP decomposition, which specifically includes the following steps:
[0054] S1: Collect historical charging time information of charging piles, and perform preprocessing and storage, as follows:
[0055] Receive the signal of predicted charging time of charging pile sent by the server, and collect historical charging time information of charging pile from the server, which includes the charging time, duration days, charging hour period and number of each charging pile.
[0056] Given a data set of duration days D, a data set of charging hours H, a data set of charging pile IDs U, and a data set of charging duration T. These data are cleaned, the numbers of similar charging piles are aggregated, and stored in the form of a quaternary, the quaternary representation is V = (d, h, u, t), where d represents the duration of the charging pile order data request, h represents the daily charging hour time period of the charging pile, u represents the charging pile ID used by the user, and t represents the charging duration of the charging pile number u in the h-th hour period on the d-th day.
[0057] S2: Construct a charging pile charging time tensor based on the stored historical charging pile charging time data.
[0058] S2-1: Divide the 4-tuple V = (d, h, u, t) of all historical charging pile charging time data into M slices according to the charging pile IDu, and construct the corresponding slice matrix, as follows:
[0059] For example, select the quaternion V with charging pile number u=1 (1)=(d,h,1,t), the data V (1) =(d,h,t) to slice and construct the slice matrix U (1) , the matrix U (1) The matrix U is I rows long and J columns wide. (1) The element U in (1) ij It represents the charging time of the No. 1 charging pile in the jth hour period on the i-th day, 1≤i≤I, 1≤j≤J; d is the day of the order date, h is the hour period of the order date, and so on. M slice matrices U can be constructed. (2) , U (3) , ..., U (M) .
[0060] S2-2: There are M slice matrices for M charging piles. These slice matrices are arranged from front to back in three-dimensional space according to the ID of the charging pile from small to large, so as to construct the charging time tensor T∈R I×J×M (R represents the set of real numbers).
[0061] In the actual charging process, there are some charging piles that have no charging demand in this time period, and the charging time has no negative value, so the charging time tensor T constructed in the above way is a non-negative high-dimensional sparse tensor. Given a data set ∧, it contains all the data in the tensor T, such as the number of days d for requesting charging pile order data, the hourly time period h for charging the charging pile every day, the charging pile ID used by the user, the charging time t, the number of slice matrices M, the total number of days for charging the charging pile I, and the total time period J for charging the charging pile.
[0062] S3: Construct a target loss function that is close to the prediction of the charging time of the charging pile based on the charging time tensor of the charging pile, and then perform iterative optimization to calculate the accurate prediction value of the charging time of the charging pile.
[0063] S3-1: First, the process parameters involved in the prediction of the charging time of the charging pile are initialized, as follows.
[0064] The parameters in the prediction process include the charging time tensor T of the charging pile, the latent feature matrices D, H, U, the latent feature dimension R, the maximum number of training iterations L, the iteration number control variable r during training, and the convergence termination threshold τ.
[0065] in:
[0066] The latent feature dimension R determines the dimension of the latent feature space of the latent feature matrices D, H, and U, and is generally initialized to a positive integer, such as 5, 10, or 20;
[0067] The latent feature matrix D, H, and U is composed of the corresponding charging pile charging time data tensor T I×J×MEach dimension value of and the latent feature dimension R are determined, that is, D is the latent feature matrix of I rows and R columns, H is the latent feature matrix of J rows and R columns, and U is the latent feature matrix of M rows and R columns, respectively expressed as D I×R , H J×R , U M×R Then, the values in the three latent feature matrices are initialized with small random positive numbers (e.g., 0.001-0.05);
[0068] The maximum number of training iterations L is a variable that controls the number of iterations during the training process. When the maximum number of training iterations is reached, the training will end immediately. It is generally initialized to a large positive integer, such as 1000;
[0069] The iteration round control variable r is initialized to 0;
[0070] The convergence termination threshold τ is a parameter used in the iterative process to determine whether the model has converged. When the difference between the evaluation indicators of adjacent rounds is less than or continuously less than the convergence termination threshold, the training is terminated. It is usually initialized with a very small positive number, such as 10. -5 ;
[0071] S3-2: Construct a target loss function for predicting the charging time of a charging pile based on the charging time tensor and process parameters to train and obtain the values of the latent feature matrices D, H, and U of the historical charging time of the charging pile.
[0072] In this embodiment, the expression of the objective loss function ε is:
[0073]
[0074] In formulas (1) and (2), (i,j,m)∈∧ represents the subscript of the known elements contained in the tensor T; t ijm Represents the known entity in the charging time tensor T of the charging pile, namely, the charging time value of the mth charging pile in the jth hour period on the i-th day; represents the predicted value of charging time of the mth charging pile in the jth hour period on the i-th day; Δ ijm represents the difference between the charging time value of the mth charging pile in the jth hour period on the i-th day and the predicted value; R represents the number of columns of the three latent feature matrices; d ir represents the value of the i-th row and r-th column in the latent feature matrix D of the number of days; h jr represents the value of the jth row and rth column in the latent feature matrix H for a small period; u mr Represents the value of the mth row and rth column in the duration latent feature matrix P; Constraints According to the example, each value in the three latent feature matrices D, H, and P must satisfy the non-negative condition during the iterative update process; Formula (1) combines the advantages of the L1 norm and the L2 norm to construct the optimization target. According to Δijm (The difference between the historical charging time value and the predicted value) determines the use of different norms to construct the optimization target;
[0075] S3-3: To ensure non-negativity in the update process and ensure model convergence, the stochastic gradient descent method is used to update the incomplete tensor so that the value of the target loss function ε reaches the minimum value during the iteration process. The following is the formula for training iteration:
[0076]
[0077] In formula (3), d ir is the value of the rth row in the day hidden feature matrix D, η ir is d ir The learning rate; h jr is the value of the rth row in the temporal latent feature matrix H, η jr h jr The learning rate u mr is the value of the rth row in the latent feature matrix U; η mr for u mr The learning rate d ir 、h jr 、u mr The value of is continuously updated and optimized during the iterative process of training.
[0078] S3-4: Determine whether the iterative process of parameter updating during training has reached the termination condition of the iteration. If so, terminate the iteration; otherwise, continue the iterative training.
[0079] Specifically, there are two situations to determine whether the training iteration process of ε on ∧ has reached the termination condition. The first situation is that the model converges, that is, after the end of this round of iteration, the difference between the ε value and the ε value of the previous round is calculated according to different evaluation indicators. When it is less than or continuously less than the convergence termination threshold τ, the iterative training is terminated. The second situation is that the value of r reaches the maximum number of training iterations. When each round of iterative training is completed, the value of the training iteration control variable r increases by 1 (the initial value of r is 0). When the value of r is equal to the maximum number of iterations L, the training is terminated.
[0080] S4: Calculate the predicted value of the charging time of the charging pile, specifically:
[0081] The predicted value in the tensor T is calculated by the latent feature matrices D, H, and U. Specifically, each element in it, i.e., charging pile u m In the d i Day and day h j Prediction of charging time of charging pile in hourly period By ir ,h jr ,u mrWhen the target loss function value ε reaches the minimum value after iterative training on the known data set ∧, the highest prediction value is calculated using the latent feature matrices D, H, and U that have been trained at this time. The formula is as follows:
[0082]
[0083] In formula (4), represents the predicted value of charging time of the mth charging pile in the jth hour period on the i-th day; d ir represents the value of the i-th row and r-th column in the latent feature matrix D of the number of days; h jr represents the value of the jth row and rth column in the latent feature matrix H for a small period; u mr Represents the value of the mth row and rth column in the duration latent feature matrix P; R represents the number of columns of the three latent feature matrices D, H, and U.
[0084] The present invention specifically provides a dual-paradigm fusion CP tensor decomposition method for predicting the charging time of an electric vehicle charging pile. By collecting historical charging time data of charging piles, it can accurately and regularly predict the charging time of unknown charging piles, thereby solving the problem of predicting the dynamic change of charging time of charging piles with time series information.
[0085] like Figure 2 As shown, the present invention designs a charging time prediction device based on dual-paradigm fusion tensor CP decomposition according to the above-mentioned prediction method, which includes five modules, each of which has its unique function, namely data receiving module, data storage module, prediction value storage module, tensor construction module and prediction module.
[0086] The specific structure is that the output end of the data receiving module is connected to the input end of the data storage module. When the data receiving module receives the historical data sent by the server, it sends the historical data to the storage module for storage. The output end of the data storage module is connected to the input end of the tensor construction module. The data storage module takes out the historical data stored in the form of quadruples and sends it to the tensor construction module for tensor construction. The output end of the tensor construction module is connected to the input end of the prediction module, and the constructed tensor is input into the prediction module for iterative training to predict the charging time of the unknown charging pile. The output end of the prediction module is connected to the input end of the prediction value data storage module, and the predicted charging time value is sent to the prediction value storage module for storage.
[0087] The data receiving module receives the receiving data signal sent by the server, and then receives the historical charging time data of the charging pile from the server;
[0088] The data storage module stores the historical charging time data of the charging pile sent from the data receiving module and stores it in the form of a four-tuple. The four-tuple representation is Q = (d, h, u, t), where d represents the number of days for requesting the charging pile order data, h represents the daily hourly time period for charging the charging pile, u represents the charging pile ID used by the user, and t represents the charging time of the charging pile number u in the h-th hour period on the d-th day.
[0089] The prediction value storage module is used to store the predicted value of the charging time of the charging pile calculated by the prediction module and store it in the form of a quadruple.
[0090] The tensor construction module constructs the charging time tensor of the charging pile according to the historical charging time data of the charging pile, slices each charging pile ID, and constructs the charging time tensor of the charging pile;
[0091] The prediction module constructs the objective function according to the characteristics of the charging time tensor of the charging pile, then iteratively optimizes the initial parameters, and finally calculates and outputs the predicted value of the charging time of the charging pile.
[0092] In this embodiment, Figure 3 As shown, the prediction module consists of three parts, namely, a parameter initialization unit, a training unit, and a prediction value calculation unit;
[0093] Initialize the parameter unit to initialize the process parameters involved in the training iteration process of predicting the charging time of the charging pile, such as each value in the latent feature matrix D, H, and P;
[0094] The training parameter unit combines the process parameters involved in the prediction process of the charging time of the charging pile with the objective function constructed according to the tensor characteristics of the charging time of the charging pile for iterative training, and ends the training when the termination condition is met;
[0095] A prediction value calculation unit calculates the prediction value of the charging time of the charging pile according to the optimal latent feature matrix after completing the training iteration process;
[0096] The device can be deployed in different server environments, and can be directly deployed in an existing server, or deployed in a separate server dedicated to predicting the charging time of a charging pile.
[0097] The present invention also provides a processor device, and a computer program stored in a memory requires the processor device to run, so that the electronic device can implement the steps of a dual-paradigm fusion tensor CP decomposition electric vehicle charging pile charging time prediction method described in the above example.
[0098] The present invention also provides a computer-readable storage medium, which stores a computer program that can be run by a processor. The computer program is run on the processor to implement the steps of a method for predicting the charging time of an electric vehicle charging pile by dual-paradigm fusion tensor CP decomposition in the above example.
[0099] A computer program includes a series of computer program codes, which may be in various forms, such as source code, object code, executable files or other intermediate forms. The types of computer-readable storage media may include at least the following: any electronic device entity or device capable of carrying computer program codes, recording media, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signals, telecommunication signals and software distribution media. For example, mobile hard disks, magnetic disks, optical disks and USB flash drives. In some jurisdictions, based on legislation and patent practices, computer-readable storage media do not include electric carrier signals and telecommunication signals.
[0100] Those skilled in the art will appreciate that the above-mentioned embodiments are specific examples for implementing the present invention, and in actual applications, various changes may be made thereto in form and detail without departing from the spirit and scope of the present invention.
Claims
1. A charging time prediction method based on dual-paradigm fusion tensor CP decomposition, characterized in that: The specific steps include: S1: Collect historical charging time information of charging piles; S2: Construct a charging pile charging time tensor based on the stored historical charging pile charging time data; S3: Construct a target loss function that is close to the prediction of the charging time of the charging pile according to the charging time tensor of the charging pile, and then perform iterative optimization; S4: Calculate the predicted value of the charging time of the charging pile.
2. The charging time prediction method based on dual-paradigm fusion tensor CP decomposition according to claim 1 is characterized in that: In S1, the historical charging time information of the charging pile is stored in the form of a four-tuple, and the four-tuple representation is V=(d, h, u, t), where d represents the number of days for requesting the charging pile order data, h represents the daily hourly time period for charging the charging pile, u represents the charging pile ID used by the user, and t represents the charging time of the charging pile number u in the h-th hour period on the d-th day.
3. The charging time prediction method based on dual-paradigm fusion tensor CP decomposition according to claim 1 is characterized in that: The S2 includes: S2-1: Divide the 4-tuple V = (d, h, u, t) of all historical charging pile charging time data into M slices according to the charging pile ID u, and select the 4-tuple V with the charging pile ID u = 1. (1) =(d,h,1,t), the data V (1) =(d,h,t) to slice and construct the slice matrix U (1) , the matrix U (1) The matrix U is I rows long and J columns wide. (1) The element U in (1) ij It represents the charging time of the No. 1 charging pile in the jth hour period on the i-th day, 1≤i≤I, 1≤j≤J; d is the day of the order date, and h is the hour period of the order date. By analogy, M slice matrices U can be constructed. (2) , U (3) , ..., U (M); S2-2: Arrange the M slice matrices from front to back in three-dimensional space according to the ID of the charging pile from small to large, so as to construct the charging time tensor T∈R I×J×M , R represents the real number set, M represents the number of slice matrices, I represents the total number of days for charging the charging pile, and J represents the total time period for charging the charging pile.
4. The charging time prediction method based on dual-paradigm fusion tensor CP decomposition according to claim 1 is characterized in that: The S3 includes: S3-1: First, the process parameters involved in the prediction process of the charging time of the charging pile are initialized; S3-2: Construct the target loss function for predicting the charging time of the charging pile according to the charging time tensor and process parameters of the charging pile; S3-3: Use the stochastic gradient descent method to iterate the target loss function ε so that the value of the target loss function reaches the minimum value during the iteration process; S3-4: Determine whether the target loss function of the iterative process reaches the termination condition of the iteration. If so, terminate the iteration; otherwise, continue iterative training.
5. The charging time prediction method based on dual-paradigm fusion tensor CP decomposition as claimed in claim 4 is characterized in that: In S3-1, the process parameters include the charging time tensor T of the charging pile, the latent feature matrices D, H, U, the latent feature dimension R, the maximum number of training iterations L, the number of iterations control variable r during training, and the convergence termination threshold τ; wherein: The latent feature dimension R determines the latent feature space dimension of the latent feature matrices D, H, and U; The latent feature matrix D, H, and U is composed of the corresponding charging pile charging time data tensor T I×J×M The value of each dimension of and the latent feature dimension R are determined, that is, D is the latent feature matrix of I rows and R columns, H is the latent feature matrix of J rows and R columns, and U is the latent feature matrix of M rows and R columns; The maximum number of training iterations L is a variable that controls the number of iterations during the training process; The iteration round control variable r is initialized to 0; The convergence termination threshold τ is a parameter used in the iterative process to determine whether the model has converged.
6. The charging time prediction method based on dual-paradigm fusion tensor CP decomposition as claimed in claim 4, characterized in that: In S3-2, the expression of the objective loss function ε is: In formulas (1) and (2), (i,j,m)∈∧ represents the subscript of the known elements contained in the tensor T; t ijm Represents the known entity in the charging time tensor T of the charging pile, namely, the charging time value of the mth charging pile in the jth hour period on the i-th day; represents the predicted value of charging time of the mth charging pile in the jth hour period on the i-th day; Δ ijm represents the difference between the charging time value of the mth charging pile in the jth hour period on the i-th day and the predicted value; R represents the number of columns of the three latent feature matrices; d ir represents the value of the i-th row and r-th column in the latent feature matrix D of the number of days; h jr represents the value of the jth row and rth column in the latent feature matrix H for a small period; u mr Represents the value of the mth row and rth column in the duration latent feature matrix P.
7. The charging time prediction method based on dual-paradigm fusion tensor CP decomposition as claimed in claim 4 is characterized in that: In S3-3, the formula for training iteration is: In formula (3), d ir is the value of the rth row in the day hidden feature matrix D, η ir is d ir The learning rate; h jr is the value of the rth row in the temporal latent feature matrix H, η jr h jr The learning rate u mr is the value of the rth row in the latent feature matrix U; η mr for u mr The learning rate d ir 、h jr 、u mr The value of is continuously updated and optimized during the iterative process of training.
8. The charging time prediction method based on dual-paradigm fusion tensor CP decomposition as claimed in claim 4, characterized in that: In S4, the calculation formula for the predicted value of the charging time of the charging pile is: In formula (4), represents the predicted value of charging time of the mth charging pile in the jth hour period on the i-th day; d ir represents the value of the i-th row and r-th column in the latent feature matrix D of the number of days; h jr represents the value of the jth row and rth column in the latent feature matrix H for a small period; u mr Represents the value of the mth row and rth column in the duration latent feature matrix P; R represents the number of columns of the three latent feature matrices D, H, and U.
9. A charging time prediction device based on dual paradigm fusion tensor CP decomposition based on the method according to any one of claims 1 to 8, characterized in that: include: A data receiving module is used to receive historical charging time data of charging piles from a server; A data storage module, used to store the historical charging pile charging time data sent from the data receiving module; A prediction value storage module, used to store the prediction value of the charging time of the charging pile calculated by the prediction module; A tensor construction module is used to construct a charging pile charging time tensor based on historical charging pile charging time data; The prediction module is used to construct an objective function according to the characteristics of the charging time tensor of the charging pile and calculate the predicted value of the charging time of the output charging pile.
10. The charging time prediction device based on dual-paradigm fusion tensor CP decomposition according to claim 9, characterized in that: The prediction module includes an initialization parameter unit, a training unit and a prediction value calculation unit; An initialization parameter unit, used to initialize the process parameters involved in the training iteration process of predicting the charging time of the charging pile; A training parameter unit, used for iterative training based on process parameters involved in the prediction process of charging time of the charging pile and an objective function constructed based on the tensor of charging time of the charging pile; The prediction value calculation unit is used to calculate the prediction value of the charging time of the charging pile.
Citation Information
Patent Citations
Average vehicle speed prediction method and device based on tensor robust decomposition, and storage medium
CN116913104A
Method and device for predicting charging duration of electric vehicle charging pile
CN116957167A
Optical storage power distribution method of comprehensive energy supply station
CN117748609A
Load prediction model training method and apparatus, storage medium, and device
WO2022077693A1
