Reinforcement learning-based parameter adaptive electric vehicle load prediction method and system, medium and equipment

Through the parameter adaptive method based on reinforcement learning, the weight of the electric vehicle charging load prediction model is dynamically adjusted, which solves the problem of the complexity of charging load prediction of super fast charging stations, improves the prediction accuracy and adaptability, and supports the efficient and stable operation of the power grid.

CN119047624APending Publication Date: 2024-11-29STATE GRID ECONOMIC TECH RES INST CO LTD +4
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411070468.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-06
Publication Date
2024-11-29

AI Technical Summary

Technical Problem

Existing electric vehicle charging load prediction methods are difficult to adapt to dynamic changes, especially under the high randomness and intermittent charging requirements of super fast charging stations, which leads to low prediction accuracy and difficulty in capturing emerging trends.

Method used

Using a parameter adaptive method based on reinforcement learning, the charging load prediction error variance is calculated by collecting data in real time, a combined prediction model is constructed, and the prediction model weight is dynamically adjusted using the Q learning algorithm, combined with timing characteristics and objective factors, the prediction weight is updated online to achieve Adaptive combination prediction.

Benefits of technology

It improves the accuracy and adaptability of electric vehicle charging load prediction, can better capture the spatial and temporal characteristics of super fast charging stations, and enhances the operating efficiency and stability of the power grid under large-scale access to electric vehicles.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119047624A_ABST
    Figure CN119047624A_ABST
Patent Text Reader

Abstract

The invention relates to the field of electric vehicle load prediction, and discloses a parameter self-adaptive electric vehicle load prediction method and system based on reinforcement learning, a medium and equipment, and the method comprises the steps: collecting the load data of a super fast charging station in real time, calculating the charging load prediction error variance of the super fast charging station at a t moment, and calculating the load prediction error variance of the super fast charging station; a combined prediction model based on multiple prediction methods is constructed according to the prediction error variance; calculating a Q value function of power prediction at the moment t by adopting reinforcement learning according to real-time data and prediction errors, and evaluating and updating a Q value at the moment t + 1 by combining the time sequence characteristics of the super fast charge station, so as to form a Q matrix with two dimensions of a combined weight of a combined prediction model and a current objective factor through offline learning; and selecting a similar day according to objective factors under the current condition, updating the prediction weight of the similar day on line, and searching in the output Q matrix to obtain the combination weight with the minimum variance in the combination prediction model so as to carry out adaptive variable weight combination prediction. According to the method, the weights of different prediction models are dynamically adjusted, so that the charging load of the electric vehicle is accurately predicted.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electric vehicle load prediction, and in particular to a parameter adaptive electric vehicle load prediction method, system, medium and equipment based on reinforcement learning. Background Art

[0002] With the rapid growth of electric vehicles (EVs), their charging demand has posed new challenges to the stability and efficiency of distribution networks. EV charging load has significant spatiotemporal distribution characteristics, and its prediction is crucial for grid planning and operation. However, existing prediction methods mostly rely on static data analysis, which is difficult to adapt to the dynamic changes in the interaction between EVs and grids. In addition, the rapid development of EV technology has also made it difficult for traditional prediction models to capture emerging trends. In particular, super-fast charging stations, due to their fast charging speed and short charging time, have a high degree of randomness and intermittent charging load, which makes load prediction more complicated. Therefore, there is an urgent need for a new method that can dynamically adjust the prediction strategy and improve the prediction accuracy to cope with the complexity and uncertainty of EV charging load prediction. Summary of the invention

[0003] In view of the above problems, the purpose of the present invention is to provide a parameter adaptive electric vehicle load prediction method, system, medium and equipment based on reinforcement learning, which can accurately predict the charging load of electric vehicles by dynamically adjusting the weights of different prediction models.

[0004] To achieve the above-mentioned purpose, the present invention adopts the following technical scheme: a parameter adaptive electric vehicle load forecasting method based on reinforcement learning, which includes: collecting load data of super-fast charging stations in real time, calculating the variance of the charging load forecasting error of the super-fast charging station at time t, and constructing a combined forecasting model based on multiple forecasting methods according to the forecasting error variance; using reinforcement learning to calculate the Q value function of the power forecast at time t according to the real-time data and the forecasting error, combining the timing characteristics of the super-fast charging station, evaluating and updating the Q value at time t+1, so as to form a Q matrix with two dimensions of the combined weight of the combined forecasting model and the current objective factors through offline learning; selecting similar days according to the objective factors under the current conditions, updating the prediction weights of similar days online, and finding the combined weights with the smallest variance in the combined forecasting model in the output Q matrix to perform adaptive variable weight combined forecasting; wherein the objective factors include at least one of the electric vehicle charging amount, traffic flow and charging pile utilization rate.

[0005] Furthermore, the variance of the prediction error of the charging load of the super-fast charging station at a certain moment is calculated as:

[0006]

[0007] In the formula, σ 11 ,σ22 ,...,σ kk is the variance of the prediction error of each of the k prediction methods; e it is the prediction error of each i-th prediction method for t consecutive years.

[0008] Furthermore, a combined prediction model based on multiple prediction methods is constructed according to the prediction error variance, including:

[0009] The actual value of the combined weight is calculated based on the forecast error variance, and the revised value of the combined weight is determined based on the actual value;

[0010] Based on the unbiased prediction values ​​of annual electricity consumption and combined weights of multiple prediction methods, a combined prediction model is obtained.

[0011] Furthermore, the Q value function of the power prediction at time t is calculated, and the Q value at time t+1 is evaluated and updated in combination with the timing characteristics of the super fast charging station, including:

[0012] Define Q value:

[0013] Q n (s,a)=E[r|(s,a)]+γ∑ s′ T a ss′ max Q n (s′,a′)

[0014] Evaluation of Q value:

[0015]

[0016] Where Q(s,a) is the Q-value function of executing action a in state s; Q(s',a) is the Q-value function of executing action a in state s'; S is the state set; A is the action set; s is the current state; s' is the state at the next moment; R(s,s',a) is the immediate reinforcement signal given by state s after the control action a occurs and transfers to state s', which is the reward function value; γ is the discount factor;

[0017] The iterative formula for updating the Q value is:

[0018]

[0019] Where α is the learning factor, 0<α<1; Q k Represents the optimal value function Q * The k-th iteration value of k ,a,r,s k+1 ] is a sample.

[0020] Furthermore, a Q matrix with two dimensions, namely, the combined weight of the combined prediction model and the current objective factors, is formed through offline learning, including:

[0021] Reinforcement learning is used to dynamically adjust the parameters of the combined prediction model. The weight coefficients of various prediction methods in the combined prediction model and the current objective factors are used as state-action pairs. The variance under the weight coefficient conditions is filled into the Q matrix. A complete and reliable Q matrix is ​​formed through offline learning to dynamically update the combined weights.

[0022] Furthermore, during online updating, if the online state is completely consistent with a state in the Q matrix, the Q matrix is ​​directly searched to obtain the combined weight;

[0023] If the online state is not completely consistent with any state in the Q matrix, the similarity between the objective factors in the time period to be predicted and the corresponding historical data in the Q matrix is ​​compared through the similar day method.

[0024] Furthermore, similar days are selected according to objective factors under current conditions, and similar day prediction weights are updated online, including:

[0025] Assume that the feature vector of the day to be predicted is x, x = [t1, T, t2], and the feature vector of the jth similar historical day is x j , x j =[t 1j ,T j ,t 2j ], where t1 represents the charging amount of the electric vehicle on the day to be predicted, T represents the traffic flow, and t2 represents the utilization rate of the charging pile;

[0026] Using the grey correlation coefficient method, predict day x and historical day x j The correlation coefficient ξ of the kth eigencomponent i (k), and according to the correlation coefficient ξ i (k) Get the feature vector x of similar historical days j (k) The relevance of the forecast day x(k);

[0027] When making predictions, we start by calculating the correlation between the prediction date and the jth closest historical day, and calculate the correlation value r day by day. j , by the correlation value r j The daily feature similarity index is obtained; the smaller the daily feature similarity index value is, the higher the degree of daily feature similarity is.

[0028] A parameter-adaptive electric vehicle load forecasting system based on reinforcement learning, comprising: a first processing module, which collects load data of super-fast charging stations in real time, calculates the variance of the prediction error of the charging load of the super-fast charging station at time t, and constructs a combined prediction model based on multiple prediction methods according to the prediction error variance; a reinforcement learning module, which uses reinforcement learning to calculate the Q value function of the power prediction at time t according to the real-time data and the prediction error, and evaluates and updates the Q value at time t+1 in combination with the timing characteristics of the super-fast charging station, so as to form a Q matrix with two dimensions of the combination weight of the combined prediction model and the current objective factors through offline learning; an output module, which selects similar days according to the objective factors under the current conditions, updates the prediction weights of the similar days online, and searches for the weight combination with the smallest combination prediction variance in the output Q matrix to perform adaptive variable weight combination prediction; wherein the objective factors include the charging amount of electric vehicles, traffic flow and the utilization rate of charging piles.

[0029] Furthermore, the variance of the prediction error of the charging load of the super-fast charging station at a certain moment is calculated as:

[0030]

[0031] In the formula, σ 11 ,σ 22 ,...,σ kk is the variance of the prediction error of each of the k prediction methods; e it is the prediction error of each i-th prediction method for t consecutive years.

[0032] Furthermore, a combined prediction model based on multiple prediction methods is constructed according to the prediction error variance, including:

[0033] The actual value of the combined weight is calculated based on the forecast error variance, and the revised value of the combined weight is determined based on the actual value;

[0034] Based on the unbiased prediction values ​​of annual electricity consumption and combined weights of multiple prediction methods, a combined prediction model is obtained.

[0035] Furthermore, the Q value function of the power prediction at time t is calculated, and the Q value at time t+1 is evaluated and updated in combination with the timing characteristics of the super fast charging station, including:

[0036] Define Q value:

[0037] Q n (s,a)=E[r|(s,a)]+γ∑ s′ T a ss′ amx Q n (s′,a′)

[0038] Evaluation of Q value:

[0039]

[0040] Where Q(s,a) is the Q-value function of executing action a in state s; Q(s',a) is the Q-value function of executing action a in state s'; S is the state set; A is the action set; s is the current state; s' is the state at the next moment; R(s,s',a) is the immediate reinforcement signal given by state s after the control action a occurs and transfers to state s', which is the reward function value; γ is the discount factor;

[0041] The iterative formula for updating the Q value is:

[0042]

[0043] Where α is the learning factor, 0<α<1; Q k Represents the optimal value function Q * The k-th iteration value of k ,a,r,s k+1 ] is a sample.

[0044] Furthermore, a Q matrix with two dimensions, namely, the combined weight of the combined prediction model and the current objective factors, is formed through offline learning, including:

[0045] Reinforcement learning is used to dynamically adjust the parameters of the combined prediction model. The weight coefficients of various prediction methods in the combined prediction model and the current objective factors are used as state-action pairs. The variance under the weight coefficient conditions is filled into the Q matrix. A complete and reliable Q matrix is ​​formed through offline learning to dynamically update the combined weights.

[0046] Furthermore, during online updating, if the online state is completely consistent with a state in the Q matrix, the Q matrix is ​​directly searched to obtain the combined weight;

[0047] If the online state is not completely consistent with any state in the Q matrix, the similarity between the objective factors in the time period to be predicted and the corresponding historical data in the Q matrix is ​​compared through the similar day method.

[0048] Furthermore, similar days are selected according to objective factors under current conditions, and similar day prediction weights are updated online, including:

[0049] Assume that the feature vector of the day to be predicted is x, x = [t1, T, t2], and the feature vector of the jth similar historical day is x j , x j =[t 1j ,T j ,t 2j ], where t1 represents the charging amount of the electric vehicle on the day to be predicted, T represents the traffic flow, and t2 represents the utilization rate of the charging pile;

[0050] Using the grey correlation coefficient method, predict day x and historical day x j The correlation coefficient ξ of the kth eigencomponent i (k), and according to the correlation coefficient ξ i (k) Get the feature vector x of similar historical days j (k) The relevance of the forecast day x(k);

[0051] When making predictions, we start by calculating the correlation between the prediction date and the jth closest historical day, and calculate the correlation value r day by day. j , by the correlation value r j The daily feature similarity index is obtained; the smaller the daily feature similarity index value is, the higher the degree of daily feature similarity is.

[0052] A computer-readable storage medium storing one or more programs, wherein the one or more programs include instructions, which, when executed by a computing device, cause the computing device to perform any of the above methods.

[0053] A computing device comprises: one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for executing any of the above methods.

[0054] The present invention adopts the above technical solution, which has the following advantages:

[0055] 1. The present invention adopts reinforcement learning, especially Q-learning algorithm, to dynamically adjust the weight of the electric vehicle load forecasting model. This method optimizes the model parameters according to the forecast error through a real-time feedback mechanism, thereby achieving high-precision forecasting of the electric vehicle charging load.

[0056] 2. The present invention adopts a parameter-adaptive combined prediction model, which combines multiple prediction techniques and can dynamically adjust the weight of each method according to the prediction error. This adaptive mechanism enables the model to flexibly respond to the spatiotemporal changes of electric vehicle charging load and improve the reliability of prediction.

[0057] 3. The present invention realizes adaptive adjustment of the weights of the electric vehicle charging load forecasting model by introducing reinforcement learning algorithms, especially Q learning, and significantly improves the accuracy and adaptability of the forecast. In particular, considering the randomness and intermittent characteristics of super-fast charging stations, the forecasting model of the present invention can better adapt to these characteristics and provide a solid theoretical basis for the model. This method can accurately capture the spatiotemporal characteristics of electric vehicle charging behavior, and provide reliable load forecasting data for power grid planning and resource optimization, thereby enhancing the operating efficiency and stability of the power grid under the condition of large-scale access of electric vehicles. This provides an important scientific basis for load management in the power industry under the background of large-scale access of electric vehicles, and helps to achieve efficient and stable operation of the power grid. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] Figure 1 It is a flow chart of a parameter adaptive electric vehicle load forecasting method based on reinforcement learning in an embodiment of the present invention. DETAILED DESCRIPTION

[0059] In order to make the purpose, technical solution and advantages of the embodiment of the present invention clearer, the technical solution of the embodiment of the present invention will be clearly and completely described below in conjunction with the drawings of the embodiment of the present invention. Obviously, the described embodiment is a part of the embodiment of the present invention, not all of the embodiments. Based on the described embodiment of the present invention, all other embodiments obtained by ordinary technicians in this field belong to the scope of protection of the present invention.

[0060] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0061] Due to the randomness and intermittency of the load of super-fast charging stations, traditional load forecasting models may not be able to accurately capture these characteristics. Therefore, it is necessary to develop more advanced forecasting methods. The parameter adaptive combination forecasting method based on reinforcement learning proposed in the present invention is to dynamically adjust the weight of the forecasting model to improve the adaptability and accuracy of the load changes of super-fast charging stations. The load forecasting of super-fast charging stations faces a series of challenges, mainly including the adaptability of the forecasting model, the real-time and accuracy of the data, and the innovation of the forecasting method. Due to the randomness and intermittency of the load of super-fast charging stations, traditional load forecasting models are often difficult to capture their rapidly changing characteristics. In order to improve the accuracy of the forecast, it is necessary to collect the load data of the charging station in real time, such as the number of charging times, charging time and charging power. At the same time, it is necessary to adopt advanced forecasting technologies, such as reinforcement learning algorithms, especially Q learning, which can dynamically adjust the model parameters according to real-time data and prediction errors to achieve adaptive load forecasting. Through these improvement measures, the load of super-fast charging stations can be predicted more effectively, providing a more accurate scientific basis for the planning and management of distribution networks, and ensuring the stable and efficient operation of the power grid in the context of large-scale access of electric vehicles.

[0062] In one embodiment of the present invention, a parameter adaptive electric vehicle load forecasting method based on reinforcement learning is provided. In this embodiment, Figure 1 As shown, the method comprises the following steps:

[0063] 1) Collect the load data of super-fast charging stations in real time, calculate the prediction error variance of the charging load of super-fast charging stations at time t, and build a combined prediction model based on multiple prediction methods according to the prediction error variance;

[0064] 2) Reinforcement learning is used to calculate the Q value function of power prediction at time t based on real-time data and prediction errors. Combined with the timing characteristics of the super-fast charging station, the Q value at time t+1 is evaluated and updated to form a Q matrix with two dimensions: the combined weight of the combined prediction model and the current objective factors through offline learning;

[0065] 3) Select similar days according to objective factors under current conditions, update the prediction weights of similar days online, and find the weight combination with the smallest combined prediction variance in the output Q matrix (i.e., knowledge matrix) to perform adaptive variable weight combination prediction;

[0066] Among them, objective factors include at least one of electric vehicle charging volume, traffic flow and charging pile utilization rate.

[0067] In this embodiment, the load characteristics of the super fast charging station are different from those of the traditional charging station, which are mainly reflected in the following aspects:

[0068] (1) Randomness: Uncertainty in user charging behavior: Electric vehicle users may randomly choose charging time based on personal needs, availability of charging stations, charging costs, and other factors, resulting in a high degree of uncertainty in the time of the load demand of super-fast charging stations.

[0069] (2) Volatility of charging demand: Since super-fast charging stations usually serve users who need fast charging, these users may use charging services in a concentrated manner during specific time periods (such as during long-distance travel), resulting in peak fluctuations in load demand.

[0070] (3) Intermittency: The shortness of the charging cycle: Super fast charging stations are designed to provide fast charging services, so the charging cycle is usually short. This means that after charging is completed, the load will drop quickly, forming intermittent load.

[0071] (4) Rapid changes in load: The load at a super-fast charging station may rise rapidly during charging and drop rapidly after charging. This rapid change places higher demands on the load forecasting and scheduling of the distribution network.

[0072] In the above step 1), the parameter is obtained by using the input data of the combined forecast as k forecast methods to obtain the forecast value of annual electricity consumption for n consecutive years. The prediction errors e of the k prediction methods for n consecutive years 11 ,e 12 ,e 13 ,…,e kn The output data is the forecast value of electricity consumption for n consecutive years obtained by the combined forecasting method.

[0073] In this embodiment, the variance of the prediction error of the charging load of the super-fast charging station at a certain moment is calculated as:

[0074]

[0075] In the formula, σ 11 ,σ 22 ,...,σ kk is the variance of the prediction error of each of the k prediction methods; e 11 ,e 12 ,e 13 ,…,e kn is the prediction error of each of the k prediction methods for n consecutive years.

[0076] In the above step 1), a combined prediction model based on multiple prediction methods is constructed according to the prediction error variance, including the following steps:

[0077] 1.1) Calculate the actual value of the combined weight according to the forecast error variance, and determine the revised value of the combined weight according to the actual value;

[0078] In this embodiment, the actual value of the combined weight and the revised value of the combined weight are respectively:

[0079]

[0080] In the formula, is the actual value of the combined weight; is the modified value of the combined weight,

[0081] 1.2) Based on the unbiased prediction values ​​of annual electricity consumption and combined weights of multiple prediction methods, a combined prediction model is obtained.

[0082] In this embodiment, the combined prediction model is:

[0083]

[0084] In the formula, It is the combined prediction result of the prediction values ​​of k prediction methods; is the unbiased forecast value of annual electricity consumption of k forecast methods. If for i = 1, 2, ..., k, limit w i (1) = w i (2) =… = w i (n+l), that is, the weights of various prediction methods at different times are the same, then the above combined prediction is a constant weight combined prediction.

[0085] In the above step 2), due to the different characteristics of various prediction methods, their prediction effects are also changing over time. For example, some prediction methods are only highly accurate in short-term trend prediction, while some prediction methods have advantages in long-term trend prediction. Therefore, the constant weight combination prediction model sometimes cannot reflect the actual situation well. Therefore, it is necessary and meaningful to use Q learning to study the variable weight combination prediction model.

[0086] The main purpose of using reinforcement learning in this embodiment is to modify the combined weight of the current prediction method according to the prediction error, increase the weight coefficient of the prediction method with a smaller variance, reduce the weight coefficient of the prediction method with a larger variance, roll the combined weight, and achieve adaptive dynamic adjustment. The Q learning in reinforcement learning is adopted in this embodiment. The main idea is that the agent evaluates the learned value function Q(s,a) by directly optimizing and evaluating the iteratively calculable state-action pair, and seeks the optimal strategy online to maximize the sum of the expected discounted rewards, thereby finding the optimal action strategy.

[0087] Specifically, the Q value function of the power prediction at time t is calculated, and the Q value at time t+1 is evaluated and updated in combination with the timing characteristics of the super fast charging station, including the following steps:

[0088] 2.1) Define Q value:

[0089] Q n (s,a)=E[r|(s,a)]+γ∑ s′ T a ss′ maxQ n (s′,a′) (5)

[0090] 2.2) Evaluation of Q value:

[0091]

[0092] In the formula, Q(s,a) is the Q-value function of executing action a in state s; Q(s',a) is the Q-value function of executing action a in state s'; S is the state set; A is the action set; s is the current state; s' is the state at the next moment; R(s,s',a) is the immediate reinforcement signal given by state s after the control action a occurs and transfers to state s', which is the reward function value; γ is the discount factor, which determines the impact of the future reward function on the current action;

[0093] 2.3) The Q learning algorithm uses an iterative calculation method to obtain the estimated value of the optimal Q value function. Let Q k Represents the optimal value function Q * The kth iteration value of , and the experience gained by the controller or agent through this trial learning is taken as [s k ,a,r,s k+1 ] samples, so the iterative formula for updating the Q value is:

[0094]

[0095] In the formula, Q k Represents the optimal value function Q * The k-th iteration value of k ,a,r,s k+1 ] is a sample. α is a learning factor, 0<α<1, which is used to indicate how much trust to give to the improved update part. A larger α value will speed up the convergence of the Q learning algorithm, and a smaller α value can ensure that the search space of the controller is large enough, thereby improving the stability of Q learning convergence. a′ represents the possible actions in the next state s′, Respectively represent the difference between s k 、a k Any state and possible actions other than .

[0096] In the above step 2), a complete and reliable Q matrix is ​​formed through offline learning. The Q matrix has two dimensions: the combined weight of the combined prediction model and the current objective factors. Specifically, reinforcement learning is used to dynamically adjust the parameters of the combined prediction model, and the weight coefficients of various prediction methods in the combined prediction model and the current objective factors are used as state-action pairs. The variance under the weight coefficient condition is filled into the Q matrix, and a complete and reliable Q matrix is ​​formed through offline learning to dynamically update the combined weight. According to the variance and covariance of various prediction methods, the combined prediction can be realized by learning a large amount of historical data and continuously updating the weight values ​​of each prediction method by updating the Q matrix to achieve adaptive variable weight combined prediction.

[0097] Specifically, in this embodiment, the opposite of the prediction error is used as the reward value function (R). On the basis of the prediction results of multiple basic prediction methods, a large amount of historical electricity consumption data and objective factors such as electric vehicle charging amount, traffic flow, and charging pile utilization rate in the corresponding prediction time period need to be provided. According to the basic theory of Q learning, the combined weight values ​​of multiple combined prediction methods and the current objective factors are respectively used as the two dimensions of the knowledge matrix, and the prediction error is filled in the matrix to complete the offline learning process.

[0098] In the above step 3), during online updating, if the online state is completely consistent with a state in the Q matrix, the Q matrix is ​​directly searched to obtain the combination weight; if the online state is not completely consistent with any state in the Q matrix, the similar day method is used to compare the similarity of objective factors such as the electric vehicle charging amount, traffic flow, and charging pile utilization rate in the predicted time period with the corresponding historical data in the Q matrix.

[0099] In the above step 3), similar days are selected according to objective factors under current conditions, and similar day prediction weights are updated online, including the following steps:

[0100] 3.1) Determine and select similar days.

[0101] Assume that the feature vector of the day to be predicted is x, x = [t1, T, t2], and the feature vector of the jth similar historical day is x j , x j =[t 1j ,T j ,t 2j ], where t1 represents the charging capacity of the electric vehicle on the day to be predicted, T represents the traffic flow, and t2 represents the utilization rate of the charging pile; similarly, it can be inferred that x j The meaning of each element in .

[0102] 3.2) Using the grey correlation coefficient method, predict day x and historical day x j The correlation coefficient ξ of the kth eigencomponent i(k), and according to the correlation coefficient ξ i (k) Get the feature vector x of similar historical days j (k) The relevance of the forecast day x(k);

[0103] Among them, the correlation coefficient ξ i (k) is:

[0104]

[0105] In the formula, ξ i (k) is x j (k) is the correlation coefficient with the kth characteristic component of the measured day, ρ∈[0,1] is the resolution coefficient, which is generally taken as 0.5.

[0106] 3.3) Since each eigenvector component has a correlation number, it is not easy to compare. Therefore, formula (9) is given as the eigenvector x of similar historical days. j (k) is the correlation of the forecast day x(k). When forecasting, we start by calculating the correlation between the forecast day and the jth historical day closest to it, and calculate the correlation value r on a daily basis. j , by the correlation value r j Get the daily feature similarity index O j ; Daily feature similarity index O j The smaller the value, the higher the similarity of daily characteristics.

[0107]

[0108] O j =1-r j (10)

[0109] By comparing and selecting similar days in historical data, and under the objective conditions of the similar days, the combination weight with the smallest combination prediction variance is found online as the final value of the adaptive correction. This online learning process takes a very short time and has a great advantage over traditional methods in terms of update speed; at the same time, under the premise that the reliability of historical data can be guaranteed, the accuracy of the Q learning method will also be better than that of traditional analytical algorithms.

[0110] In summary, the reinforcement learning-based distribution network electric vehicle load forecasting method proposed in the present invention can effectively improve the accuracy and adaptability of the forecast. The present invention aims to overcome the limitations of existing forecasting technologies in dealing with the dynamic changes in the spatiotemporal distribution of electric vehicle charging loads, especially in the face of the rapid development of electric vehicle technology and the interactive characteristics of power grids. Taking into account the significant randomness and intermittent characteristics of the charging load of super-fast charging stations, by introducing reinforcement learning algorithms, especially Q-learning, the present invention can dynamically adjust the weights of the forecasting model according to the real-time forecast error, thereby realizing adaptive forecasting of electric vehicle charging loads. This not only helps to optimize the planning of electric vehicle charging facilities, but also provides a scientific basis for the configuration of power grid resources and the improvement of operating efficiency, thereby supporting the efficient and stable operation of the power system in the context of large-scale access of electric vehicles.

[0111] In one embodiment of the present invention, a parameter adaptive electric vehicle load forecasting system based on reinforcement learning is provided, which includes:

[0112] The first processing module collects the load data of the super-fast charging station in real time, calculates the prediction error variance of the charging load of the super-fast charging station at time t, and constructs a combined prediction model based on multiple prediction methods according to the prediction error variance;

[0113] The reinforcement learning module uses reinforcement learning to calculate the Q value function of power prediction at time t based on real-time data and prediction errors. Combined with the timing characteristics of the super-fast charging station, it evaluates and updates the Q value at time t+1, so as to form a Q matrix with two dimensions: the combined weight of the combined prediction model and the current objective factors through offline learning.

[0114] The output module selects similar days according to objective factors under current conditions, updates the prediction weights of similar days online, and searches for the combination weights with the smallest variance in the combined prediction model in the output Q matrix to perform adaptive variable weight combination prediction; wherein the objective factors include at least one of the electric vehicle charging amount, traffic flow and charging pile utilization rate.

[0115] In the above embodiment, the variance of the prediction error of the charging load of the super fast charging station at a certain moment is calculated as:

[0116]

[0117] In the formula, σ 11 ,σ 22 ,...,σ kk is the variance of the prediction error of each of the k prediction methods; e 11 ,e 12 ,e 13 ,…,e kn is the prediction error of each of the k prediction methods for n consecutive years.

[0118] In the above embodiment, a combined prediction model based on multiple prediction methods is constructed according to the prediction error variance, including:

[0119] The actual value of the combined weight is calculated based on the forecast error variance, and the revised value of the combined weight is determined based on the actual value;

[0120] Based on the unbiased prediction values ​​of annual electricity consumption and combined weights of multiple prediction methods, a combined prediction model is obtained.

[0121] In the above embodiment, the Q value function of the power prediction at time t is calculated, and the Q value at time t+1 is evaluated and updated in combination with the timing characteristics of the super fast charging station, including:

[0122] Define Q value:

[0123] Q n (s,a)=e[r|(s,a)]+γ∑ s′ T a ss′ maxQ n (s′,a′)

[0124] Evaluation of Q value:

[0125]

[0126] Where Q(s,a) is the Q-value function of executing action a in state s; Q(s',a) is the Q-value function of executing action a in state s'; S is the state set; A is the action set; s is the current state; s' is the state at the next moment; R(s,s',a) is the immediate reinforcement signal given by state s after the control action a occurs and transfers to state s', which is the reward function value; γ is the discount factor;

[0127] The iterative formula for updating the Q value is:

[0128]

[0129] Where α is the learning factor, 0<α<1; Q k Represents the optimal value function Q * The k-th iteration value of k ,a,r,s k+1 ] is a sample.

[0130] In the above embodiment, a Q matrix having two dimensions of the combined weight of the combined prediction model and the current objective factors is formed through offline learning, including:

[0131] Reinforcement learning is used to dynamically adjust the parameters of the combined prediction model. The weight coefficients of various prediction methods in the combined prediction model and the current objective factors are used as state-action pairs. The variance under the weight coefficient condition is filled into the Q matrix. A complete and reliable Q matrix is ​​formed through offline learning to dynamically update the combined weights.

[0132] In the above embodiment, during online updating, if the online state is completely consistent with a state in the Q matrix, the Q matrix is ​​directly searched to obtain the combined weight;

[0133] If the online state is not completely consistent with any state in the Q matrix, the similarity between the objective factors in the time period to be predicted and the corresponding historical data in the Q matrix is ​​compared through the similar day method.

[0134] In the above embodiment, similar days are selected according to objective factors under current conditions, and similar day prediction weights are updated online, including:

[0135] If the feature vector of the day to be predicted is x, x = [t1, T, t2], the feature vector of the jth similar historical day is x j , x j =[t 1j ,T j ,t 2j ], where t1 represents the charging amount of the electric vehicle on the day to be predicted, T represents the traffic flow, and t2 represents the utilization rate of the charging pile;

[0136] Using the grey correlation coefficient method, predict day x and historical day x j The correlation coefficient ξ of the kth eigencomponent i (k), and according to the correlation coefficient ξ i (k) Get the feature vector x of similar historical days j (k) The relevance of the forecast day x(k);

[0137] When making predictions, we start by calculating the correlation between the prediction date and the jth closest historical day, and calculate the correlation value r day by day. j , by the correlation value r j The daily feature similarity index is obtained; the smaller the daily feature similarity index value is, the higher the degree of daily feature similarity is.

[0138] The system provided in this embodiment is used to execute the above-mentioned method embodiments. Please refer to the above-mentioned embodiments for specific processes and detailed contents, which will not be repeated here.

[0139] In one embodiment of the present invention, a computing device is provided, which may be a terminal, and may include: a processor, a communication interface, a memory, a display screen, and an input device. Among them, the processor, the communication interface, and the memory communicate with each other through a communication bus. The processor is used to provide computing and control capabilities. The memory includes a non-volatile storage medium and an internal memory, and the non-volatile storage medium stores an operating system and a computer program. When the computer program is executed by the processor, the method in each of the above embodiments is implemented; the internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The communication interface is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a management network, NFC (near field communication) or other technologies. The display screen may be a liquid crystal display screen or an electronic ink display screen, and the input device may be a touch layer covered on the display screen, or a key, trackball or touchpad provided on the housing of the computing device, or an external keyboard, touchpad or mouse, etc. The processor may call the logic instructions in the memory.

[0140] In addition, the logic instructions in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0141] In one embodiment of the present invention, a computer program product is provided, wherein the computer program product includes a computer program stored on a non-transitory computer-readable storage medium, wherein the computer program includes program instructions. When the program instructions are executed by a computer, the computer can execute the methods provided by the above-mentioned method embodiments.

[0142] In one embodiment of the present invention, a non-transitory computer-readable storage medium is provided, wherein the non-transitory computer-readable storage medium stores server instructions, and the computer instructions enable a computer to execute the methods provided in the above embodiments.

[0143] The above embodiment provides a computer-readable storage medium, whose implementation principle and technical effect are similar to those of the above method embodiment, and will not be repeated here.

[0144] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0145] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0146] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0147] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A parameter adaptive electric vehicle load forecasting method based on reinforcement learning, characterized in that: include: Collect the load data of super-fast charging stations in real time, calculate the prediction error variance of the charging load of super-fast charging stations at time t, and build a combined prediction model based on multiple prediction methods according to the prediction error variance; Reinforcement learning is used to calculate the Q-value function of power prediction at time t based on real-time data and prediction errors. Combined with the timing characteristics of super-fast charging stations, the Q-value at time t+1 is evaluated and updated to form a Q matrix with two dimensions: the combined weight of the combined prediction model and the current objective factors through offline learning. Select similar days according to objective factors under current conditions, update similar day prediction weights online, and find the combined weight with the minimum variance in the combined prediction model in the output Q matrix to perform adaptive variable weight combined prediction; Among them, objective factors include at least one of electric vehicle charging volume, traffic flow and charging pile utilization rate.

2. The parameter adaptive electric vehicle load forecasting method based on reinforcement learning as claimed in claim 1, characterized in that: Calculate the variance of the super-fast charging station charging load prediction error at a certain moment: In the formula, σ 11 ,σ 22 ,...,σ kk is the variance of the prediction error of each of the k prediction methods; e it is the prediction error of each i-th prediction method for t consecutive years.

3. The parameter adaptive electric vehicle load forecasting method based on reinforcement learning as claimed in claim 1, characterized in that: According to the forecast error variance, a combined forecast model based on multiple forecasting methods is constructed, including: The actual value of the combined weight is calculated based on the forecast error variance, and the revised value of the combined weight is determined based on the actual value; Based on the unbiased prediction values ​​of annual electricity consumption and combined weights of multiple prediction methods, a combined prediction model is obtained.

4. The parameter adaptive electric vehicle load forecasting method based on reinforcement learning as claimed in claim 1, characterized in that: Calculate the Q value function of power prediction at time t, combine the timing characteristics of the super fast charging station, evaluate and update the Q value at time t+1, including: Define Q value: Q n (s,a)=E[r|(s,a)]+γ∑ s′ T a ss′ max Q n (s′,a′) Evaluation of Q value: Where Q(s,a) is the Q-value function of executing action a in state s; Q(s',a) is the Q-value function of executing action a in state s'; S is the state set; A is the action set; s is the current state; s' is the state at the next moment; R(s,s',a) is the immediate reinforcement signal given by state s after the control action a occurs and transfers to state s', which is the reward function value; γ is the discount factor; The iterative formula for updating the Q value is: Where α is the learning factor, 0<α<1; Q k Represents the optimal value function Q * The k-th iteration value of k ,a,r,s k+1 ] is a sample.

5. The parameter adaptive electric vehicle load forecasting method based on reinforcement learning as claimed in claim 1, characterized in that: Through offline learning, a Q matrix with two dimensions, namely, the combined weight of the combined prediction model and the current objective factors, is formed, including: Reinforcement learning is used to dynamically adjust the parameters of the combined prediction model. The weight coefficients of various prediction methods in the combined prediction model and the current objective factors are used as state-action pairs. The variance under the weight coefficient condition is filled into the Q matrix. A complete and reliable Q matrix is ​​formed through offline learning to dynamically update the combined weights.

6. The parameter adaptive electric vehicle load forecasting method based on reinforcement learning as claimed in claim 1, characterized in that: During online updating, if the online state is exactly the same as a state in the Q matrix, the Q matrix is ​​directly searched to obtain the combined weight; If the online state is not completely consistent with any state in the Q matrix, the similarity between the objective factors in the time period to be predicted and the corresponding historical data in the Q matrix is ​​compared through the similar day method.

7. The parameter adaptive electric vehicle load forecasting method based on reinforcement learning as claimed in claim 1, characterized in that: Select similar days based on objective factors under current conditions and update similar day prediction weights online, including: Assume that the feature vector of the day to be predicted is x, x = [t1, T, t2], and the feature vector of the jth similar historical day is x j , x j =[t 1j ,T j ,t 2j ], where t1 represents the charging amount of the electric vehicle on the day to be predicted, T represents the traffic flow, and t2 represents the utilization rate of the charging pile; Using the grey correlation coefficient method, predict day x and historical day x j The correlation coefficient ξ of the kth eigencomponent i (k), and according to the correlation coefficient ξ i (k) Get the feature vector x of similar historical days j (k) The relevance of the forecast day x(k); When making predictions, we start by calculating the correlation between the prediction date and the jth closest historical day, and calculate the correlation value r day by day. j , by the correlation value r j The daily feature similarity index is obtained; the smaller the daily feature similarity index value is, the higher the degree of daily feature similarity is.

8. A parameter adaptive electric vehicle load forecasting system based on reinforcement learning, characterized in that: include: The first processing module collects the load data of the super-fast charging station in real time, calculates the prediction error variance of the charging load of the super-fast charging station at time t, and constructs a combined prediction model based on multiple prediction methods according to the prediction error variance; The reinforcement learning module uses reinforcement learning to calculate the Q value function of power prediction at time t based on real-time data and prediction errors. Combined with the timing characteristics of the super-fast charging station, it evaluates and updates the Q value at time t+1, so as to form a Q matrix with two dimensions: the combined weight of the combined prediction model and the current objective factors through offline learning. The output module selects similar days according to objective factors under current conditions, updates the prediction weights of similar days online, and searches for the combination weights with the smallest variance in the combined prediction model in the output Q matrix to perform adaptive variable weight combination prediction; wherein the objective factors include at least one of the electric vehicle charging amount, traffic flow and charging pile utilization rate.

9. A computer-readable storage medium storing one or more programs, characterized in that: The one or more programs include instructions, which, when executed by a computing device, cause the computing device to perform any one of the methods of claims 1 to 7.

10. A computing device, characterized in that: include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, and the one or more programs include instructions for executing any one of the methods described in claims 1 to 7.

Citation Information

Cited By

  • Multi-factor fusion electric vehicle charging station adjustable capacity prediction method

    CN120952226A