Method for predicting charging load of electric vehicle

Virtual data is generated through support vector machine classification and Bi-TimeGAN model, and a time series prediction model is constructed in combination with LSTM, which solves the problem of low accuracy of electric vehicle charging load prediction in extreme scenarios, significantly improves the prediction accuracy, and provides important guidance for power grid facilities.

CN118839728APending Publication Date: 2024-10-25CHINA ENERGY CONSTR URBAN INVESTMENT DEV CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410829361.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-25

AI Technical Summary

Technical Problem

Existing technology is difficult to accurately predict the charging load of electric vehicles in extreme scenarios, mainly due to the small amount of data in extreme scenarios, resulting in low prediction accuracy of the prediction model.

Method used

By constructing a scene sample set, using support vector machines for scene classification, an extreme scene charging load data model based on Bi-TimeGAN is generated, and combined with LSTM to build an enhanced time series prediction model, generating virtual extreme scene data to enhance training data and improve prediction accuracy .

Benefits of technology

It effectively alleviates the problem of data imbalance between extreme scenarios and regular scenarios, improves the accuracy of charging load prediction in extreme scenarios, and provides important guidance for the construction of power grid facilities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118839728A_ABST
    Figure CN118839728A_ABST
Patent Text Reader

Abstract

The invention relates to an electric vehicle charging load prediction method, which comprises the following steps of: a, constructing a scene sample set by utilizing historical electric vehicle charging load data, and dividing the scene sample set into a training sample set and a test sample set; b, constructing a scene classification model; c, identifying an extreme scene prediction sample by using the scene classification model; d, constructing an extreme scene charging load data generation model; e, using the extreme scene charging load data generation model to construct an enhanced extreme scene prediction sample; f, constructing an enhanced charging load prediction model; and g, predicting the charging load at the future moment by using the enhanced charging load prediction model. According to the method, the scenes are accurately classified by using the support vector field scene classification model, the high-quality virtual sample data are generated through the extreme scene charging load data generation model, and the expansion of the training sample data is realized, so that the charging load data of the electric vehicle in the extreme scene is enhanced, and the prediction precision of the charging load is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to a method for predicting charging load of an electric vehicle, which can significantly improve the prediction accuracy of charging load in extreme scenarios and belongs to the technical field of data processing. Background Art

[0002] In recent years, with the rapid development of the electric vehicle industry, the number and usage of electric vehicles have increased rapidly, and their charging load has had a significant impact on the operation and dispatch of the power grid. Therefore, accurate prediction of electric vehicle charging load has become crucial.

[0003] Data-driven models have become a commonly used method in the field of electric vehicle charging load prediction. The invention patent with Chinese patent publication number CN116205367A discloses an electric vehicle load prediction method, system and equipment based on the SSA-SVM model. The load prediction method is to first pre-process the historical load data; add the SSA optimization algorithm on the basis of the SVM prediction model, initialize the sparrow population parameters, and then determine the parameter range of the SVM model; select the root mean square rms of the electric vehicle load prediction value and the true value as the fitness function of the SSA optimization algorithm until the conditions are met to obtain the optimal function value; input the calculated optimal function value into the SVM model to obtain an improved SVM prediction model based on the SSA optimization algorithm; use the improved SVM prediction model based on the SSA optimization algorithm to learn and train the training data set and the test data set to obtain the optimized SVM prediction model; predict the load of the electric vehicle based on the optimized SVM model, and finally output the predicted data value. However, the performance of the data-driven model is often restricted by the quality and quantity of the training data.

[0004] For electric vehicles, their charging load is affected by factors such as weather, user behavior, and special events, which can easily lead to extreme scenarios. Extreme scenarios are low-probability events compared to conventional scenarios. Due to the small amount of data, it is usually difficult for prediction models to accurately predict the charging load of electric vehicles in such scenarios. Summary of the invention

[0005] The purpose of the present invention is to provide a method for predicting the charging load of an electric vehicle in view of the shortcomings of the prior art, so as to enhance the charging load data of the electric vehicle under extreme scenarios and improve the prediction accuracy of the charging load.

[0006] The problem described in the present invention is solved by the following technical solution:

[0007] A method for predicting charging load of an electric vehicle, the method comprising the following steps:

[0008] a. Use historical electric vehicle charging load data to build a scenario sample set, and divide the scenario sample set into a training sample set and a test sample set;

[0009] b. Use support vector machine to build scene classification model;

[0010] c. Use the scene classification model to identify extreme scene prediction samples:

[0011] The scene classification model is trained and tested using the training sample set and the test sample set, and the scene sample set is input into the scene classification model that has passed the test to identify extreme scene prediction samples;

[0012] d. Construct a charging load data generation model for extreme scenarios based on Bi-TimeGAN;

[0013] e. Use the extreme scenario charging load data generation model to construct enhanced extreme scenario prediction samples:

[0014] The extreme scenario prediction samples are input into the extreme scenario charging load data generation model to generate virtual extreme scenario prediction samples, and then the real extreme scenario prediction samples are merged with the virtual extreme scenario prediction samples to obtain enhanced extreme scenario prediction samples;

[0015] f. Build a time series prediction model based on LSTM to obtain an enhanced charging load prediction model;

[0016] g. Use the enhanced charging load prediction model to predict the charging load at future times.

[0017] The specific method of the above-mentioned electric vehicle charging load prediction method using historical electric vehicle charging load data to construct a scenario sample set is as follows: the collected historical electric vehicle charging load data is preprocessed, including missing value filling, outlier detection, outlier correction and normalization processing, and the preprocessed data set is divided into scenario samples using a sliding window method to obtain a scenario sample set.

[0018] In the above-mentioned method for predicting the charging load of electric vehicles, the width of the sliding window is days.

[0019] In the above-mentioned method for predicting the charging load of electric vehicles, the scenario classification model includes:

[0020] ① Hyperplane

[0021] Given an n-dimensional feature space, the goal of the support vector machine classification model is to find an n-1-dimensional hyperplane to divide all samples in the n-dimensional feature space. The definition of the hyperplane is as follows:

[0022] w T x′+b=0

[0023] w is the normal vector of the hyperplane, which determines the direction of the hyperplane; T represents transposition; w T represents the normal vector of the hyperplane after transposition; x′ is a point on the hyperplane; b is the bias term;

[0024] ②Support vector

[0025] The distance between the support vector and the hyperplane is the classification distance of samples of different categories. The support vector satisfies the following definition:

[0026] y i (w T x0+b)=1

[0027] y i is the label of the i-th sample, with a value of -1 / 1; x0 is the support vector;

[0028] If there exists a hyperplane that can correctly divide all samples in the n-dimensional feature space, then any point x in the feature space satisfies the following formula:

[0029]

[0030] ③Classification distance

[0031] The distance between the support vector and the hyperplane is the classification distance, which is defined as follows:

[0032]

[0033] In the formula, d0 is the classification distance;

[0034] ④Interval

[0035] The distance between any point x in space and the hyperplane is defined as follows:

[0036]

[0037] Where d is the distance between the sampling point x and the hyperplane;

[0038] By comparing the interval distance d with the classification distance d0, the classification of extreme scenes and normal scenes is achieved;

[0039] In the above-mentioned electric vehicle charging load prediction method, the extreme scenario charging load data generation model includes an adversarial component, an automatic encoding component and joint training:

[0040] ⑴. Adversarial components

[0041] The adversarial component consists of a generator and a discriminator:

[0042] Generator:

[0043]

[0044] The calculation formula of the generator is as follows:

[0045]

[0046] In the formula, Z S Represents a static vector in a vector space; Represents a dynamic vector in a vector space; The static spatial encoding in the latent vector space generated by the generator; h S Represents a static spatial encoding in a latent vector space; Representing the temporal spatial encoding in the latent vector space; represents the temporal spatial encoding in the latent vector space produced by the generator; represents the temporal space encoding in the latent vector space generated by the generator at the previous moment; Z t represents the temporal feature random vector at the current moment; G S It is a static feature generator network, which transforms the static feature Z S Generating Latent Space Encodings A generator network representing temporal features, which and Z t generate

[0047] Discriminator:

[0048]

[0049] The discriminator calculation formula is as follows:

[0050]

[0051] In the formula, Represents the hidden state in the previous step; Represents the hidden state in the next step; Represents the loop function in the previous step; Represents the loop function in the next step; Indicates the previous hidden state at the previous moment; Indicates the hidden state of the next step of the previous moment; D S The discriminator represents the static spatial encoding in the latent space; a discriminator representing the temporal spatial encoding in the latent space; represents the classification result of the static spatial encoding in the latent space; represents the classification result of the temporal spatial encoding in the latent space; represents the identification result of temporal space encoding; represents the temporal spatial encoding of the latent space accepted by the discriminator; represents the static spatial encoding of the latent space accepted by the discriminator;

[0052] ⑵、Automatic encoding component

[0053] Embedded function:

[0054]

[0055] Restore function:

[0056]

[0057] ⑶. Joint training

[0058] Reconstruction loss:

[0059]

[0060] Unsupervised loss:

[0061]

[0062] Supervision loss:

[0063]

[0064] Where, L R represents the reconstruction loss; represents the expected value of all temporal and dynamic vectors sampled from the data distribution P; S represents the static vector of the original data; represents the static vector in the reconstructed vector space; X t Temporal vector representing the original data; represents the dynamic vector in the reconstructed vector space; e S Embedding function representing a static vector; Represents the embedding function of the dynamic vector; r S represents the recovery function of the static latent code; represents the recovery function of the dynamic latent code; L U represents the unsupervised loss; L S represents the supervision loss; h t Indicates the current output; h t-1 Represents the output at the previous moment; y S Represents the static vector identification result of the original data; y t The temporal vector identification result representing the original data; Represents the static vector identification result of the generated data; Represents the temporal vector identification result of the generated data;

[0065] In the above-mentioned electric vehicle charging load prediction method, the enhanced charging load prediction model comprises:

[0066] Forget Gate:

[0067] f t =σ(W f x t +W f h t-1 +b f )

[0068] Input Gate:

[0069] i t =σ(W i x t +W i h t-1 +b i )

[0070] Output Gate:

[0071] O t =σ(W o x t +W o h t-1 +b o )

[0072] Candidate memory cells:

[0073] C ht =tanh(W C x t +W C h t-1 +b C )

[0074] Memory Cells:

[0075] C t =f t ·C t-1 +i t ·C ht

[0076] Output at time t:

[0077] h t =O t tanh(C t )

[0078] In the formula, f t represents the forget gate; i t represents the input gate; O t represents the output gate; W x and b x, x∈(f,i,C,o) is the weight matrix and bias, which is related to the control gate; x t Indicates the input at the current moment; C t Indicates the current memory cell; C t-1 represents the memory cell of the previous moment; σ represents the Sigmoid activation function; tanh represents the activation function; C ht Represents the candidate memory cells at the current moment.

[0079] The above-mentioned electric vehicle charging load prediction method uses the enhanced charging load prediction model to predict the charging load at a future moment as follows:

[0080] Firstly, the enhanced charging load prediction model is trained using enhanced extreme scenario prediction samples. The historical charging load data of electric vehicles containing enhanced extreme scenario prediction samples are input into the trained enhanced charging load prediction model to obtain the predicted value of charging load at future moments.

[0081] Beneficial Effects

[0082] Compared with the prior art, the present invention has the following beneficial effects:

[0083] 1. The present invention uses a support vector machine to accurately classify scenes and provides training data for data enhancement.

[0084] If the complete historical data is used as the training data of the TimeGAN model, the final generated data of the model also includes common scenarios and extreme scenarios, and their quantity distribution ratio is similar to that of historical data. If this part of the generated data is expanded, the imbalance in the quantity distribution of extreme scenarios and common scenarios will not be alleviated, and the improvement in the prediction accuracy of extreme scenarios will also be relatively limited.

[0085] Compared with using complete historical data as training data for the TimeGAN model, this paper uses support vector machines to accurately classify the scenes of historical data, and uses the classified extreme scenes as training data for TimeGAN. The data finally generated are all virtual data under extreme scenes. By expanding this part of the data, the imbalanced distribution of the number of extreme scenes and conventional scenes can be effectively alleviated.

[0086] 2. This paper improves the TimeGAN model so that its generator and discriminator can simultaneously consider bidirectional time series information, and its data generation effect is better

[0087] The generator and discriminator of TimeGAN use the LSTM neural network model. This patent improves the neural network model and adopts the Bi-LSTM network model. The model uses a dual LSTM network combination. The input data is input into the dual LSTM network in forward and reverse order respectively, which can extract the past and future information of the current moment, thereby improving the model's learning ability for time series data.

[0088] 3. The present invention uses enhanced extreme scenario electric vehicle charging load prediction samples to perform enhanced training on the prediction model, which effectively improves the prediction accuracy of the model for extreme scenarios and provides important guidance for the construction and planning of distribution network facilities. BRIEF DESCRIPTION OF THE DRAWINGS

[0089] The present invention will be further described below in conjunction with the accompanying drawings.

[0090] Figure 1 This is a schematic diagram of the support vector machine scene classification model;

[0091] Figure 2 Schematic diagram of the Bi-TimeGAN joint training process;

[0092] Figure 3 Schematic diagram of the process of enhancing electric vehicle charging load data for extreme scenarios.

[0093] The symbols in the text and figures are: w is the normal vector of the hyperplane; x′ is a point on the hyperplane; b is the bias term; x0 is the support vector; d0 is the classification distance; x is a sampling point in the multidimensional space; d is the distance between the sampling point x and the hyperplane; Z S Represents a static vector in a vector space; Represents a dynamic vector in a vector space; The static spatial encoding in the latent vector space generated by the generator; h S Represents a static spatial encoding in a latent vector space; Representing dynamic spatial encodings in latent vector space; represents the temporal spatial encoding in the latent vector space produced by the generator; represents the temporal space encoding in the latent vector space generated by the generator at the previous moment; Z t represents the temporal feature random vector at the current moment; G S is a generator network of static features; A generator network to represent temporal features; Represents the hidden state in the previous step; Represents the hidden state in the next step; Indicates the previous hidden state at the previous moment; Indicates the hidden state of the next step of the previous moment; Represents the loop function in the previous step; Indicates the loop function in the next step; D S The discriminator represents the static spatial encoding in the latent space; a discriminator representing the temporal spatial encoding in the latent space; represents the classification result of the static spatial encoding in the latent space; represents the classification result of the latent space temporal space encoding; D represents the discriminator network; represents the identification result of temporal space encoding; Represents the temporal encoding of the latent space synthesized by the generator; represents the temporal spatial encoding of the latent space accepted by the discriminator; represents the static spatial encoding of the latent space accepted by the discriminator; L R represents the reconstruction loss; represents the expected value of all temporal and dynamic vectors sampled from the data distribution P; S represents the static vector of the original data; represents the static vector in the reconstructed vector space; X t A temporal vector representing the original data; represents the dynamic vector in the reconstructed vector space; e S Embedding function representing a static vector; Represents the embedding function of the dynamic vector; r S represents the recovery function of the static latent code; represents the recovery function of the dynamic latent code; L U represents the unsupervised loss; y S Represents the static vector identification result of the original data; y t Represents the temporal vector identification result of the original data; L S represents the supervision loss; h t Indicates the current output; h t-1 Indicates the output at the previous moment; f t represents the forget gate; i t represents the input gate; O t represents the output gate; W x and b x , x∈(f,i,C,o) is the weight matrix and bias; x t Indicates the input at the current moment; C t Indicates the current memory cell; C t-1 represents the memory cell of the previous moment; σ represents the Sigmoid activation function; tanh represents the activation function; C ht represents the candidate memory cell at the current moment; θ E represents the parameters of the embedding function; θ R represents the parameters of the reconstruction function; θG Parameters of the generator; θ D represents the parameters of the discriminator; DETAILED DESCRIPTION

[0094] In view of the deficiencies in the prior art, the present invention provides a method for predicting the charging load of an electric vehicle, which can greatly improve the accuracy of predicting the charging load of an electric vehicle in extreme scenarios.

[0095] Data enhancement refers to learning the intrinsic relationship of the distribution of training sample data through an algorithm model to generate a series of high-quality virtual sample data to expand the training sample data. The present invention improves the quality and quantity of training sample data through data enhancement, thereby achieving the purpose of improving the prediction accuracy of the model.

[0096] The present invention comprises the following steps:

[0097] a. Use historical electric vehicle charging load data to build a scenario sample set and divide the scenario sample set into a training sample set and a test sample set

[0098] The collected historical electric vehicle charging load data is preprocessed, including missing value filling, outlier detection, outlier correction and normalization. The preprocessed data set is divided into scene samples using a sliding window method to obtain a scene sample set. Each scene sample corresponds to a scene. The scene sample set is divided into a training sample set and a test sample set according to a set ratio.

[0099] In the present invention, the width of the sliding window is days;

[0100] b. Use support vector machine to build scene classification model

[0101] The scene classification model includes:

[0102] ① Hyperplane

[0103] Given an n-dimensional feature space, the goal of the support vector machine classification model is to find an n-1-dimensional hyperplane to divide all samples in the n-dimensional feature space. The definition of the hyperplane is as follows:

[0104] w T x′+b=0

[0105] w is the normal vector of the hyperplane, which determines the direction of the hyperplane; T represents transposition; w T represents the normal vector of the hyperplane after transposition; x′ is a point on the hyperplane; b is the bias term;

[0106] ②Support vector

[0107] The distance between the support vector and the hyperplane is the classification distance of samples of different categories. The support vector satisfies the following definition:

[0108] y i (w T x0+b)=1

[0109] y i is the label of the i-th sample, with a value of -1 / 1; x0 is the support vector;

[0110] If there is a hyperplane that can correctly divide all samples in the n-dimensional feature space, then any point x in the feature space satisfies the following formula:

[0111]

[0112] ③Classification distance

[0113] The distance between the support vector and the hyperplane is the classification distance, which is defined as follows:

[0114]

[0115] In the formula, d0 is the classification distance;

[0116] ④Interval

[0117] The distance between any point x in space and the hyperplane is defined as follows:

[0118]

[0119] By comparing the interval distance d with the classification distance d0, different categories of data can be distinguished.

[0120] c. Use the scene classification model to identify extreme scene prediction samples:

[0121] The present invention calculates the interval distance between each scene and the hyperplane, and classifies the scenes according to the interval distance. The specific scene classification method is:

[0122] First, multiple scene samples in the training sample set are used as input to train the scene classification model, and then the scene classification model is tested using the test sample set. Finally, the scene sample set is input into the scene classification model that has passed the test to achieve the classification of extreme scenes and normal scenes, and the extreme scenes are marked.

[0123] d. Construct a charging load data generation model for extreme scenarios based on Bi-TimeGAN

[0124] TimeGAN (Time-series Generative Adversarial Network) is a time series data generation model. In this paper, improvements are made to the neural networks of the generator and discriminator of TimeGAN, and the neural networks of the generator and discriminator are improved into bidirectional neural networks, so that TimeGAN can take into account bidirectional time series information at the same time, thereby improving the data generation capability of TimeGAN.

[0125] The extreme scenario charging load data generation model includes adversarial components, automatic encoding components and joint training.

[0126] ⑴. Adversarial components

[0127] The adversarial component consists of a generator and a discriminator. The main function of the generator is to learn the deep features of the training data and generate high-quality virtual data. The main function of the discriminator is to distinguish between the real training data and the generated virtual data. The generator continuously generates high-quality virtual data to deceive the discriminator, and the discriminator continuously learns the defects between the real data and the virtual data to distinguish the data generated by the generator, realizing a binary adversarial learning and finally reaching a Nash equilibrium state, that is, the discriminator cannot distinguish between the generated data and the real data, and the training ends at this time.

[0128] In Bi-TimeGAN, the training of the generator and discriminator is not in the feature space, but in the latent space. That is, the generator receives the static and dynamic vectors of the feature space, and generates the corresponding static and dynamic latent space encodings in the latent space.

[0129] The generator and discriminator used in the present invention are as follows:

[0130] Generator:

[0131]

[0132] The calculation formula of the generator is as follows:

[0133]

[0134] In the formula, Z S Represents a static vector in a vector space; Represents a dynamic vector in a vector space; is the latent space encoding; h S Represents a static spatial encoding in a latent vector space; Representing dynamic spatial encodings in latent vector space; represents the temporal spatial encoding in the latent vector space produced by the generator; represents the temporal space encoding in the latent vector space generated by the generator at the previous moment; Zt represents the temporal feature random vector at the current moment; G S It is a static feature generator network, which transforms the static feature Z S Generating Latent Space Encodings A generator network representing temporal features, which and Z t generate

[0135] Discriminator:

[0136]

[0137] The discriminator identifies the authenticity of the data in the latent vector space and returns the identification result

[0138] The discriminator calculation formula is as follows:

[0139]

[0140] In the formula, Represents the hidden state in the previous step; Represents the hidden state in the next step; Indicates the previous hidden state at the previous moment; Indicates the hidden state of the next step of the previous moment; Represents the loop function in the previous step; Indicates the loop function in the next step; D S and They represent the classification functions of the output layer respectively; represents the identification result of temporal space encoding; represents the classification result of the static spatial encoding in the latent space; represents the classification result of the latent space temporal spatial encoding; represents the temporal spatial encoding of the latent space accepted by the discriminator; represents the static spatial encoding of the latent space accepted by the discriminator;

[0141] ⑵、Automatic encoding component

[0142] Embedded function:

[0143]

[0144] Restore function:

[0145]

[0146] ⑶. Joint training

[0147] Reconstruction loss:

[0148]

[0149] Unsupervised loss:

[0150]

[0151] Supervision loss:

[0152]

[0153] Where, L R represents the reconstruction loss; represents the expected value of all temporal and dynamic vectors sampled from the data distribution P; S represents the static vector of the original data; represents the static vector in the reconstructed vector space; X t A temporal vector representing the original data; represents the dynamic vector in the reconstructed vector space; e S Embedding function representing a static vector; Represents the embedding function of the dynamic vector; r S represents the recovery function of the static latent code; represents the recovery function of the dynamic latent code; L U represents the unsupervised loss; y S Represents the static vector identification result of the original data; y t Represents the temporal vector identification result of the original data; L S represents the supervision loss; h t Indicates the current output; h t-1 Indicates the output at the previous moment.

[0154] e. Use the extreme scenario charging load data generation model to construct enhanced extreme scenario prediction samples:

[0155] First, the extreme scene part of the training sample set is screened; then the screened extreme scene prediction samples are used as the input of the extreme scene charging load data generation model to generate virtual extreme scene prediction samples; then the real extreme scene prediction samples are merged with the virtual extreme scene prediction samples to obtain enhanced extreme scene prediction samples.

[0156] f. Build a time series prediction model based on LSTM (Long Short-Term Memory) to obtain an enhanced charging load prediction model

[0157] Long short-term memory neural network (LSTM) is an improved network of recurrent neural network (RNN). It introduces a gating mechanism to solve the problems of gradient vanishing and gradient explosion caused by a long time of information transmission in the time step of RNN. LSTM unit consists of memory cell, forget gate, input gate and output gate. Memory cell is responsible for retaining historical data, and three gates control the information entering and leaving the unit to retain long-term important information and discard unnecessary information. The main function of forget gate is to discard some unnecessary information.

[0158] The enhanced charging load prediction model of the present invention includes:

[0159] Forget Gate:

[0160] f t =σ(W f x t +W f h t-1 +b f ) (13)

[0161] Input Gate:

[0162] i t =σ(W i x t +W i h t-1 +b i ) (14)

[0163] Output Gate:

[0164] O t =σ(W o x t +W o h t-1 +b o ) (15)

[0165] Candidate memory cells:

[0166] C ht =tanh(W C x t +W C h t-1 +b C ) (16)

[0167] Memory Cells:

[0168] C t =f t ·C t-1 +i t ·C ht (17)

[0169] Output at time t:

[0170] h t =O t tanh(C t ) (18)

[0171] In the formula, f t represents the forget gate; i t represents the input gate; O t represents the output gate; W x and b x , x∈(f,i,C,o) is the weight matrix and bias, which is related to the control gate; x t Indicates the input at the current moment; C t Indicates the current memory cell; C t-1 represents the memory cell of the previous moment; σ represents the Sigmoid activation function; tanh represents the activation function; C ht Represents the candidate memory cells at the current moment;

[0172] g. Use the enhanced charging load prediction model to predict the charging load at future times:

[0173] The enhanced charging load prediction model is enhanced trained using enhanced extreme scenario prediction samples, and the historical charging load data of electric vehicles containing enhanced extreme scenario prediction samples are input into the trained enhanced charging load prediction model to obtain the predicted value of the charging load at future times.

Claims

1. A method for predicting electric vehicle charging load, characterized in that: The method comprises the following steps: a. Use historical electric vehicle charging load data to build a scenario sample set, and divide the scenario sample set into a training sample set and a test sample set; b. Use support vector machine to build scene classification model; c. Use the scene classification model to identify extreme scene prediction samples: The scene classification model is trained and tested using the training sample set and the test sample set, and the scene sample set is input into the scene classification model that has passed the test to identify extreme scene prediction samples; d. Construct a charging load data generation model for extreme scenarios based on Bi-TimeGAN; e. Use the extreme scenario charging load data generation model to construct enhanced extreme scenario prediction samples: The extreme scenario prediction samples are input into the extreme scenario charging load data generation model to generate virtual extreme scenario prediction samples, and then the real extreme scenario prediction samples are merged with the virtual extreme scenario prediction samples to obtain enhanced extreme scenario prediction samples; f. Build a time series prediction model based on LSTM to obtain an enhanced charging load prediction model; g. Use the enhanced charging load prediction model to predict the charging load at future times.

2. The method for predicting electric vehicle charging load according to claim 1, characterized in that: The specific method of constructing a scenario sample set using historical electric vehicle charging load data is as follows: preprocess the collected historical electric vehicle charging load data, including missing value filling, outlier detection, outlier correction and normalization, and divide the preprocessed data set into scenario samples using a sliding window method to obtain a scenario sample set.

3. The method for predicting electric vehicle charging load according to claim 1, characterized in that: The width of the sliding window is days.

4. The method for predicting electric vehicle charging load according to claim 1, characterized in that: The scene classification model includes: ① Hyperplane Given an n-dimensional feature space, the goal of the support vector machine classification model is to find an n-1-dimensional hyperplane to divide all samples in the n-dimensional feature space. The definition of the hyperplane is as follows: w T x′+b=0 w is the normal vector of the hyperplane, which determines the direction of the hyperplane; T represents transposition; w T represents the normal vector of the hyperplane after transposition; x′ is a point on the hyperplane; b is the bias term; ②Support vector The distance between the support vector and the hyperplane is the classification distance of samples of different categories. The support vector satisfies the following definition: <h2 style=";text-align:left;direction:ltr">y<h2 style=";text-align:left;direction:ltr"> i <h2 style=";text-align:left;direction:ltr"> (w<h2 style=";text-align:left;direction:ltr"> T <h2 style=";text-align:left;direction:ltr"> x0+b)=1 y i is the label of the i-th sample, with a value of -1 / 1; x0 is the support vector; If there exists a hyperplane that can correctly divide all samples in the n-dimensional feature space, then any point x in the feature space satisfies the following formula: ③ Classification distance The distance between the support vector and the hyperplane is the classification distance, which is defined as follows: In the formula, d0 is the classification distance; ④Interval The distance between any point x in space and the hyperplane is defined as follows: By comparing the interval distance d with the classification distance d0, different categories of data can be distinguished.

5. The method for predicting electric vehicle charging load according to claim 1, characterized in that: The extreme scenario charging load data generation model includes an adversarial component, an automatic encoding component, and joint training: ⑴. Adversarial components Adversarial Components The adversarial component consists of a generator and a discriminator: Generator: The calculation formula of the generator is as follows: In the formula, Z S Represents a static vector in a vector space; Represents a dynamic vector in a vector space; Encode the latent space; h S Represents a static spatial encoding in a latent vector space; Representing dynamic spatial encodings in latent vector space; represents the temporal spatial encoding in the latent vector space produced by the generator; represents the temporal space encoding in the latent vector space generated by the generator at the previous moment; Z t represents the temporal feature random vector at the current moment; G S It is a static feature generator network, which transforms the static feature Z S Generating Latent Space Encodings A generator network representing temporal features, which and Z t generate Discriminator: The discriminator calculation formula is as follows: In the formula, Represents the hidden state in the previous step; Represents the hidden state in the next step; Indicates the previous hidden state at the previous moment; Indicates the hidden state of the next step of the previous moment; Represents the loop function in the previous step; Indicates the loop function in the next step; D S and They represent the classification functions of the output layer respectively; represents the identification result of temporal space encoding; represents the classification result of the static spatial encoding in the latent space; represents the classification result of the latent space temporal spatial encoding; represents the temporal spatial encoding of the latent space accepted by the discriminator; represents the static spatial encoding of the latent space accepted by the discriminator; ⑵、Automatic encoding component Embedded function: Restore function: ⑶. Joint training Reconstruction loss: Unsupervised loss: Supervision loss: Where, L R represents the reconstruction loss; represents the expected value of all temporal and dynamic vectors sampled from the data distribution P; S represents the static vector of the original data; represents the static vector in the reconstructed vector space; X t A temporal vector representing the original data; represents the dynamic vector in the reconstructed vector space; e S Embedding function representing a static vector; Represents the embedding function of the dynamic vector; r S Represents the recovery function of the static latent code; represents the recovery function of the dynamic latent code; L U represents the unsupervised loss; y S Represents the static vector identification result of the original data; y t Represents the temporal vector identification result of the original data; L S represents the supervision loss; h t Indicates the current output; h t-1 Indicates the output at the previous moment.

6. The method for predicting electric vehicle charging load according to claim 1, characterized in that: The enhanced charging load prediction model includes: Forget Gate: f t =σ(W f x t +W f h t-1 +b f ) Input Gate: i t =σ(W i x t +W i h t-1 +b i ) Output Gate: O t =σ(W o x t +W o h t-1 +b o ) Candidate memory cells: C ht =tanh(W C x t +W C h t-1 +b C ) Memory Cells: C t =f t ·C t-1 +i t ·C ht Output at time t: h t =O t ·tanh(C t ) In the formula, f t represents the forget gate; i t represents the input gate; O t represents the output gate; W x and b x , x∈(f,i,C,o) is the weight matrix and bias, which is related to the control gate; x t Indicates the input at the current moment; C t Indicates the current memory cell; C t-1 represents the memory cell of the previous moment; σ represents the Sigmoid activation function; tanh represents the activation function; C ht Represents the candidate memory cells at the current moment.

7. The method for predicting electric vehicle charging load according to claim 1, characterized in that: The specific method of using the enhanced charging load prediction model to predict the charging load at future moments is as follows: Firstly, the enhanced charging load prediction model is trained using enhanced extreme scenario prediction samples. The historical charging load data of electric vehicles containing enhanced extreme scenario prediction samples are input into the trained enhanced charging load prediction model to obtain the predicted value of charging load at future moments.

Citation Information

Patent Citations

  • Power demand prediction method and device

    CN112365280A

  • Power system typical scene probability prediction method based on dynamic time sequence prediction

    CN115293249A

  • Method for predicting short-term power of wind power plant in extreme strong wind scene

    CN116720616A

  • Wind power short-term prediction method and device considering low-temperature cold-tide weather

    CN118051881A