Charging station short-term load prediction method and device based on VMD decomposition and improved XGBoost

Through VMD decomposition and improvement of XGBoost algorithm, combined with particle swarm optimization, a short-term load prediction model for charging stations is built, which solves the problem of difficult to predict the load changes of charging stations, achieves more accurate and reliable load prediction, and improves the management efficiency of power grid and charging stations .

CN118964985APending Publication Date: 2024-11-15NANJING UNIV OF POSTS & TELECOMM
View PDF 0 Cites 8 Cited by

Patent Information

Application Number
CN202411015411.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-11-15

AI Technical Summary

Technical Problem

The prior art is difficult to accurately predict the load changes of charging stations, resulting in grid load overload and low charging efficiency, and lack of effective short-term load prediction methods.

Method used

Using VMD decomposition and improved XGBoost method, the charging station historical load data is preprocessed, feature extraction, modal decomposition and extreme gradient enhancement tree model construction, combined with particle swarm optimization algorithm, accurate prediction of short-term load of charging stations is achieved.

Benefits of technology

Effectively suppresses load data fluctuations, improves the accuracy and reliability of charging station load prediction, helps power companies optimize power grid planning and charging station management, and improves power supply reliability and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964985A_ABST
    Figure CN118964985A_ABST
Patent Text Reader

Abstract

The invention discloses a charging station short-term load prediction method based on VMD decomposition and improved XGBoost, and the method comprises the steps: firstly, selecting influence factors to construct an input feature set, and reducing the influence of irrelevant features; then, original random and nonlinear load data are decomposed into a limited number of intrinsic mode functions and residual components by using a VMD algorithm, and the intrinsic mode functions and the residual components are used as the input of an XGBoost algorithm together with load influence factors; and finally, optimizing parameters of the prediction model by adopting a PSO algorithm, respectively predicting each component data with mutually different features, and superposing, reconstructing and outputting a prediction value. According to the method, various load influence factors are considered, variational mode decomposition is performed on the preprocessed time series data set, and the time series data set is predicted based on the improved extreme gradient lifting algorithm model, so that the load prediction precision of the charging pile with high load volatility can be improved; therefore, an effective prediction service is provided for safe and stable operation of the electric vehicle charging station.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of charging station load prediction, and more specifically, relates to a charging station short-term load prediction method and device based on VMD decomposition and improved XGBoost. Background Art

[0002] With the construction and commissioning of a large number of electric vehicle charging equipment, their charging reliability and safety have gradually become the focus of attention.

[0003] However, charging stations will generate a large load on the power grid when charging, especially during peak hours. Therefore, accurately predicting the load of charging stations can help power companies plan the power grid more effectively, avoid overload, and improve power supply reliability. In addition, load prediction of charging stations can also help charging station managers better arrange the use of charging piles, improve charging efficiency and user experience. Therefore, charging station load prediction is one of the important research directions in the field of electricity and transportation. Studies have found that the load of charging stations is affected by many factors, such as the number of charging piles, charging rate, user behavior, etc., all of which will cause load fluctuations and uncertainties. Therefore, how to accurately capture the impact of these factors and establish an accurate load prediction model is a difficult point. In order to solve the above problems, it is of great significance to provide a simple and effective method for load prediction of electric vehicle charging stations. Summary of the invention

[0004] In view of the above defects or improvement needs of the prior art, the present invention proposes a method and device for short-term load forecasting of charging stations based on VMD decomposition and improved XGBoost, which uses variational mode decomposition to smooth the volatility of load data, thereby solving the technical problem that charging facilities are difficult to quickly and accurately predict the load changes of charging stations.

[0005] To achieve the above object, according to one aspect of the present invention, the present invention provides a method and device for short-term load forecasting of a charging station based on VMD decomposition and improved XGBoost, comprising:

[0006] Step 1: Obtain the historical load data of the charging station based on the monitoring equipment and perform preprocessing to construct a time series data set of the historical load data of the charging station;

[0007] Step 2: Select load influencing factors based on the preprocessed load data and construct feature vectors;

[0008] Step 3: Decompose the historical load data into modal functions and residual components based on the VMD algorithm to construct the input of the load forecasting model;

[0009] Step 4: Construct an extreme gradient boosting tree to model the short-term load forecasting method for charging stations;

[0010] Step 5: Optimize the parameters of the extreme gradient boosting tree based on the particle swarm optimization algorithm;

[0011] Step 6: A short-term load forecasting method based on VMD decomposition and improved XGBoost algorithm is used to achieve short-term accurate load forecasting of charging stations.

[0012] Preferably, the historical load data of the charging station is obtained based on the monitoring device and preprocessed to construct a time series data set of the historical load data of the charging station. The implementation process is:

[0013] Step 1.1: Obtain charging history data from the charging station backend database, including detailed data of different charging piles and charging guns under a charging station, specifically the charging record unique identifier, site ID, date, and charging amount;

[0014] Step 1.2: Perform data cleaning, remove outliers and missing values ​​from all charging history data, ensure data completeness and accuracy, and supplement and calculate the remaining data, including the average power of the day, the maximum power of the day, the minimum power of the day, the maximum temperature of the day, the minimum temperature of the day, the maximum temperature of the previous day, the minimum temperature of the previous day, the average power of the previous five days, etc.;

[0015] Preferably, the process of selecting load influencing factors and constructing feature vectors based on preprocessed load data is as follows:

[0016] Step 2.1: Select sample features, set the predicted load value as the output value, and set the factors affecting load prediction as the input vector. The factors affecting load include date factors, meteorological factors, and historical load factors.

[0017] Step 2.2: Testing steps for training samples and test samples. After analyzing the historical load factors, the following features are selected to consider the load influencing factors such as date factors and meteorological factors:

[0018] (1) Date factor: On weekdays, residents have a greater demand for electric vehicles only during the commuting time, and less demand at other times; on weekends, residents have more travel activities and the demand for electric vehicles is relatively high;

[0019] (2) Meteorological factors: When the outside temperature is high or low, the vehicle will use air conditioning, energy consumption will increase, the number of charging times will increase accordingly, and the total charging power will increase. In addition, temperature has a great impact on the battery capacity of the vehicle, and the battery charging time will also vary at different temperatures. Weather types mainly affect the driving of electric vehicles and the travel of residents. In rainy and snowy weather, residents' travel is relatively reduced, and the number of electric vehicles dispatched will also decrease; electric vehicles travel at a slower speed, and the number of daily charging times will be reduced accordingly. Therefore, sunny, rainy, cloudy and temperature are listed as characteristic factors;

[0020] (3) Historical load factors: Historical load data carries information about the regular changes in the periodic changes in the load of charging stations. The model can accurately predict the load value in the short term in the future by analyzing and learning the changing trends and characteristics of these data within a certain period of time. This method not only utilizes past data, but also captures the recent changes in the load, making the prediction results closer to reality and providing strong support for the operation and dispatch of the power system;

[0021] Step 2.3: Perform dummy feature processing. The weather data item is a categorical variable and is of text type, which does not meet the requirements of machine learning modeling. Qualitative feature dummy coding is performed on the weather data to convert it into a numerical type.

[0022] Step 2.4: Based on the above three categories, a total of 17 features are constructed for feature engineering.

[0023] Preferably, the VMD algorithm is used to decompose the historical load data into modal functions and residual components to construct the input of the load forecasting model. The implementation process is:

[0024] Step 3.1: Define the primitive function u k (t) represents the input signal, and the original function formula of the input signal is as follows:

[0025] u k (t) = A k (t)cos(φ k (t)), (1)

[0026] Among them, A k (t) is the amplitude function; φ k (t) is the phase function;

[0027] Step 3.2: Perform Hilbert transform on the historical load of the charging station. k (t) is subjected to Hilbert transform. The Hilbert transform can be regarded as passing the signal through a system whose impulse response is h(t). The Hilbert transform calculation formula is as follows:

[0028]

[0029] in, is the result of Hilbert transform; H[x(t)] is the Hilbert transform of function x(t); τ is the integral variable of convolution;

[0030] Substituting formula (1) into formula (2) to obtain the Hilbert transform of the charging station load data variation problem, the formula is as follows:

[0031]

[0032] Where δ(t) is the unit impulse function; j is the imaginary unit; u k (t) represents the input signal;

[0033] Step 3.3: Construct a variational problem model for charging station load data. Use the correction index to modify the transformation result so that the spectrum of each component is modulated to the corresponding baseband, and the modulated signal oscillates in the time domain with an equal-amplitude high-frequency oscillation. The amplitude of each frequency component of the modulated signal is halved. After the spectrum is adjusted, the signal is demodulated by Gaussian smoothing to obtain the bandwidth description formula of each modal function, that is, the corresponding constrained variational model. The variational model formula is as follows:

[0034]

[0035] Among them, {u k}={u1,u2,…,u k} is the set of each intrinsic mode function component; {w k}={w1,w2,…,w k} is the set of corresponding center frequencies; k is the number of modal components; is the partial derivative of the function with respect to time t; δ(t) is the unit pulse function; f(t) is the function of the original sequence signal;

[0036] Step 3.4: Solve the variational problem. Using the quadratic penalty factor α and the Lagrange multiplier λ, the constrained variational problem is transformed into an unconstrained variational problem. The transformed Lagrangian function L({u k},{ω k},λ) is:

[0037]

[0038] Among them, {u k}={u1,u2,…,u k} is the set of each intrinsic mode function component; {w k}={w1,w2,…,w k} is the set of corresponding center frequencies; λ is the Lagrange multiplier; α is the quadratic penalty factor; k is the number of modal components; is the partial derivative of the function with respect to time t; f(t) is the function of the original sequence signal; <,> represents the inner product operation;

[0039] The alternating multiplier method is used to search for saddle points and continuously update constraint parameters. The update formulas for the three parameters are as follows:

[0040]

[0041]

[0042] Among them, η is the noise tolerance, which is used to buffer the interference caused by the presence of strong noise; Represents the value of the Lagrange multiplier in the frequency domain ω after the n+1th iteration; represents the value of the Lagrange multiplier in the frequency domain ω after the nth iteration; Represents the Fourier transform of the signal f(t) in the frequency domain; is the Fourier transform of the kth modal component in the frequency domain after the n+1th iteration; is the center frequency after the n+1th iteration;

[0043] Step 3.5: Repeat the iteration to update the parameter value until the iteration convergence condition is met. The convergence condition formula is as follows:

[0044]

[0045] Among them, ε is the accuracy control value, which is used to limit the relative error.

[0046] Preferably, the extreme gradient boosting tree is constructed to model the short-term load forecasting method for charging stations, and the implementation process is:

[0047] Step 4.1: Construct a decision tree to act as a learner for the extreme gradient boosting tree. Assume that there are t decision trees. The output of the tth decision tree is expressed as:

[0048]

[0049] in, For sample x i The sum of the prediction values ​​of the first t-1 trees; For sample x i The leaf node value.

[0050] Step 4.2: Create node set I j The mapping relationship between samples is obtained by q(x i ) function finds the node j where the sample is located. The mapping relationship formula is as follows:

[0051] I j ={i|q(x i )=j}, (11)

[0052] Step 4.3: Build an extreme gradient boosting tree and optimize the model objective function. The specific steps are as follows:

[0053] First, determine the objective function formula as follows:

[0054]

[0055] in, is the loss function, which represents the error between the predicted value and the true value; Ω(f t ) is a regularization term used to prevent overfitting function, and its expression is:

[0056]

[0057] Among them, γ and ζ are penalty coefficients to prevent l or The impact of excessive size on the model; l is the number of leaf nodes; w j is the optimal weight of leaf node j;

[0058] Secondly, the loss function in formula (12) is approximated by the second-order Taylor expansion, and the constant term is removed to optimize the loss function. The results are as follows:

[0059]

[0060] Then, solve the optimal leaf node value The solution process is as follows:

[0061]

[0062] Among them, g i 、h i is the function f t (x i )’s first and second order partial derivatives.

[0063] The objective function after the model is finally solved is as follows:

[0064]

[0065] Among them, G j , H j is the function f t (x i ) is the cumulative sum of the first-order and second-order partial derivatives; γ and ζ are penalty coefficients; l is the number of leaf nodes.

[0066] Preferably, the particle swarm optimization algorithm is used to optimize the parameters of the extreme gradient boosting model, and the implementation process is as follows:

[0067] Step 5.1: Initialize the particle swarm parameter settings and set the number of particle swarms N p , number of iterations t p , the search dimension is D p ;

[0068] Step 5.2: Initialize the position and speed of the particle swarm algorithm. The initial position of the particle is random, and the position of the randomly generated i-th particle is X i =(l r ,m d ,G a ,n e ), where l r Represents the learning rate range of the extreme gradient boosting model, m d is the maximum depth of the extreme gradient boosting model tree, G a is the value range of the Gamma function, n e is the number of trees;

[0069] Step 5.3: Determine the fitness function of the particle swarm algorithm, use the extreme gradient boosting model to train the training set, and compare the actual results with the predicted values. The fitness function is as follows:

[0070]

[0071] Among them, f(y) is the fitness function, y is the actual value of the i-th observation, y' is the predicted value, and m is the total number of data sets;

[0072] Step 5.4: Iterative calculation, calculate the new position of the particle after each iteration, and adjust the position and speed of the particle so that the particle constantly approaches the optimal position, thus finally obtaining the optimal solution. The update formula of speed and position is as follows:

[0073]

[0074] n=1+lnd max , (20)

[0075]

[0076] Among them, V i d 、V i d+1 is the particle velocity at the dth iteration and the d+1th iteration; is the particle position at the dth iteration and the d+1th iteration; w is the inertia weight, c1 and c2 are learning factors, r1 and r2 are random numbers on [0, 1]; P i d , is the optimal position and global optimal position of particle i in the d-th iteration and the d+1-th iteration; d is the current iteration number, and T is the time factor;

[0077] Step 5.5: After obtaining the optimal solution through iteration, the optimal learning rate, maximum depth of the tree, Gamma function value, and number of trees are transferred to the extreme gradient boosting model.

[0078] Preferably, the charging station short-term load forecasting method based on VMD decomposition and improved XGBoost realizes the short-term load forecasting of the charging station, and the implementation process is:

[0079] Step 6.1: Obtain the historical load data of the charging station based on the monitoring equipment and perform preprocessing to construct a time series data set of the historical load data of the charging station;

[0080] Step 6.2: Select load influencing factors based on the preprocessed load data and construct a feature vector;

[0081] Step 6.3: Decompose the historical load data into modal functions and residual components based on the VMD algorithm, and divide them into test sets and training sets;

[0082] Step 6.4: Input the training set into the extreme gradient boosting model after the particle swarm algorithm optimizes the parameters for training;

[0083] Step 6.5: Input the test set into the trained model to test the error of the model in predicting the short-term load of the charging station to verify the correctness and reliability of the model.

[0084] Preferably, the device for short-term load forecasting of charging stations based on VMD decomposition and improved XGBoost is implemented as follows:

[0085] A data acquisition module, used to obtain historical load data of the charging station;

[0086] A data preprocessing module, used to process the historical data information, determine the characteristic vector of the data influencing factors, and generate a time series data set of the historical load data of the charging station;

[0087] A feature construction module is used to select load influencing factors and construct feature vectors based on preprocessed load data;

[0088] Data decomposition module, used to decompose historical load data into various modal functions and residual components based on VMD algorithm to construct the input of prediction model;

[0089] Model parameter optimization module, used to train extreme gradient boosting models optimized by particle swarm algorithm based on time series data sets;

[0090] The load forecasting module is used to input the characteristic vector of the target data into the extreme gradient boosting model optimized by the particle swarm algorithm that meets the preset conditions to obtain the short-term load forecasting result of the charging station.

[0091] A computer-readable storage medium stores computer instructions, which, when executed by a processor, implement the charging station short-term load forecasting method based on VMD decomposition and improved XGBoost.

[0092] A storage medium stores a computer program, which, when executed by a processor, implements the charging station short-term load forecasting method based on VMD decomposition and improved XGBoost.

[0093] In general, the above technical solutions conceived by the present invention can achieve the following beneficial effects compared with the prior art:

[0094] The present invention is directed to a short-term load forecasting method for an electric vehicle charging station. First, the historical load data of the charging station is preprocessed to construct a time series data set of the historical load data of the charging station; then, the historical load data is decomposed into a modal function and a residual component based on the VMD algorithm to construct the input and features of the prediction model; secondly, an extreme gradient boosting model is constructed to model the load forecasting method for the charging station; thirdly, the parameters of the extreme gradient boosting model are optimized based on the particle swarm optimization algorithm; finally, a short-term load forecasting method for charging stations based on VMD decomposition and improved XGBoost is used to achieve short-term load forecasting for charging stations. By analyzing the influencing factors of the historical load data of the charging station, variational mode decomposition is used to smooth the volatility of the load data and reduce its impact on load forecasting. The improved XGBoost model is used to predict the load changes of the charging station at different times and states, which makes up for the defect that the existing technology in new energy charging is difficult to accurately predict load changes. It lays the foundation for future new energy charging technologies, such as adaptive diagnosis and adaptive prediction. BRIEF DESCRIPTION OF THE DRAWINGS

[0095] Figure 1 It is a flow chart of a method for short-term load forecasting of a charging station based on VMD decomposition and improved XGBoost provided by an embodiment of the present invention;

[0096] Figure 2 A charging station short-term load forecasting device based on VMD decomposition and improved XGBoost is provided in an embodiment of the present invention;

[0097] Figure 3It is a comparison chart of the prediction results of a charging station short-term load prediction method and device based on VMD decomposition and improved XGBoost provided by an embodiment of the present invention and the prediction results of other load prediction models. DETAILED DESCRIPTION

[0098] 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.

[0099] Example 1: Figure 1 The figure shows a charging station short-term load forecasting method based on VMD decomposition and improved XGBoost according to an embodiment of the present invention. The method comprises the following steps:

[0100] Step 1: Obtain the historical load data of the charging station based on the monitoring equipment and perform preprocessing to construct a time series data set of the historical load data of the charging station;

[0101] Step 2: Select load influencing factors based on the preprocessed load data and construct feature vectors;

[0102] Step 3: Decompose the historical load data into modal functions and residual components based on the VMD algorithm to construct the input of the load forecasting model;

[0103] Step 4: Construct an extreme gradient boosting tree to model the short-term load forecasting method for charging stations;

[0104] Step 5: Optimize the parameters of the extreme gradient boosting tree based on the particle swarm optimization algorithm;

[0105] Step 6: A short-term load forecasting method based on VMD decomposition and improved XGBoost algorithm is used to achieve short-term accurate load forecasting of charging stations.

[0106] Preferably, the historical load data of the charging station is obtained based on the monitoring device and preprocessed to construct a time series data set of the historical load data of the charging station. The implementation process is:

[0107] Step 1.1: Obtain charging history data from the charging station backend database, including detailed data of different charging piles and charging guns under a charging station, specifically the charging record unique identifier, site ID, date, and charging amount;

[0108] Step 1.2: Perform data cleaning, remove outliers and missing values ​​from all charging history data, ensure data completeness and accuracy, and supplement and calculate the remaining data, including the average power of the day, the maximum power of the day, the minimum power of the day, the maximum temperature of the day, the minimum temperature of the day, the maximum temperature of the previous day, the minimum temperature of the previous day, the average power of the previous five days, etc.;

[0109] Preferably, the process of selecting load influencing factors and constructing feature vectors based on preprocessed load data is as follows:

[0110] Step 2.1: Select sample features, set the predicted load value as the output value, and set the factors affecting load prediction as the input vector. The factors affecting load include date factors, meteorological factors, and historical load factors.

[0111] Step 2.2: Testing steps for training samples and test samples. After analyzing the historical load factors, the following features are selected to consider the load influencing factors such as date factors and meteorological factors:

[0112] (1) Date factor: On weekdays, residents have a greater demand for electric vehicles only during the commuting time, and less demand at other times; on weekends, residents have more travel activities and the demand for electric vehicles is relatively high;

[0113] (2) Meteorological factors: When the outside temperature is high or low, the vehicle will use air conditioning, energy consumption will increase, the number of charging times will increase accordingly, and the total charging power will increase. In addition, temperature has a great impact on the battery capacity of the vehicle, and the battery charging time will also vary at different temperatures. Weather types mainly affect the driving of electric vehicles and the travel of residents. In rainy and snowy weather, residents' travel is relatively reduced, and the number of electric vehicles dispatched will also decrease; electric vehicles travel at a slower speed, and the number of daily charging times will be reduced accordingly. Therefore, sunny, rainy, cloudy and temperature are listed as characteristic factors;

[0114] (3) Historical load factors: Historical load data carries information about the regular changes in the periodic changes in the load of charging stations. The model can accurately predict the load value in the short term in the future by analyzing and learning the changing trends and characteristics of these data within a certain period of time. This method not only utilizes past data, but also captures the recent changes in the load, making the prediction results closer to reality and providing strong support for the operation and dispatch of the power system;

[0115] Step 2.3: Perform dummy feature processing. The weather data item is a categorical variable and is of text type, which does not meet the requirements of machine learning modeling. Qualitative feature dummy coding is performed on the weather data to convert it into a numerical type.

[0116] Step 2.4: Based on the above three categories, a total of 17 features are constructed for feature engineering.

[0117] Preferably, the VMD algorithm is used to decompose the historical load data into modal functions and residual components to construct the input of the load forecasting model. The implementation process is:

[0118] Step 3.1: Define the primitive function u k (t) represents the input signal, and the original function formula of the input signal is as follows:

[0119] u k (t) = A k (t)cos(φ k (t)), (1)

[0120] Among them, A k (t) is the amplitude function; φ k (t) is the phase function;

[0121] Step 3.2: Perform Hilbert transform on the historical load of the charging station. k (t) is subjected to Hilbert transform. The Hilbert transform can be regarded as passing the signal through a system whose impulse response is h(t). The Hilbert transform calculation formula is as follows:

[0122]

[0123] in, is the result of Hilbert transform; H[x(t)] is the Hilbert transform of function x(t); τ is the integral variable of convolution;

[0124] Substituting formula (1) into formula (2) to obtain the Hilbert transform of the charging station load data variation problem, the formula is as follows:

[0125]

[0126] Where δ(t) is the unit impulse function; j is the imaginary unit; u k (t) represents the input signal;

[0127] Step 3.3: Construct a variational problem model for charging station load data. Use the correction index to modify the transformation result so that the spectrum of each component is modulated to the corresponding baseband, and the modulated signal oscillates in the time domain with an equal amplitude and high frequency. The amplitude of each frequency component of the modulated signal is halved. After the spectrum is adjusted, the signal is demodulated by Gaussian smoothing to obtain the bandwidth description formula of each modal function, that is, the corresponding constrained variational model. The variational model formula is as follows:

[0128]

[0129] Among them, {u k}={u1,u2,…,u k} is the set of each intrinsic mode function component; {w k}={w1,w2,…,w k} is the set of corresponding center frequencies; k is the number of modal components; is the partial derivative of the function with respect to time t; δ(t) is the unit pulse function; f(t) is the function of the original sequence signal;

[0130] Step 3.4: Solve the variational problem. Using the quadratic penalty factor α and the Lagrange multiplier λ, the constrained variational problem is transformed into an unconstrained variational problem. The transformed Lagrangian function L({u k},{ω k},λ) is:

[0131]

[0132] Among them, {u k}={u1,u2,…,u k} is the set of each intrinsic mode function component; {w k}={w1,w2,…,w k} is the set of corresponding center frequencies; λ is the Lagrange multiplier; α is the quadratic penalty factor; k is the number of modal components; is the partial derivative of the function with respect to time t; f(t) is the function of the original sequence signal; <,> represents the inner product operation;

[0133] The alternating multiplier method is used to search for saddle points and continuously update constraint parameters. The update formulas for the three parameters are as follows:

[0134]

[0135] Among them, η is the noise tolerance, which is used to buffer the interference caused by the presence of strong noise; Represents the value of the Lagrange multiplier in the frequency domain ω after the n+1th iteration; represents the value of the Lagrange multiplier in the frequency domain ω after the nth iteration; Represents the Fourier transform of the signal f(t) in the frequency domain; is the Fourier transform of the kth modal component in the frequency domain after the n+1th iteration; is the center frequency after the n+1th iteration;

[0136] Step 3.5: Repeat the iteration to update the parameter value until the iteration convergence condition is met. The convergence condition formula is as follows:

[0137]

[0138] Among them, ε is the accuracy control value, which is used to limit the relative error.

[0139] Preferably, the extreme gradient boosting tree is constructed to model the short-term load forecasting method for charging stations, and the implementation process is:

[0140] Step 4.1: Construct a decision tree to act as a learner for the extreme gradient boosting tree. Assume that there are t decision trees. The output of the tth decision tree is expressed as:

[0141]

[0142] in, For sample x i The sum of the prediction values ​​of the first t-1 trees; For sample x i The leaf node value.

[0143] Step 4.2: Create node set I j The mapping relationship between samples is obtained by q(x i ) function finds the node j where the sample is located. The mapping relationship formula is as follows:

[0144] I j ={i|q(x i )=j}, (11)

[0145] Step 4.3: Build an extreme gradient boosting tree and optimize the model objective function. The specific steps are as follows:

[0146] First, determine the objective function formula as follows:

[0147]

[0148] in, is the loss function, which represents the error between the predicted value and the true value; Ω(f t ) is a regularization term used to prevent overfitting function, and its expression is:

[0149]

[0150] Among them, γ and ζ are penalty coefficients to prevent l or The impact of excessive size on the model; l is the number of leaf nodes; w j is the optimal weight of leaf node j;

[0151] Secondly, the loss function in formula (12) is approximated by the second-order Taylor expansion, and the constant term is removed to optimize the loss function. The results are as follows:

[0152]

[0153] Then, solve the optimal leaf node value The solution process is as follows:

[0154]

[0155] Among them, g i 、h i is the function f t (x i )’s first and second order partial derivatives.

[0156] The objective function after the model is finally solved is as follows:

[0157]

[0158] Among them, G j , H j is the function f t (x i ) is the cumulative sum of the first-order and second-order partial derivatives; γ and ζ are penalty coefficients; l is the number of leaf nodes.

[0159] Preferably, the particle swarm optimization algorithm is used to optimize the parameters of the extreme gradient boosting model, and the implementation process is as follows:

[0160] Step 5.1: Initialize the particle swarm parameter settings and set the number of particle swarms N p , number of iterations t p , the search dimension is D p ;

[0161] Step 5.2: Initialize the position and speed of the particle swarm algorithm. The initial position of the particle is random, and the position of the randomly generated i-th particle is X i =(l r ,m d ,G a ,n e ), where l r Represents the learning rate range of the extreme gradient boosting model, m d is the maximum depth of the extreme gradient boosting model tree, G a is the value range of the Gamma function, n e is the number of trees;

[0162] Step 5.3: Determine the fitness function of the particle swarm algorithm, use the extreme gradient boosting model to train the training set, and compare the actual results with the predicted values. The fitness function is as follows:

[0163]

[0164] Among them, f(y) is the fitness function, y is the actual value of the i-th observation, y' is the predicted value, and m is the total number of data sets;

[0165] Step 5.4: Iterative calculation, calculate the new position of the particle after each iteration, and adjust the position and speed of the particle so that the particle constantly approaches the optimal position, thus finally obtaining the optimal solution. The update formula of speed and position is as follows:

[0166]

[0167] n=1+lnd max , (20)

[0168]

[0169] Among them, V i d 、V i d+1 is the particle velocity at the dth iteration and the d+1th iteration; is the particle position at the dth iteration and the d+1th iteration; w is the inertia weight, c1 and c2 are learning factors, r1 and r2 are random numbers on [0, 1]; P i d , is the optimal position and global optimal position of particle i in the d-th iteration and the d+1-th iteration; d is the current iteration number, and T is the time factor;

[0170] Step 5.5: After obtaining the optimal solution through iteration, the optimal learning rate, maximum depth of the tree, Gamma function value, and number of trees are transferred to the extreme gradient boosting model.

[0171] Preferably, the charging station short-term load forecasting method based on VMD decomposition and improved XGBoost realizes the short-term load forecasting of the charging station, and the implementation process is:

[0172] Step 6.1: Obtain the historical load data of the charging station based on the monitoring equipment and perform preprocessing to construct a time series data set of the historical load data of the charging station;

[0173] Step 6.2: Select load influencing factors based on the preprocessed load data and construct a feature vector;

[0174] Step 6.3: Decompose the historical load data into modal functions and residual components based on the VMD algorithm, and divide them into test sets and training sets;

[0175] Step 6.4: Input the training set into the extreme gradient boosting model after the particle swarm algorithm optimizes the parameters for training;

[0176] Step 6.5: Input the test set into the trained model to test the error of the model in predicting the short-term load of the charging station to verify the correctness and reliability of the model.

[0177] Example 2: Figure 2 As shown, a charging station short-term load forecasting device based on VMD decomposition and improved XGBoost according to an embodiment of the present invention includes the following modules:

[0178] A data acquisition module, used to obtain historical load data of the charging station;

[0179] A data preprocessing module, used to process the historical data information, determine the characteristic vector of the data influencing factors, and generate a time series data set of the historical load data of the charging station;

[0180] A feature construction module is used to select load influencing factors and construct feature vectors based on preprocessed load data;

[0181] Data decomposition module, used to decompose historical load data into various modal functions and residual components based on VMD algorithm to construct the input of prediction model;

[0182] Model parameter optimization module, used to train extreme gradient boosting models optimized by particle swarm algorithm based on time series data sets;

[0183] The load forecasting module is used to input the characteristic vector of the target data into the extreme gradient boosting model optimized by the particle swarm algorithm that meets the preset conditions to obtain the short-term load forecasting result of the charging station.

[0184] like Figure 3 As shown, a comparison chart of the prediction results of a charging station short-term load prediction method and device based on VMD decomposition and improved XGBoost provided by an embodiment of the present invention and the prediction results of other load prediction models:

[0185] The prediction results of the method are basically consistent with the trend of the true value, but compared with the other 6 methods, the prediction results of the VMD-PSO-XGBoost model are closer to the true value curve. According to the ablation experiment of XGBoost, it can be seen that the use of PSO for parameter optimization has a significant improvement in the prediction performance of the XGBoost model.

[0186] The specific implementation of each module can refer to the description of the above method embodiment, and the embodiment of the present invention will not be repeated.

[0187] In another embodiment of the present invention, a computer-readable storage medium is provided, on which program instructions are stored. When the program instructions are executed by a processor, the important delay tap selection method of the channel impulse response as described above is implemented.

[0188] It should be pointed out that, according to the needs of implementation, the various steps / components described in this application can be split into more steps / components, and two or more steps / components or partial operations of steps / components can be combined into new steps / components to achieve the purpose of the present invention.

[0189] The method according to the present invention described above can be implemented in hardware, firmware, or as software or computer code that can be stored in a recording medium (such as a CD ROM, RAM, floppy disk, hard disk or magneto-optical disk), or as a computer code that is originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and will be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a special-purpose processor or programmable or special-purpose hardware (such as an ASIC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the processing method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the processing shown here, the execution of the code converts the general-purpose computer into a special-purpose computer for executing the processing shown here.

[0190] 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. A charging station short-term load forecasting method based on VMD decomposition and improved XGBoost, characterized in that: include: Step 1: Obtain the historical load data of the charging station based on the monitoring equipment and perform preprocessing to construct a time series data set of the historical load data of the charging station; Step 2: Select load influencing factors based on the preprocessed load data and construct feature vectors; Step 3: Decompose the historical load data into modal functions and residual components based on the VMD algorithm to construct the input of the load forecasting model; Step 4: Construct an extreme gradient boosting tree to model the short-term load forecasting method for charging stations; Step 5: Optimize the parameters of the extreme gradient boosting tree based on the particle swarm optimization algorithm; Step 6: A short-term load forecasting method based on VMD decomposition and improved XGBoost algorithm is used to achieve short-term accurate load forecasting of charging stations.

2. The charging station short-term load forecasting method based on VMD decomposition and improved XGBoost according to claim 1 is characterized in that: Based on the monitoring equipment, the historical load data of the charging station is obtained and preprocessed to construct a time series data set of the historical load data of the charging station: Step 1.1: Obtain charging history data from the charging station backend database, including detailed data of different charging piles and charging guns under a charging station, specifically the charging record unique identifier, site ID, date, and charging amount; Step 1.2: Perform data cleaning, remove outliers and missing values ​​from all charging history data to ensure data completeness and accuracy, and supplement and calculate the remaining data, including the average power of the day, the maximum power of the day, the minimum power of the day, the maximum temperature of the day, the minimum temperature of the day, the maximum temperature of the previous day, the minimum temperature of the previous day, and the average power of the previous five days.

3. The charging station short-term load forecasting method based on VMD decomposition and improved XGBoost according to claim 1 is characterized in that: The process of selecting load influencing factors and constructing feature vectors based on preprocessed load data is as follows: Step 2.1: Select sample features, set the predicted load value as the output value, and set the factors affecting load prediction as the input vector. The factors affecting load include date factors, meteorological factors, and historical load factors. Step 2.2: Testing steps for training samples and test samples. After analyzing the historical load factors, the following features are selected to consider the load impact factors of date factors and meteorological factors: (1) Date factors: (2) Meteorological factors: sunny, rainy, cloudy and temperature are listed as characteristic factors; (3) Historical load factors: Step 2.3: Perform dummy feature processing. The weather data item is a categorical variable and is of text type, which does not meet the requirements of machine learning modeling. Qualitative feature dummy coding is performed on the weather data to convert it into a numerical type. Step 2.4: Based on the above three categories, a total of 17 features are constructed for feature engineering.

4. The charging station short-term load forecasting method based on VMD decomposition and improved XGBoost according to claim 1 is characterized in that: Based on the VMD algorithm, the historical load data is decomposed into modal functions and residual components to construct the input and features of the load forecasting model: Step 3.1: Define the primitive function u k (t) represents the input signal, and the original function formula of the input signal is as follows: u k (t)=A k (t)cos(φ k (t)), (1) Among them, A k (t) is the amplitude function; φ k (t) is the phase function; Step 3.2: Perform Hilbert transform on the historical load of the charging station and transform the input signal u k (t) is subjected to Hilbert transform. The Hilbert transform can be regarded as passing the signal through a system whose impulse response is h(t). The Hilbert transform calculation formula is as follows: in, is the result of Hilbert transform; H[x(t)] is the Hilbert transform of function x(t); τ is the integral variable of convolution; Substituting formula (1) into formula (2) to obtain the Hilbert transform of the charging station load data variation problem, the formula is as follows: Where δ(t) is the unit impulse function; j is the imaginary unit; u k (t) represents the input signal; Step 3.3: Construct a variational problem model for charging station load data, and use the correction index to correct the transformation result so that the spectrum of each component is modulated to the corresponding baseband. The modulated signal oscillates with an equal amplitude and high frequency in the time domain. The amplitude of each frequency component of the modulated signal is halved. After spectrum adjustment, the signal is demodulated by Gaussian smoothing to obtain the bandwidth description formula of each modal function, that is, the corresponding constrained variational model. The variational model formula is as follows: Among them, {u k }={u1,u2,…,u k } is the set of each intrinsic mode function component; {w k }={w1,w2,…,w k } is the set of corresponding center frequencies; k is the number of modal components; is the partial derivative of the function with respect to time t; δ(t) is the unit pulse function; f(t) is the function of the original sequence signal; Step 3.4: Solve the variational problem. Use the quadratic penalty factor α and the Lagrange multiplier λ to transform the constrained variational problem into an unconstrained variational problem. The transformed Lagrangian function L({u k },{ω k },λ) is: Among them, {u k }={u1,u2,…,u k } is the set of each intrinsic mode function component; {w k }={w1,w2,…,w k } is the set of corresponding center frequencies; λ is the Lagrange multiplier; α is the quadratic penalty factor; k is the number of modal components; is the partial derivative of the function with respect to time t; f(t) is the function of the original sequence signal; <,> represents the inner product operation; The alternating multiplier method is used to search for saddle points and continuously update constraint parameters. The update formulas for the three parameters are as follows: Among them, η is the noise tolerance, which is used to buffer the interference caused by the presence of strong noise; Represents the value of the Lagrange multiplier in the frequency domain ω after the n+1th iteration; represents the value of the Lagrange multiplier in the frequency domain ω after the nth iteration; Represents the Fourier transform of the signal f(t) in the frequency domain; is the Fourier transform of the kth modal component in the frequency domain after the n+1th iteration; is the center frequency after the n+1th iteration; Step 3.5: Repeat the iteration to update the parameter value until the iteration convergence condition is met. The convergence condition formula is as follows: Among them, ε is the accuracy control value, which is used to limit the relative error.

5. The charging station short-term load forecasting method based on VMD decomposition and improved XGBoost according to claim 1 is characterized in that: Construct an extreme gradient boosting tree to model the short-term load forecasting method for charging stations: Step 4.1: Construct a decision tree to act as a learner for the extreme gradient boosting tree. Assume that there are t decision trees. The output of the tth decision tree is expressed as: in, For sample x i The sum of the prediction values ​​of the first t-1 trees; w q(xi) For sample x i The leaf node value; Step 4.2: Create node set I j The mapping relationship between samples is obtained by q(x i ) function finds the node j where the sample is located. The mapping relationship formula is as follows: I j ={i|q(x i )=j}, (11) Step 4.3: Build an extreme gradient boosting tree and optimize the model objective function. The specific steps are as follows: First, determine the objective function formula as follows: in, is the loss function, which represents the error between the predicted value and the true value; Ω(f t ) is a regularization term used to prevent overfitting function, and its expression is: Among them, γ and ζ are penalty coefficients to prevent l or The impact of excessive size on the model; l is the number of leaf nodes; w j is the optimal weight of leaf node j; Secondly, the loss function in formula (12) is approximated by the second-order Taylor expansion, and the constant term is removed to optimize the loss function. The results are as follows: Then, solve the optimal leaf node value The solution process is as follows: Among them, g i 、h i is the function f t (x i ), The objective function after the model is finally solved is as follows: Among them, G j , H j is the function f t (x i ) is the cumulative sum of the first-order and second-order partial derivatives; γ and ζ are penalty coefficients; l is the number of leaf nodes.

6. The charging station short-term load forecasting method based on VMD decomposition and improved XGBoost according to claim 1 is characterized in that: Optimize the parameters of the extreme gradient boosting model based on the particle swarm optimization algorithm: Step 5.1: Initialize the particle swarm parameter settings and set the number of particle swarms N p , number of iterations t p , the search dimension is D p ; Step 5.2: Initialize the position and speed of the particle swarm algorithm. The initial position of the particle is random, and the position of the randomly generated i-th particle is X i =(l r ,m d ,G a ,n e ), where l r Represents the learning rate range of the extreme gradient boosting model, m d is the maximum depth of the extreme gradient boosting model tree, G a is the value range of the Gamma function, n e is the number of trees; Step 5.3: Determine the fitness function of the particle swarm algorithm, train the training set using the extreme gradient boosting model, and compare the actual results with the predicted values. The fitness function is as follows: Among them, f(y) is the fitness function, y is the actual value of the i-th observation, y' is the predicted value, and m is the total number of data sets; Step 5.4: Iterative calculation, calculate the new position of the particle after each iteration, and adjust the position and speed of the particle so that the particle constantly approaches the optimal position, thus finally obtaining the optimal solution. The update formula of speed and position is as follows: n=1+lnd max , (20) Among them, V i d 、V i d+1 is the particle velocity at the dth iteration and the d+1th iteration; is the particle position at the dth iteration and the d+1th iteration; w is the inertia weight, c1 and c2 are learning factors, r1 and r2 are random numbers on [0, 1]; P i d , P g d is the optimal position and global optimal position of particle i in the d-th iteration and the d+1-th iteration; d is the current iteration number, and T is the time factor; Step 5.5: After obtaining the optimal solution through iteration, the optimal learning rate, maximum depth of the tree, Gamma function value, and number of trees are transferred to the extreme gradient boosting model.

7. The charging station short-term load forecasting method based on VMD decomposition and improved XGBoost according to claim 1 is characterized in that: A short-term load forecasting method based on VMD decomposition and improved XGBoost is used to achieve high-precision load forecasting for charging stations: Step 6.1: Obtain the historical load data of the charging station based on the monitoring equipment and perform preprocessing to construct a time series data set of the historical load data of the charging station; Step 6.2: Select load influencing factors based on the preprocessed load data and construct a feature vector; Step 6.3: Decompose the historical load data into modal functions and residual components based on the VMD algorithm, and divide them into test sets and training sets; Step 6.4: Input the training set into the extreme gradient boosting model after the particle swarm algorithm optimizes the parameters for training; Step 6.5: Input the test set into the trained model to test the error of the model in predicting the short-term load of the charging station to verify the correctness and reliability of the model.

8. A charging station short-term load forecasting device based on VMD decomposition and improved XGBoost, characterized in that: The device comprises: A data acquisition module, used to obtain historical load data of the charging station; A data preprocessing module, used to process the historical data information, determine the characteristic vector of the data influencing factors, and generate a time series data set of the historical load data of the charging station; A feature construction module is used to select load influencing factors and construct feature vectors based on preprocessed load data; Data decomposition module, used to decompose historical load data into various modal functions and residual components based on VMD algorithm to construct the input of the prediction model; Model parameter optimization module, used to train extreme gradient boosting models optimized by particle swarm algorithm based on time series data sets; The load forecasting module is used to input the characteristic vector of the target data into the extreme gradient boosting model optimized by the particle swarm algorithm that meets the preset conditions to obtain the short-term load forecasting result of the charging station.

9. A computer-readable storage medium having computer instructions stored thereon, characterized in that: When the computer instructions are executed by the processor, the steps of the charging station short-term load forecasting method based on VMD decomposition and improved XGBoost as described in any one of claims 1 to 7 are implemented.

10. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for short-term load forecasting of a charging station based on VMD decomposition and improved XGBoost as described in any one of claims 1 to 7 above is implemented.

Citation Information

Cited By

  • Physical-data dual-drive subway station building load prediction method

    CN119577931A

  • Charging load prediction method for electric vehicle charging facility

    CN119647694A

  • A method and system for monitoring and diagnosing the condition of key mine equipment

    CN119760576A

  • Power equipment health state assessment method and system based on artificial intelligence

    CN120196938A

  • A method and system for evaluating the health status of power equipment based on artificial intelligence

    CN120196938B