A method and system for online prediction of charging power of electric vehicle charging station
Through the deep kernel adaptive filtering model and online learning technology, the problem of time-varying characteristics and dynamic changes in the power prediction of electric vehicle charging stations is solved, the prediction accuracy and efficiency are improved, and the nonlinear and time-varying characteristics of electric vehicle charging stations are adapted.
Patent Information
- Application Number
- CN202311504490.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-13
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2043-11-13
AI Technical Summary
Existing electric vehicle charging station power prediction models cannot effectively adapt to the time-varying characteristics and dynamic changes of charging station power, resulting in low prediction accuracy.
Using a deep kernel adaptive filtering model, combined with a deep recurrent neural network and kernel adaptive filtering algorithm, it adapts to the nonlinear and time-varying characteristics of charging power through online learning and real-time updating of model parameters, and uses Bayesian recursive updating and online spatiotemporal learning. Method optimization parameters.
It improves the accuracy and efficiency of charging power prediction of electric vehicle charging stations, can effectively capture the nonlinear and time-varying characteristics of electric vehicle charging data, adapt to the dynamic changes of electric vehicle charging stations, and reduces the computational complexity and timeliness of model training. .
Smart Images

Figure CN117584792B
Abstract
Description
Technical Field
[0001] The present invention belongs to the field of power prediction of electric vehicle charging stations, and more specifically, relates to an online prediction method and system for charging power of electric vehicle charging stations. Background Art
[0002] Electric vehicles are well known for reducing fossil energy consumption and decarbonizing modern society. Many countries have set ambitious vehicle electrification targets, and global sales of electric vehicles have also grown significantly in recent years. According to statistics from the International Energy Agency, global electric vehicle sales in 2021 will double from the previous year. However, the increasing penetration of electric vehicles has brought new challenges to electric vehicle charging stations and distribution networks. In this context, a better power prediction system for electric vehicle charging stations is crucial because it helps improve the operation of electric vehicle charging stations and avoid high power losses and voltage curve drops in the distribution network.
[0003] With the development and application of artificial intelligence technology, a large number of artificial intelligence methods have been applied to the prediction of charging power of electric vehicle charging stations; however, the load demand of electric vehicle charging stations has time-varying dynamic characteristics and is affected by many factors, including geographical location, user distribution, etc. This makes it impossible to effectively apply common prediction models to the power prediction problem of electric vehicle charging stations, because these models must adapt to the dynamic changes in power distribution at different times and effectively match the specific characteristics of different charging stations.
[0004] Therefore, how to fully characterize the power characteristics of different EV charging stations and track the time-varying characteristics of charging station power is a difficult problem in the prediction of charging power of EV charging stations. Summary of the invention
[0005] In view of the defects of the prior art and the need for improvement, the present invention provides an online prediction method and system for the charging power of an electric vehicle charging station, the purpose of which is to effectively track the time-varying characteristics of the charging power of an electric vehicle charging station and improve the prediction accuracy of the charging power of an electric vehicle charging station.
[0006] To achieve the above object, according to one aspect of the present invention, there is provided an online prediction method for charging power of an electric vehicle charging station, comprising: an online prediction step and an online update step;
[0007] The online prediction steps include:
[0008] For the predicted time h, a feature vector is constructed based on the historical data of charging power and input into the deep kernel adaptive filtering model, which outputs the power distribution at the predicted time h and stores the power distribution;
[0009] The deep kernel adaptive filtering model includes a deep recurrent neural network, a standard positive definite kernel, and a prediction module connected in sequence; the prediction module is used to predict the power distribution corresponding to the features output by the standard positive definite kernel using the kernel adaptive filtering algorithm;
[0010] The online update steps include:
[0011] Collect the actual charging power of the electric vehicle charging station in real time; for any time h', collect the actual power P at that time h' After that, obtain the predicted result of power distribution at time h', calculate its mean and power P h' The error is used as the prediction loss, and the parameters of the deep kernel adaptive filtering model are updated based on the prediction loss.
[0012] Furthermore, in the online update step, the parameters of the deep kernel adaptive filtering model are updated based on the prediction loss, including:
[0013] The parameters of the kernel adaptive filtering algorithm are updated using online learning rules with Bayesian recursive updates;
[0014] Updating parameters in deep recurrent neural networks using online spatiotemporal learning methods.
[0015] Furthermore, the online spatiotemporal learning method is used to update the parameters of the deep recurrent neural network, including:
[0016] Calculate the update gradient of the deep recurrent neural network based on the prediction loss;
[0017] Separate the time component and space component in the deep recurrent neural network update gradient, and update the time component and space component separately;
[0018] Among them, the time component stores the time information of neurons in past events, recursively forward through time; the spatial component contains the recursive transmission of training information in space, which is passed from the high-level network to the low-level network.
[0019] Furthermore, the time component and the space component are updated as follows:
[0020]
[0021]
[0022] in, represents partial derivatives, subscripts l and l+1 represent the number of layers in a deep recurrent neural network, and superscripts t and t-1 represent time; and represents the time component in the update gradient; and represents the spatial component of the update gradient; and represents the hidden state of the neuron; θ l Represents the parameters of layer l of the deep recurrent neural architecture within a deep kernel.
[0023] Furthermore, the deep recurrent neural network is a gated recurrent neural network.
[0024] Furthermore, the standard positive definite kernel is the square exponential kernel.
[0025] Furthermore, the expression of the standard positive definite kernel is:
[0026]
[0027] Where k0(,) represents the standard positive definite kernel; x and x' represent two input vectors; ζ represents the kernel parameter, which is used to control the horizontal length range of the function change.
[0028] Furthermore, the kernel adaptive filtering algorithm is a recursive least squares tracking algorithm.
[0029] Furthermore, in the online prediction step, at the prediction time h, a feature vector is constructed based on the historical data of the charging power, including:
[0030] Collect the charging power at time h, time h-1 and time h-2 of the previous day and And the charging power at time h-1, time h-2 and time h-3 of the day and Construct historical load vector;
[0031] Perform one-hot encoding on the current day to identify its day number in the week and obtain the Sunday code;
[0032] Perform one-hot encoding on the time h to identify its time sequence in a day and obtain the time code;
[0033] The historical load vector, weekday code and time code are concatenated and standardized to obtain the feature vector.
[0034] According to another aspect of the present invention, there is provided an online prediction system for charging power of an electric vehicle charging station, comprising:
[0035] A computer-readable storage medium for storing a computer program;
[0036] And a processor is used to read the computer program stored in the computer-readable storage medium to execute the online prediction method of the charging power of the electric vehicle charging station provided by the present invention.
[0037] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects:
[0038] (1) The present invention constructs a deep kernel adaptive filtering model for predicting the power distribution at a specified time, and updates the parameters of the deep kernel adaptive filtering model in real time based on the charging power collected in real time, thereby realizing an online learning training mode. Through this online learning training mode, it is possible to adapt to the dynamic changes of the power distribution at different times, so that the model can learn the posterior distribution that accurately describes the complex nonlinear relationship between the feature and the power, so that the model is adapted to the charging load at all times, thereby ensuring the accuracy of the charging power prediction. At the same time, compared with the traditional kernel adaptive filtering model, in the present invention, a deep recurrent neural network is embedded in the standard positive definite kernel, and the deep recurrent neural network can be used to perform time series modeling and complex representation learning on the input power feature vector, thereby fully capturing the time correlation in the feature vector. The prediction module based on the kernel adaptive filtering algorithm can fully characterize the highly nonlinear relationship between the feature vector and the charging power, so as to selectively forget the historical information, maintain the model's ability to track the time-varying charging signal, and further enhance the accuracy of the model. In general, the present invention uses the proposed deep kernel adaptive filtering model to perform online prediction of the charging power distribution of electric vehicle charging stations, which can adapt to the high nonlinearity, time series characteristics and time-varying characteristics of charging data of electric vehicle charging stations, and effectively improve the prediction accuracy.
[0039] (2) In the preferred embodiment of the present invention, while predicting the charging power distribution of an electric vehicle charging station, an online learning training mode is used to update the model parameters. Specifically, based on the calculated prediction loss, the parameters of the recursive least squares tracking algorithm are updated using the online learning rule of the Bayesian recursive update, and the parameters in the deep recurrent neural network are updated using the online spatiotemporal learning method. This parameter updating method has low time and space complexity and high computational efficiency.
[0040] (3) In the preferred embodiment of the present invention, an improved online spatiotemporal learning method is used to update the parameters in the deep recurrent neural network. Specifically, the time component and the space component are separated and updated respectively. This can convert the computer gradient calculation into matrix multiplication calculation, greatly reducing the computational burden and avoiding repeated training of the model, which is beneficial to processing the charging data of electric vehicle charging stations with high resolution and strong time variability.
[0041] (4) In the preferred embodiment of the present invention, the deep recurrent neural network in the deep kernel adaptive filtering model is specifically a gated recurrent network. The gated recurrent neural network has a small number of parameters and a simple structure. It can effectively perform time series modeling. It has low computational complexity during training and strong training robustness. It can effectively improve the model learning efficiency and further improve the accuracy of model training.
[0042] (5) In the preferred embodiment of the present invention, the expression of the standard positive definite kernel is Compared with the traditional standard positive definite kernel expression, the parameter matrix is simplified to a kernel parameter, which can further reduce the computational complexity.
[0043] (6) In the preferred embodiment of the present invention, the constructed feature vector includes the charging power at the time h, time h-1 and time h-2 of the day before the predicted time h. and Charging power at time h-1, time h-2 and time h-3 of the day and As well as the unique hot encoding of the day and the unique hot encoding of the prediction time, since the charging behavior of the electric vehicle charging station has a certain weekly periodicity and daily periodicity, and the charging power characteristics at adjacent times have a high similarity, the feature vector constructed by the present invention can accurately reflect the power characteristics at the prediction time and effectively improve the prediction accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A schematic diagram of an online prediction method for charging power of an electric vehicle charging station provided by an embodiment of the present invention;
[0045] Figure 2 Deterministic prediction results of the online prediction method for charging power of an electric vehicle charging station provided by an embodiment of the present invention at two electric vehicle charging stations and four seasons;
[0046] Figure 3 The present invention provides a method for online prediction of charging power of an electric vehicle charging station provided by an embodiment of the present invention, which provides probability prediction results for two electric vehicle charging stations and four seasons. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention. In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0048] In the present invention, the terms "first", "second", etc. (if any) in the present invention and the accompanying drawings are used to distinguish similar objects but not necessarily to describe a specific order or sequence.
[0049] In order to solve the technical problem that the existing electric vehicle charging station power prediction method cannot accurately characterize the nonlinear and time-varying power characteristics of electric vehicle charging stations and the prediction accuracy is not high, the present invention provides an online prediction method and system for charging power of electric vehicle charging stations. The overall idea is to adapt to the time-varying characteristics of charging data of electric vehicle stations, propose an online learning training mode, and improve the model structure so that it can accurately capture the nonlinear characteristics, time series characteristics and time-varying characteristics of charging data of electric vehicle charging stations, thereby effectively improving the accuracy of power prediction of electric vehicle charging stations. On this basis, further improvements are made to the model structure and parameter update method to reduce the computational complexity and improve the efficiency of model parameter update to better meet the real-time requirements of online training.
[0050] In the following embodiments, the superscripts t, t-1, t+1, etc., of symbols represent corresponding moments; and the subscripts l, l-1, l+1, etc., represent corresponding layers in a neural network.
[0051] Embodiment 1:
[0052] An online prediction method for charging power of an electric vehicle charging station, such as Figure 1 As shown, it includes: an online prediction step and an online update step.
[0053] In this embodiment, the online prediction step includes:
[0054] For the predicted time h, a feature vector is constructed based on the historical data of charging power and input into the deep kernel adaptive filtering model. The deep kernel adaptive filtering model outputs the power distribution at the predicted time h and stores the power distribution.
[0055] Considering that the charging power of an electric vehicle charging station has certain weekly and daily periodicities, and the charging power characteristics at adjacent moments have high similarity, as a preferred implementation, in the online prediction step of this embodiment, at the prediction time h, a feature vector is constructed based on the historical data of the charging power, specifically including:
[0056] Collect the charging power at time h, time h-1 and time h-2 of the previous day and And the charging power at time h-1, time h-2 and time h-3 of the day and Construct historical load vector;
[0057] Perform one-hot encoding on the current day to identify its day number in the week and obtain the Sunday code;
[0058] Perform one-hot encoding on the time h to identify its time sequence in a day and obtain the time code;
[0059] The historical load vector, the weekday code and the time code are concatenated and standardized to obtain a feature vector; optionally, the method for standardizing the feature vector in this embodiment is specifically a standard deviation standardization method, which is a data standardization based on the mean and standard deviation of known data, as follows:
[0060]
[0061] Among them, μ Xi and δ Xi Represents the expectation and standard deviation of the i-th dimension of the training data. Among them, one-hot encoding is the representation of categorical variables as binary vectors. This first requires mapping categorical values to integer values, and then each integer value is represented as a binary vector, marking the integer index as 1 and the rest as 0.
[0062] The feature vector constructed in the above manner in this embodiment can accurately reflect the power characteristics at the prediction moment and effectively improve the prediction accuracy.
[0063] Considering that the charging behaviors of electric vehicles are not independent of each other and have temporal dependencies, that is to say, the charging power of electric vehicle charging stations exhibits obvious time series characteristics. At the same time, electric vehicle charging stations are typical low-level power with high nonlinearity, and the charging power characteristics will change over time and have time-varying characteristics. Therefore, in order to improve the modeling ability and nonlinear characterization ability of the model for time series, the deep kernel adaptive filtering model constructed in this embodiment is different from the traditional kernel adaptive filtering model, and has a deep architecture rich in hidden states. Specifically, in this embodiment, the deep kernel adaptive filtering model includes a deep recurrent neural network, a standard positive definite kernel, and a prediction module connected in sequence; the prediction module is used to use the kernel adaptive filtering algorithm to predict the power distribution corresponding to the characteristics of the standard positive definite kernel output.
[0064] For the input power feature vector at any time, it will first undergo a deterministic transformation of the deep recurrent neural network to perform time series modeling and complex representation learning, learn the time correlation of the feature vector, and then pass it into the standard positive definite kernel function for dimensionality upgrading. Specifically, Φ is defined as the nonlinear transformation of the deep recurrent neural network, which transforms the original input in the feature space X into the latent space H; the deep recurrent neural network and the standard positive definite kernel are used as a deep kernel to define is the depth kernel function, and k(·,·) is defined as the standard kernel function. The output of the depth kernel function is as follows:
[0065]
[0066] Among them, x and x′ represent two arbitrary feature vectors in space X, φ and φ′ represent the feature vectors of x and x′ after nonlinear transformation by deep recurrent neural network, and are defined in the potential space H, θ and Represent the parameters of the deep recurrent neural network and the standard positive definite kernel function respectively. Therefore, the constructed prior depth kernel can be used with θ and to parameterize.
[0067] In practical applications, the deep recurrent neural network in the deep kernel can be implemented using frameworks such as Elman neural network, long short-term memory neural network, gated recurrent neural network, etc. As a preferred implementation method, in this embodiment, a gated recurrent neural network is used to implement the deep recurrent neural network; the standard positive definite kernel in the deep kernel can use a linear kernel, a Matern kernel, a square exponential kernel (Gaussian kernel), a spectral mixing kernel, etc. Optionally, a square exponential kernel is selected in this embodiment.
[0068] For a gated recurrent neural network, the output of the lth layer of neurons at time t is:
[0069]
[0070] in, represents the update gate, W l u , and represents the updated gating parameters of layer l; Represents restart gate control, W l v , and Represents the restart gating parameter of layer l. is the output of the l-1th layer neuron of the gated recurrent neural network at time t; is the output of the l-th layer neuron of the gated recurrent neural network at time t-1; g(·) is the sigmoid activation function, ψ(·) is the hyperbolic tangent activation function; ⊙ represents the Hadamard product.
[0071] The gated recurrent neural network has a small number of parameters and a simple structure. It can effectively model time series. It has low computational complexity during training and strong training robustness. It can effectively improve the efficiency of model learning and further improve the accuracy of model training.
[0072] The squared exponential kernel can generally be expressed as:
[0073]
[0074] Where x and x′ are two input vectors, ∑ is a parameter matrix, and “T” represents the transpose of the matrix. In the present invention, in order to further reduce the computational complexity, the parameter matrix ∑ is simplified to a constant instead of a matrix. This simple form can be written as:
[0075]
[0076] Among them, ζ is a kernel parameter used to control the horizontal length range of the function change.
[0077] The deep kernel is combined with the kernel adaptive filtering algorithm to realize the deep kernel adaptive filtering algorithm, which can be used to track power signals. It should be noted that the kernel adaptive filtering algorithm constructs the kernel function through prior knowledge, projects the model input into the Hilbert kernel reproducible space, and characterizes the high nonlinearity of power; in practical applications, the kernel least mean square algorithm, the kernel recursive least square algorithm, the quantized kernel least mean square algorithm, and the kernel recursive least square tracking algorithm can be used as the kernel adaptive filtering algorithm part of the model.
[0078] In order to better capture the time-varying characteristics of electric vehicle charging power and describe the characteristics of charging power from a probability perspective, as a preferred implementation, the kernel recursive least squares tracking algorithm is selected in this embodiment to implement the kernel adaptive filtering algorithm, and the formula for modeling the charging power of an electric vehicle charging station is as follows:
[0079]
[0080]
[0081]
[0082] in, is the predicted value of charging power at time t; f represents the unobservable potential function; It means that the standard deviation is ε n Zero-mean Gaussian white noise; f represents the implicit function set {f i =f(h i )|i=1~n}, and has a Gaussian process prior; k(·,·) is the kernel function, Represents a Gaussian distribution.
[0083] To make predictions, the kernel recursive least squares tracking algorithm is used to train the input features and charging power data pairs M t Construct the posterior distribution p(f t ,M t ), according to p(f t ,M t ) further obtains the predicted distribution p(f t+1,M t ).
[0084] In this embodiment, the prediction distribution finally output by the deep kernel adaptive filtering model is the possible charging power values and the probability of occurrence of each power value at the prediction time; when the power distribution is predicted, the predicted charging power value at the prediction time can be obtained by calculating the mean.
[0085] In general, the deep kernel adaptive filtering model constructed in this embodiment can effectively capture the timing characteristics, nonlinear characteristics and time-varying characteristics of electric vehicle charging power, and effectively improve the accuracy of power prediction.
[0086] In this embodiment, the online update step includes:
[0087] Collect the actual charging power of the electric vehicle charging station in real time; for any time h', collect the actual power P at that time h' After that, obtain the predicted result of power distribution at time h', calculate its mean and power P h' The error is used as the prediction loss, and the parameters of the deep kernel adaptive filtering model are updated based on the prediction loss.
[0088] Based on the parameter characteristics of the deep recurrent neural network and the kernel adaptive filtering algorithm, as a preferred implementation, in the online updating step of this embodiment, the parameters of the deep kernel adaptive filtering model are updated based on the prediction loss, including:
[0089] The parameters of the kernel adaptive filtering algorithm are updated using an online learning rule with Bayesian recursive updates;
[0090] Updating parameters in deep recurrent neural networks using online spatiotemporal learning methods.
[0091] In this embodiment, the kernel adaptive filtering algorithm is specifically a kernel recursive least squares tracking algorithm, which adopts the online learning rule of Bayesian recursive update, thereby recursively updating the posterior distribution of the arriving stream data one by one, and the expression is as follows:
[0092]
[0093] Where ft is equal to {f i |i=1~t}, combining the basic formula of Gaussian process and the definition of noise, it is easy to get p(f t |f t-1 ) and p(s t ∣f t ). This formula shows how to recursively update the posterior distribution p(f t ,M t ). In addition, the predicted distribution p(s t ∣M t-1) is as follows:
[0094] p(s t ∣M t-1 )=∫p(s t ∣f t )p(f t ∣f t-1 )p(f t-1 ∣M t-1 )df t
[0095] Considering that all distributions are known Gaussian distributions, this integral is feasible analytically. Rearranging the above formula, the explicit expression of the posterior distribution can be obtained as:
[0096]
[0097]
[0098]
[0099] in q t There are the following expressions:
[0100]
[0101]
[0102]
[0103]
[0104] Where K is the covariance matrix (Gram matrix), whose elements are expressed as K i,j = k(h i ,h j ) 1≤i,j<t ;k t,t and [k t ] i are equal to k(h t ,h t ) and k(h t ,h i ) 1≤i<t ; [·] -1 and denote inverse and transpose respectively. μ denotes the expected vector, and C denotes the covariance matrix. and is the predicted mean and variance of the target charging power at time t, so the probability prediction at time t is The update of the model requires the inverse covariance matrix The inverse covariance matrix can be updated by the following recursive method:
[0105]
[0106]
[0107] It should be noted that the kernel recursive least squares tracking algorithm additionally uses the following forgetting machine value to track time-varying signals, improving the timeliness of the model by giving higher weights to the latest data:
[0108] μ t ←αμ t
[0109] C t ←α 2 C t +β 2 K t
[0110] Among them, α and β satisfy α 2 +β 2 =1.
[0111] It should be noted that the above model vector μ t and the matrix C t , It will grow without limit, resulting in a continuous decrease in the computational efficiency of the model. The main reason is that the model reconstructs the posterior p(f t ∣M t ). In fact, the potential function of the observed samples (whose joint distribution is a joint Gaussian distribution) is called a set of bases. In order to establish the algorithm within a fixed budget, the size of the parameter dimension needs to be limited to a fixed range. Based on this, this embodiment adopts the following method to perform model pruning:
[0112] First, the following measure is used to measure the effect of removing the i-th basis f from the historical data i =f(h i ) when the posterior mean μ t Changes in:
[0113]
[0114] in,[·] i represents the i-th element of a vector, [·] i,j represents the element in the i-th row and j-th column of the matrix. Then the basis with the smallest ζ will be deleted, and accordingly, μ t , C t and Update as follows:
[0115] μt ←[μ t ] -j
[0116] C t ←[C t ] -j,-j
[0117]
[0118] in,[·] -j Indicates deleting the jth element of the vector; [·] -j,· or[·] ·,-j Indicates deleting the j-th row or j-th column of the matrix.
[0119] It should be further explained that after predicting the power distribution at a certain moment, the corresponding power mean and variance can be calculated. After collecting the actual charging power, the kernel adaptive filtering algorithm is updated while the online update algorithm of the recurrent neural network such as the EProp algorithm, the time forward propagation algorithm, and the online spatiotemporal learning algorithm can be used to update the hyperparameters in the deep kernel online in sequence, so as to further reduce the historical prediction error, improve the adaptability of the model, and enable the model to adapt to the dynamic changes of power distribution at different times.
[0120] The parameter update of the deep recurrent neural network in the deep kernel and the update of the kernel adaptive filtering algorithm are performed in parallel to improve computational efficiency.
[0121] The traditional backpropagation through time algorithm updates the parameters of a deep recurrent neural network by calculating the full gradient, specifically:
[0122]
[0123] Wherein, E is the loss of the data batch calculation. Optionally, in this embodiment, the root mean square error is specifically calculated as the prediction loss; d represents the calculation of the full gradient; η represents the learning rate. The larger the learning rate, the larger the amplitude of the single-step parameter update; θ l Represents the parameters of layer l of the deep recurrent neural architecture within a deep kernel.
[0124] Although this training mode is widely used and has good performance, traditional online spatiotemporal learning is an online algorithm based on back propagation over time. It has low computational efficiency for processing massive data. When facing new data, the entire model needs to be retrained, which has poor timeliness and is not conducive to processing high-resolution and time-varying data. Considering that the charging data of electric vehicle charging stations has sequential characteristics, nonlinear characteristics, and time-varying characteristics, this embodiment proposes an improved online spatiotemporal learning rule, which separates the time and space components in the deep recurrent neural network update gradient by deconstructing the calculated gradient, thereby converting the computer gradient into solving matrix multiplication, greatly reducing the computational burden and avoiding repeated training of the model. Among them, the time component in the recurrent neural network update gradient stores the time information of neurons in past events, and recursively forwards through time; the spatial component contains the recursive transmission of training information in space, which is transmitted from the high-level network to the low-level network.
[0125] Specifically, this example approximates the full gradient by separating the spatial and temporal components:
[0126]
[0127] in, and Represent the spatial and temporal components of the full gradient respectively. For gated recurrent neural networks, the spatial and temporal components have the following recursive formulas:
[0128]
[0129]
[0130] in, represents partial derivatives; subscripts l and l+1 represent the number of layers in a deep recurrent neural network, and superscripts t and t-1 represent time; and Respectively represent the time component of updating the gradient in layer l at time t and time t-1; and Respectively represent the spatial components of the updated gradient at the lth layer and the l+1th layer at time t; and They represent the hidden states of neurons in layer l at time t and time t-1 respectively. represents the hidden state of the neuron in the l+1 layer at time t; θ l Represents the parameters of layer l of the deep recurrent neural architecture within a deep kernel.
[0131] In the case of bounded time and space complexity, the spatial and temporal components are recursively computed at each time step. Furthermore, for gated recurrent neural networks, explicit expressions for the spatial and temporal components of different parameters can be obtained by substituting their expressions into the above formula.
[0132] In order to make the online spatiotemporal learning further match the deep kernel adaptive filtering algorithm of the present invention, it is proposed to improve the online spatiotemporal learning, and use the following improved learning signal as the outermost learning signal:
[0133]
[0134] in, represents the learning signal at time t, represents the hidden state of the neuron in the mth layer at time t, [k t ] i Equal to k(h t ,h i ) 1≤i<t , K t-1 represents the covariance matrix, μ t-1 represents the expected vector.
[0135] Combining the above two formulas, the improved online spatiotemporal learning algorithm can effectively update the hyperparameters of the deep kernel of the present invention and fully converge.
[0136] This embodiment updates the proposed deep kernel adaptive filtering model online in the above manner, which can adapt to the dynamic changes of power distribution at different times, so that the model can learn the posterior distribution that accurately describes the complex nonlinear relationship between features and power, so that the model is always adapted to the charging load, ensuring the accuracy of charging power prediction.
[0137] Embodiment 2:
[0138] An online prediction system for charging power of an electric vehicle charging station, comprising:
[0139] A computer-readable storage medium for storing a computer program;
[0140] And a processor is used to read the computer program stored in the computer-readable storage medium to execute the online prediction method of the charging power of the electric vehicle charging station provided by the present invention.
[0141] The following uses a real data set collected from two electric vehicle charging stations in California as an example to further explain the beneficial effects that can be achieved by the present invention.
[0142] One of the charging stations is located on the campus of the California Institute of Technology (Caltech) and has 54 electric vehicle chargers, and the other charging station is located at the Jet Propulsion Laboratory (JPL) and has 50 electric vehicle chargers. The charging station at Caltech is open to the public, while the charging station at JPL is only available to employees. Data from the four seasons were used for training and prediction respectively.
[0143] For the charging data of the above electric vehicle charging station, the prediction method provided by the embodiment of the present invention is used to perform power prediction, and two benchmark models are constructed as comparison models for the deep kernel adaptive filtering model constructed by the present invention. The two benchmark models are as follows:
[0144] Benchmark Model 1: A stochastic model is used to simulate and predict the power demand generated by the general arrival and charging patterns of electric vehicles. First, the charging process of electric vehicles can be modeled by a queuing service model. Assuming that the output power of each charging pile is fixed, the charging power in a certain period of time depends on the number of electric vehicles N receiving charging services. A t For a queue service system with / GI / ∞(arrival interval / service time / service capacity), the expectation of the Poisson random variable is as follows:
[0145]
[0146] Where F(·) represents the service time distribution, which is a probability accumulation function; λ(·) represents the arrival rate at different times. Therefore, the charging power is expressed as follows:
[0147]
[0148] Where R represents the charging power, τ represents the queue, and L(·) represents the power. In summary, predicting the charging power of electric vehicles requires accurate estimation of F(·) and λ(·). A large amount of statistical data shows that F(·) satisfies the lognormal distribution, while the future value of λ(·) can be predicted by traditional time series methods.
[0149] Benchmark model 2: A hybrid model of seasonal difference integrated moving average autoregressive model (SARIMA) and long short-term memory network is used to predict the charging demand of electric vehicles. First, the general linear trend of electricity demand is extracted by SARIMA; then, the residual nonlinear component is obtained by eliminating the linear trend in the original electricity demand. At the same time, the periodic characteristics of the nonlinear component are determined according to the periodic parameters of SARIMA. After that, the long short-term memory network (LSTM) is used to approximate the nonlinear component of charging power, and the periodic characteristics of the nonlinear component are input as part of the LSTM. Finally, the extracted linear trend and the predicted nonlinear component are combined to produce the final prediction result.
[0150] Three error indicators are selected to quantify the prediction performance: root mean square error (RMSE), mean absolute error (MAE), and mean tangent absolute percentage error (MAAPE).
[0151] The prediction results using different models are shown in Table 1.
[0152] Table 1 Prediction results of charging power of electric vehicle charging stations
[0153]
[0154] According to the results shown in Table 1, the deep kernel adaptive filtering model provided by the present invention has achieved the most advanced results in the four seasons in the two regions of Caltech and JPL, and is significantly better than the two benchmark models in terms of indicators. Compared with the benchmark model 1, the root mean square error (RMSE), mean absolute error (MAE) and mean tangent absolute percentage error (MAAPE) of the prediction results of the present invention in Caletch spring are improved by 54.37%, 48.33% and 15.09% respectively compared with the benchmark model 1. The model of benchmark 1 relies heavily on the accurate prediction of the number of car arrivals, however, it is very challenging to accurately predict the number of car arrivals. Compared with the benchmark model 2, the prediction results of the present invention in spring are improved by 40.17%, 39.20% and 13.57% respectively. Model 2 uses SARIMA to obtain the linear trend of electric vehicle charging power, however, SARIMA cannot capture the time-varying characteristics of power and more complex power patterns. Therefore, even if deep learning is used to fit nonlinear trends, the huge errors caused by linear trends cannot be offset.
[0155] Figure 2 The deterministic prediction results of two benchmark models and the deep kernel adaptive filtering model provided by the present invention are shown. Figure 2 It can be seen from the results that the prediction results of the present invention in each season and each data set are closer to the true value, which shows that the present invention obtains the best prediction results.
[0156] Figure 3 The five-day probability prediction results of the present invention are shown, wherein the confidence intervals (CL) are 80%, 90%, 95% and 99% respectively. As can be seen from the figure, the actual power curve power is covered by the prediction interval, which also verifies that the present invention can obtain good probability prediction.
[0157] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is 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. An online prediction method for charging power of an electric vehicle charging station, characterized in that: include: Online prediction step and online update step; The online prediction step includes: For the predicted time h, a feature vector is constructed based on the historical data of charging power and input into the deep kernel adaptive filtering model, and the deep kernel adaptive filtering model outputs the power distribution at the predicted time h, and stores the power distribution; The deep kernel adaptive filtering model includes a deep recurrent neural network, a standard positive definite kernel and a prediction module connected in sequence; the prediction module is used to predict the power distribution corresponding to the features output by the standard positive definite kernel using a kernel adaptive filtering algorithm; The online updating step comprises: Collect the actual charging power of the electric vehicle charging station in real time; for any time h', collect the actual power P at that time h' After that, obtain the predicted result of power distribution at time h', calculate its mean and power P h' The error is used as the prediction loss, and the parameters of the deep kernel adaptive filtering model are updated based on the prediction loss.
2. The method for online prediction of charging power of an electric vehicle charging station as claimed in claim 1, characterized in that: In the online updating step, the parameters of the deep kernel adaptive filtering model are updated based on the prediction loss, including: The parameters of the kernel adaptive filtering algorithm are updated using an online learning rule with Bayesian recursive updates; The parameters in the deep recurrent neural network are updated using an online spatiotemporal learning method.
3. The method for online prediction of charging power of an electric vehicle charging station as claimed in claim 2, characterized in that: Updating the parameters of the deep recurrent neural network using an online spatiotemporal learning method includes: Calculate the update gradient of the deep recurrent neural network based on the prediction loss; Separate the time component and space component in the deep recurrent neural network update gradient, and update the time component and space component separately; Among them, the time component stores the time information of neurons in past events, recursively forward through time; the spatial component contains the recursive transmission of training information in space, which is passed from the high-level network to the low-level network.
4. The method for online prediction of charging power of an electric vehicle charging station as claimed in claim 3, characterized in that: The time component and space component are updated in the following ways: in, represents partial derivatives, subscripts l and l+1 represent the number of layers in a deep recurrent neural network, and superscripts t and t-1 represent time; and represents the time component in the update gradient; and represents the spatial component of the update gradient; and represents the hidden state of the neuron; θ l Represents the parameters of layer l of a deep recurrent neural architecture.
5. The method for online prediction of charging power of an electric vehicle charging station according to any one of claims 1 to 4, characterized in that: The deep recurrent neural network is a gated recurrent neural network.
6. The method for online prediction of charging power of an electric vehicle charging station according to any one of claims 1 to 4, characterized in that: The standard positive definite kernel is a square exponential kernel.
7. The method for online prediction of charging power of an electric vehicle charging station according to any one of claims 1 to 4, characterized in that: The expression of the standard positive definite kernel is: Where k0(,) represents the standard positive definite kernel; x and x' represent two input vectors; ζ represents the kernel parameter, which is used to control the horizontal length range of the function change.
8. The method for online prediction of charging power of an electric vehicle charging station according to any one of claims 1 to 4, characterized in that: The kernel adaptive filtering algorithm is a recursive least squares tracking algorithm.
9. The method for online prediction of charging power of an electric vehicle charging station according to any one of claims 1 to 4, characterized in that: In the online prediction step, at the prediction time h, a feature vector is constructed based on the historical data of the charging power, including: Collect the charging power at time h, time h-1 and time h-2 of the previous day and And the charging power at time h-1, time h-2 and time h-3 of the day and Construct historical load vector; Perform one-hot encoding on the current day to identify its day number in the week and obtain the Sunday code; Perform one-hot encoding on the time h to identify its time sequence in a day and obtain the time code; The historical load vector, weekday code and time code are concatenated and standardized to obtain the feature vector.
10. An online prediction system for charging power of an electric vehicle charging station, characterized in that: include: A computer-readable storage medium for storing a computer program; and a processor, configured to read the computer program stored in the computer-readable storage medium and execute the method for online prediction of charging power of an electric vehicle charging station as claimed in any one of claims 1 to 9.
