CN113902183B - BERT-based non-invasive transformer area charging pile state monitoring and electricity price adjusting method - Google Patents
BERT-based non-invasive transformer area charging pile state monitoring and electricity price adjusting method Download PDFInfo
- Publication number
- CN113902183B CN113902183B CN202111156209.3A CN202111156209A CN113902183B CN 113902183 B CN113902183 B CN 113902183B CN 202111156209 A CN202111156209 A CN 202111156209A CN 113902183 B CN113902183 B CN 113902183B
- Authority
- CN
- China
- Prior art keywords
- charging
- historical
- model
- layer
- charging pile
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 36
- 230000005611 electricity Effects 0.000 title claims abstract description 32
- 238000012544 monitoring process Methods 0.000 title claims abstract description 11
- 238000012549 training Methods 0.000 claims abstract description 25
- 239000011159 matrix material Substances 0.000 claims description 13
- 238000004364 calculation method Methods 0.000 claims description 8
- 238000013528 artificial neural network Methods 0.000 claims description 7
- 230000002457 bidirectional effect Effects 0.000 claims description 5
- 210000002569 neuron Anatomy 0.000 claims description 5
- 230000009466 transformation Effects 0.000 claims description 5
- 238000013527 convolutional neural network Methods 0.000 claims description 3
- 238000011176 pooling Methods 0.000 claims description 3
- 239000000284 extract Substances 0.000 claims description 2
- 230000008569 process Effects 0.000 claims description 2
- 238000013507 mapping Methods 0.000 claims 1
- 238000005516 engineering process Methods 0.000 abstract description 5
- 238000013461 design Methods 0.000 abstract description 3
- 230000008859 change Effects 0.000 abstract description 2
- 238000004519 manufacturing process Methods 0.000 abstract description 2
- 238000001514 detection method Methods 0.000 description 16
- 230000006870 function Effects 0.000 description 16
- 230000007246 mechanism Effects 0.000 description 7
- 230000004913 activation Effects 0.000 description 3
- 238000011160 research Methods 0.000 description 3
- 230000009286 beneficial effect Effects 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000007547 defect Effects 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005265 energy consumption Methods 0.000 description 1
- 238000009472 formulation Methods 0.000 description 1
- 239000000203 mixture Substances 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 238000003058 natural language processing Methods 0.000 description 1
- 238000010606 normalization Methods 0.000 description 1
- 238000010248 power generation Methods 0.000 description 1
- 238000011084 recovery Methods 0.000 description 1
- 238000012827 research and development Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q10/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
-
- B—PERFORMING OPERATIONS; TRANSPORTING
- B60—VEHICLES IN GENERAL
- B60L—PROPULSION OF ELECTRICALLY-PROPELLED VEHICLES; SUPPLYING ELECTRIC POWER FOR AUXILIARY EQUIPMENT OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRODYNAMIC BRAKE SYSTEMS FOR VEHICLES IN GENERAL; MAGNETIC SUSPENSION OR LEVITATION FOR VEHICLES; MONITORING OPERATING VARIABLES OF ELECTRICALLY-PROPELLED VEHICLES; ELECTRIC SAFETY DEVICES FOR ELECTRICALLY-PROPELLED VEHICLES
- B60L53/00—Methods of charging batteries, specially adapted for electric vehicles; Charging stations or on-board charging equipment therefor; Exchange of energy storage elements in electric vehicles
- B60L53/60—Monitoring or controlling charging stations
- B60L53/64—Optimising energy costs, e.g. responding to electricity rates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/04—Architecture, e.g. interconnection topology
- G06N3/045—Combinations of networks
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/02—Neural networks
- G06N3/08—Learning methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0201—Market modelling; Market analysis; Collecting market data
- G06Q30/0206—Price or cost determination based on market factors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q50/00—Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
- G06Q50/06—Energy or water supply
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/60—Other road transportation technologies with climate change mitigation effect
- Y02T10/70—Energy storage systems for electromobility, e.g. batteries
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/60—Other road transportation technologies with climate change mitigation effect
- Y02T10/7072—Electromobility specific charging systems or methods for batteries, ultracapacitors, supercapacitors or double-layer capacitors
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T90/00—Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
- Y02T90/10—Technologies relating to charging of electric vehicles
- Y02T90/12—Electric charging stations
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y04—INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
- Y04S—SYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
- Y04S50/00—Market activities related to the operation of systems integrating technologies related to power network operation or related to communication or information technologies
- Y04S50/14—Marketing, i.e. market research and analysis, surveying, promotions, advertising, buyer profiling, customer management or rewards
Landscapes
- Engineering & Computer Science (AREA)
- Business, Economics & Management (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Strategic Management (AREA)
- Economics (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Development Economics (AREA)
- General Health & Medical Sciences (AREA)
- Accounting & Taxation (AREA)
- Human Resources & Organizations (AREA)
- General Business, Economics & Management (AREA)
- Marketing (AREA)
- Data Mining & Analysis (AREA)
- Finance (AREA)
- Entrepreneurship & Innovation (AREA)
- Computational Linguistics (AREA)
- Molecular Biology (AREA)
- Evolutionary Computation (AREA)
- Biomedical Technology (AREA)
- Software Systems (AREA)
- Mathematical Physics (AREA)
- Artificial Intelligence (AREA)
- Game Theory and Decision Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- General Engineering & Computer Science (AREA)
- Computing Systems (AREA)
- Biophysics (AREA)
- Tourism & Hospitality (AREA)
- Power Engineering (AREA)
- Mechanical Engineering (AREA)
- Operations Research (AREA)
- Quality & Reliability (AREA)
- Transportation (AREA)
- Public Health (AREA)
- Water Supply & Treatment (AREA)
- Primary Health Care (AREA)
- Supply And Distribution Of Alternating Current (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
The invention relates to the electric vehicle charging management technology and aims to provide a BERT-based non-invasive distribution room charging pile state monitoring and electricity price adjusting method. The method comprises the following steps: acquiring total power historical data and charging pile state historical data of a transformer substation area as training samples; building a BERT model, which sequentially comprises an embedding layer, a transform layer and an output layer from front to back; determining a loss function for training; training a BERT model by using a gradient descent algorithm; historical total power data of the intelligent electric meters in the transformer substation area are input into the trained BERT model, historical working state data and historical charging power data of each charging pile are obtained, and state monitoring of the charging piles in the transformer area is achieved. The method can be directly applied to the existing charging pile without updating the hardware equipment of the charging pile; the design and production cost of the charging pile is reduced, and the method is more economical and efficient than the traditional method. The charging price can be adjusted in real time to guide a user to change electricity utilization habits, so that the peak clipping and valley filling of a power grid are facilitated, and the electric energy utilization rate is improved.
Description
Technical Field
The invention relates to an electric vehicle charging management technology, in particular to a non-invasive load detection and charging capacity prediction method based on BERT (Bidirectional Encoder recovery from converters), and a method for adjusting charging price of an electric vehicle in real time by using the method.
Technical Field
In recent years, with the rapid development of electric vehicles and related technologies, more and more electric vehicles are connected to a power grid, and the complexity of power grid load is increased. Through the electric vehicle charging capacity prediction algorithm, data support is provided for formulation of the real-time charging electricity price of the electric vehicle, and charging scheduling of the electric vehicle is facilitated. Most of the existing charge capacity prediction methods are realized by electric vehicle charge information acquired by related electrical data detection equipment arranged on a charge pile, so that certain requirements are configured on the hardware of the charge pile, and the existing charge capacity prediction methods are not economical enough.
Disclosure of Invention
The technical problem to be solved by the invention is to overcome the defects in the prior art and provide a non-invasive method for monitoring the charging pile state and adjusting the electricity price of a distribution room based on BERT.
In order to solve the technical problem, the solution of the invention is as follows:
the method for monitoring the state of the charging pile in the non-invasive distribution area based on the BERT comprises the following steps:
(1) Acquiring total power historical data and charging pile state historical data of a transformer substation area as training samples;
(2) Building a BERT model, which sequentially comprises an embedding layer, a transform layer and an output layer from front to back;
(3) Determining a loss function for training;
(4) Training the BERT model by using a gradient descent algorithm, which specifically comprises the following steps:
(4.1) randomly initializing model parameters;
(4.2) transmitting the training samples into a BERT model to obtain output;
(4.3) calculating the loss according to the loss function;
(4.4) for each neuron generating an error, adjusting model parameters to reduce the error;
(4.5) repeating steps (4.2) to (4.4) until the loss converges;
(5) Historical total power data of the intelligent electric meters in the transformer substation area are input into the trained BERT model, historical working state data and historical charging power data (curves) of the charging piles are obtained, and monitoring of the charging pile state in the transformer area is achieved.
The invention further provides a method for further predicting the residual charging capacity of a transformer substation area by using the BERT-based non-invasive transformer substation charging pile state monitoring method, which comprises the following steps:
(1) Building and training a fully-connected feedforward neural network FFN;
(2) Deploying the trained BERT model and FFN model to an intelligent electric meter, reading total power data of a transformer substation area in real time by the intelligent electric meter, inputting the total power data into the trained BERT model, and acquiring working state data of a charging pile in real time to form historical charging power data (curve);
(3) Calculating historical residual capacity data of the transformer area according to the historical total power of the transformer area and the inherent capacity of the transformer area read by the intelligent electric meter; calculating to obtain the historical residual charging capacity of the transformer substation area by combining the historical charging power data obtained in the step (2); and inputting the result into the trained FFN model to obtain the predicted future residual charging capacity.
The invention also provides a method for further adjusting the real-time charging price by using the method for predicting the residual charging capacity of the transformer substation area, which comprises the following steps:
(1) Calculating the ratio of the historical/future residual charging capacity of the transformer area to the total transformation capacity of the transformer area within a certain time step according to the historical residual charging capacity and the predicted future residual charging capacity of the transformer area, and recording the ratio as { H } t-T ,H t-T+1 ,...,H t-1 ,H t And { F } t ,F t+1 ,...,F t+T-1 ,F t+T }; wherein H t =F t The current time is the ratio of the remaining charging capacity;
(2) Calculate electric automobile according to the following formula and use real-time electrovalence P that charges that fills electric pile t :
Wherein rho is an electricity price adjustment constant; k is the number of the time points taken into account, and K time points are considered in the historical and future residual charging capacities; h k The remaining charge capacity ratio of the kth time point before the current time; f k The predicted remaining charge capacity ratio at the kth time point after the current time is obtained; alpha belongs to (0, 1) as a historical discount factor, and gamma belongs to (0, 1) as a future discount factor, which represents how much the remaining charge capacity at the previous/next moment is considered at the current moment;
(3) And taking the calculated real-time charging electricity price as a charging calculation basis for the electric automobile to use the charging pile.
Description of the inventive concept:
under the normal condition, the state detection of the charging pile of the transformer substation requires that related sensors and metering equipment are additionally arranged on the charging pile, and more hardware cost is required.
The non-invasive load detection is a load detection method for obtaining the internal load power data by analyzing the electrical information data of the power load inlet, and has the advantages of economy and cleanness. Nowadays, the energy internet is more and more popular, and the non-invasive load detection is more and more favored by manufacturers and researchers. However, in the related research on non-intrusive load detection, the technical scheme of the related research is to estimate the activities and energy consumption conditions of various other electric devices in the facility by measuring the total electric energy information of the accessed facility, so that the application scene of the technology is basically limited to providing an auxiliary detection means for the research on power consumption control of the electric devices in the facility.
The invention breaks through the inertial thought of the technical research and development in the industry, abandons the traditional method of hardware modification of the charging pile, and uses the non-intrusive load detection technology to obtain the electric energy information of the charging pile, so that the data metering equipment and the sensor are not required to be additionally arranged for monitoring the state of the existing charging pile, and the economy is improved; meanwhile, the extracted data is used for capacity prediction and electricity price adjustment, and instantaneity and prospect of electricity price adjustment are improved. The non-intrusive load detection method and the electric vehicle charging capacity prediction are introduced into the real-time adjustment of the charging electricity price of the electric vehicle, and compared with the traditional technical improvement scheme, the method is more prospective and more economic.
The BERT (Bidirectional Encoder retrieval from transforms) model is generally used for natural language processing tasks and has a good recognition capability for time series data such as language characters. However, compared with language and character data, the transformer substation area data is more fluctuating and diverse, and the task of extracting the charging pile data from the transformer substation area data cannot be well completed by directly using the BERT model. The invention improves the loss function of the model to better fulfill the requirements.
Meanwhile, the traditional electricity price making method generally only considers historical factors (such as historical power generation amount and historical load) and does not have foresight. The invention provides a charging price adjustment method considering historical and future residual charging capacity at the same time, and designs a related price adjustment formula, so that the method is more prospective and more reasonable than the traditional method. The future residual charging capacity is obtained by predicting the non-intrusive historical residual charging capacity through the full-connection feedforward neural network FFN.
Based on the improvement, according to total power data of the intelligent electric meters in the transformer substation area, historical working state information of the charging pile of the electric automobile in the transformer substation area is extracted by using a BERT-based non-invasive load detection method; predicting future residual charging capacity by using a fully-connected feed-forward neural network (FFN) according to the historical residual capacity of the transformer substation and the extracted historical charging load information; and finally, formulating a real-time charging electricity price mechanism of the electric automobile according to the historical residual charging capacity and the predicted future residual charging capacity of the charging pile.
Compared with the prior art, the invention has the beneficial effects that:
(1) The non-invasive load detection method is introduced into the electric vehicle charging capacity prediction algorithm, so that the algorithm for obtaining the electric vehicle charging information does not depend on the charging pile to install the electrical data acquisition equipment, can be directly applied to the existing charging pile, and does not need to update the charging pile hardware equipment; the design and production cost of the charging pile is reduced, and the method is more economical and efficient than the traditional method.
(2) After offline training and deployment are carried out, charging power information of the charging pile can be directly obtained online in real time by reading total power data of a transformer substation area, and residual charging capacity information of a predicted future time is updated in real time, so that the method is more real-time and efficient than the traditional algorithm.
(3) The real-time electricity price mechanism of the electric automobile simultaneously considers the historical residual charging capacity and the future residual charging capacity within a certain time step length, and compared with the traditional method, the real-time electricity price mechanism of the electric automobile is more prospective and the established electricity price is more reasonable. The charging price can be adjusted in real time to guide a user to change electricity utilization habits, so that the peak clipping and valley filling of a power grid are facilitated, and the electric energy utilization rate is improved.
Drawings
FIG. 1 is a block diagram of a BERT-based non-intrusive load detection model;
FIG. 2 is a diagram of a fully connected feed forward neural network (FFN) prediction model.
Detailed Description
The invention is further described below with reference to the accompanying drawings and specific embodiments, where an implementation scenario is a substation area where electric vehicle charging piles are built, and the substation area is provided with an intelligent summary table. The invention comprises three phases: firstly, extracting historical working state information of a charging pile of an electric vehicle in a transformer area by using a BERT-based non-invasive load detection method according to total power data of intelligent electric meters in the transformer area; secondly, predicting future residual charging capacity by using a fully-connected feed-forward neural network (FFN) according to the historical residual capacity of the transformer substation and the extracted historical charging load information; and finally, formulating a real-time charging electricity price mechanism of the electric automobile according to the historical residual charging capacity and the predicted future residual charging capacity of the charging pile.
The specific operation of each stage is as follows:
a first part: BERT-based non-invasive load detection method
1. Acquiring total power data of a transformer substation area and charging pile state data as training samples for model input and output;
2. building a BERT model (as shown in figure 1), and sequentially comprising an embedding layer, a transform layer and an output layer from front to back;
(2.1) Embedded layer
The embedding layer firstly extracts the characteristics of input data through a convolutional neural network and inputs the characteristics into the hiding layer, reduces the length of an input sequence by half through a square average pooling operation, and finally adds the input sequence with a learnable position embedding matrix (capturing sequence position coding) and outputs the input sequence to the next layer. The calculation formula of the embedding layer is:
Embedding(X)=LPPooling(Conv(X))+E pose
where X is the input matrix, LPPooling (. Degree.) is the square mean pooling operation, conv (. Degree.) is the convolutional neural network, E pose Representing a learnable position embedding matrix.
(2.2) Transformer layer
Embedding the layer output matrix into the bidirectional Transformer layer, which is composed of multiple layers of transformers and multiple self-attentions in each layer. A single self-entry can be represented by a linear transformation of the input matrices Q (Query), K (Key) and V (Value), with the formula:
wherein, d k Dimensions of Q and K, i.e., hidden layer size; softmax (.) is a normalized exponential function.
Integrating multi-head attentions by a plurality of self-attentions, namely, making the process of calculating self-attentions for a plurality of times, and splicing output matrixes, wherein the formula is as follows:
MultiHead(Q,K,V)=Concat(head 1 ,head 2 ,…,head h )W O
wherein, concat () is a matrix splicing function; w is a group of O Is a weight matrix; w i Q ,W i K ,W i V To linearly map the matrix, the inputs are mapped to different spaces.
(2.3) output layer
The output of the transform layer is first input to a position full-connection feed forward network (PFFN) of the output layer, which has the formula: PFFN (X) = GELU (0, xw) 1 +b 1 )W 2 +b 2
Wherein GELU (. Eta.) is activation function, W i ,b i And X is a network parameter matrix and a network input matrix.
And then obtaining the final output through a multilayer perceptron (MLP), wherein the final output comprises an deconvolution layer and two linear layers, and the formula is as follows:
Out(X)=Tanh(Deconv(X)W 1 +b 1 )W 2 +b 2
where Tanh (. Eta.) is the activation function, deconv (. Eta.) is the deconvolution network, W i ,b i Is a network parameter matrix and X is a network input matrix.
3. Determining a loss function for training, which is as follows:
wherein,x∈[0,1]respectively representing a model prediction output value and a normalization value of the real charging pile power;s i e { -1,1} is the predicted on-off state and the actual on-off state of the charging pile; t is the total time step; o is the time step length which meets the condition that the actual on-off state of the charging pile is on or the model state is wrong in prediction; both tau and lambda are hyper-parameters of the model, so as to reduce absolute errors; d KL () is a relative entropy function; softmax (.) is a normalized exponential function; log (.) is a log-based function of 10; exp (.) is an exponential function with a constant e as the base.
4. Training a model by using a gradient descent algorithm, and specifically comprising the following steps of:
(4.1) random initialization of model parameters, i.e. weights w i And deviation b i ;
(4.2) transmitting the input data into the model to obtain output;
(4.3) calculating the loss L according to the loss function;
(4.4) for each neuron that produces an error, adjusting the model parameters to reduce the error according to:
(4.5) repeating steps (4.2) to (4.4) until the loss converges.
5. Historical total power data of the intelligent electric meters in the transformer substation area are input into the trained BERT model in real time, historical working state data and historical charging power data (curves) of all charging piles are obtained, and non-invasive load detection is achieved.
A second part: method for predicting residual charging capacity of transformer substation area
1. Building and training a fully connected feed forward neural network (FFN) for predicting future residual charge capacity;
(1) Acquiring historical residual capacity of a transformer substation area and historical charging power data of a charging pile, and calculating to obtain the historical residual charging capacity of the transformer substation area; segmenting the data samples to form training data for the FFN model;
(2) An FFN model is built, as shown in fig. 2, which includes a convolution layer and two linear layers, and the calculation formula is:
Out(X)=Tanh(conv(X)W 1 +b 1 )W 2 +b 2
where Tanh (. Eta.) is the activation function, conv (. Eta.) is the convolutional network, W i ,b i X is the network input, is the network parameter.
(3) Determining a loss function for training, which is as follows:
wherein,x i respectively representing the model output value and the true remaining charge capacity, T being the time step.
(4) Training a model by using a gradient descent algorithm, and specifically comprising the following steps of:
(4.1) random initialization of model parameters, i.e. weights w i And deviation b i ;
(4.2) transmitting the input data into the model to obtain output;
(4.3) calculating the loss L according to the loss function;
(4.4) for each neuron that produces an error, adjusting the model parameters to reduce the error according to:
(4.5) repeating steps (4.2) to (4.4) until the loss converges.
2. And deploying the trained BERT model and FFN model to an intelligent electric meter, reading the total power data of the transformer substation area in real time by the intelligent electric meter, inputting the total power data into the trained BERT model, and acquiring the working state data of the charging pile in real time to form historical charging power data (curve).
3. Calculating historical residual capacity data of the transformer area according to the historical total power of the transformer area and the inherent capacity of the transformer area read by the intelligent electric meter, and calculating the historical residual charging capacity of the transformer area according to the historical charging power data obtained in the step 2; inputting the current data into a trained FFN model to obtain the predicted future residual charge capacity.
And a third part: mechanism for formulating charging real-time electricity price of electric automobile
1. Calculating the ratio of the historical/future residual charging capacity of the transformer area to the total transformation capacity of the transformer area within a certain time step according to the historical residual charging capacity and the predicted future residual charging capacity of the transformer area, and recording the ratio as { H } t-T ,H t-T+1 ,...,H t-1 ,H t And { F } t ,F t+1 ,...,F t+T-1 ,F t+T }; wherein H t =F t The remaining charge capacity is a ratio of the remaining charge capacity at the present moment;
2. calculate electric automobile according to the following formula and use real-time electrovalence P that charges that fills electric pile t :
Wherein rho is an electricity price adjustment constant; h k Is the ratio of the remaining charge capacity at the kth time point before the current time, F k The predicted remaining charge capacity ratio of the kth time point after the current time; k is the number of the time points taken into account, and K time points are considered for history and future residual charging capacity; alpha belongs to (0, 1) as a historical discount factor, and gamma belongs to (0, 1) as a future discount factor, which represents how much the remaining charge capacity at the previous/next moment is considered at the current moment;
(3) And taking the real-time charging electricity price obtained by calculation as a charging calculation basis for the electric automobile to use the charging pile.
The historical surplus charging capacity and the future surplus charging capacity within a certain time step length are considered simultaneously by the electricity price mechanism, real-time electricity prices are formulated according to the historical surplus charging capacity and the future surplus charging capacity, electricity prices in peak periods are increased, electricity prices in valley periods are reduced, the electricity price mechanism is beneficial to guiding users to reduce electricity consumption in peak periods, electricity consumption in valley periods is increased, peak clipping and valley filling of a power grid are facilitated, and the electric energy utilization rate is improved.
Claims (4)
1. A BERT-based non-invasive method for monitoring the charging pile state in a distribution room is characterized by comprising the following steps:
(1) Acquiring total power historical data and charging pile state historical data of a transformer substation area as training samples;
(2) Building a BERT model, which sequentially comprises an embedding layer, a transform layer and an output layer from front to back;
the BERT model specifically comprises:
(2.1) embedding layer
The embedding layer firstly extracts the characteristics of input data through a convolutional neural network and inputs the characteristics into the hiding layer, then the length of an input sequence is halved by adopting square average pooling operation, and finally the input sequence is added with a learnable position embedding matrix and output to the next layer;
(2.2) Transformer layer
Embedding the layer output matrix into a bidirectional Transformer layer, wherein the bidirectional Transformer layer consists of a plurality of layers of transformers and a plurality of self-attentions in each layer; a single self-event is represented by a linear transformation of the input matrices Q (Query), K (Key) and V (Value); integrating multi-head attentions by a plurality of self-attentions, namely, performing a self-attention calculation process for a plurality of times, splicing output matrixes, and mapping input to different spaces;
(2.3) output layer
The output of the Transformer layer is firstly input to a position full-connection feedforward network PFFN of an output layer; then, a final output is obtained through a multilayer perceptron MLP comprising an deconvolution layer and two linear layers;
(3) Determining a loss function for training, specifically:
wherein,representing the model predicted output value and the normalized value of the real charging pile power,x i respectively representing the model output value and the real residual charging capacity;the predicted on-off state and the actual on-off state of the charging pile are obtained; t is the total time step; o is the time step length which meets the condition that the actual on-off state of the charging pile is on or the model state is wrong in prediction; both tau and lambda are hyper-parameters of the model, so as to reduce absolute errors; d KL () is a relative entropy function; softmax (.) is a normalized exponential function; log (.) is a logarithmic function with a base 10; exp (.) is an exponential function with a constant e as the base;
(4) Training the BERT model by using a gradient descent algorithm, which specifically comprises the following steps:
(4.1) randomly initializing model parameters;
(4.2) transmitting the training samples into a BERT model to obtain output;
(4.3) calculating the loss according to the loss function;
(4.4) for each neuron generating an error, adjusting model parameters to reduce the error;
(4.5) repeating steps (4.2) to (4.4) until the loss converges;
(5) Historical total power data of the intelligent electric meters in the transformer substation area are input into the trained BERT model, historical working state data and historical charging power data of each charging pile are obtained, and state monitoring of the charging piles in the transformer area is achieved.
2. The method of claim 1, further predicting a substation area remaining charging capacity, comprising the steps of:
(S1) building and training a fully-connected feedforward neural network (FFN); the method specifically comprises the following steps:
(S1.1) acquiring historical residual capacity of a transformer substation area and historical charging power data of a charging pile, and calculating to obtain the historical residual charging capacity of the transformer substation area; segmenting the data sample to form training data;
(S1.2) building an FFN model, wherein the FFN model comprises a convolution layer and two linear layers;
(S1.3) determining a loss function for training;
(S1.4) training the FFN model by using a gradient descent algorithm, which specifically comprises the following steps:
(S1.4.1) randomly initializing model parameters;
(S1.4.2) transmitting the input data into the model to obtain output;
(S1.4.3) calculating loss according to the loss function;
(S1.4.4) for each neuron generating an error, adjusting model parameters to reduce the error:
(s1.4.5) repeating steps (s1.4.2) to (s1.4.4) until the loss converges;
(S2) deploying the trained BERT model and the FFN model to an intelligent electric meter, reading total power data of a transformer substation area in real time by the intelligent electric meter, inputting the total power data into the trained BERT model, and acquiring working state data of a charging pile in real time to form historical charging power data;
(S3) calculating historical residual capacity data of the transformer area according to the historical total power and the inherent capacity of the transformer area read by the intelligent electric meter; calculating to obtain the historical residual charging capacity of the transformer substation area by combining the historical charging power data obtained in the step (S2); and inputting the result into the trained FFN model to obtain the predicted future residual charging capacity.
4. the method of claim 2, wherein the real-time charging electricity price is further adjusted, comprising the steps of:
(A1) Calculating the ratio of the historical/future residual charging capacity of the transformer area to the total transformation capacity of the transformer area within a certain time step according to the historical residual charging capacity and the predicted future residual charging capacity of the transformer area, and recording the ratio as { H } t-T ,H t-T+1 ,...,H t-1 ,H t And { F } t ,F t+1 ,...,F t+T-1 ,F t+T }; wherein H t =F t The remaining charge capacity is a ratio of the remaining charge capacity at the present moment;
(A2) Calculate real-time electricity price P that charges that electric automobile used charging pile according to following formula t :
Wherein rho is an electricity price adjusting constant; k is the number of the time points taken into account, and K time points are considered in the historical and future residual charging capacities; h k The remaining charge capacity ratio of the kth time point before the current time; f k The predicted remaining charge capacity ratio at the kth time point after the current time is obtained; alpha belongs to (0, 1) as a historical discount factor, and gamma belongs to (0, 1) as a future discount factor, which represents how much the remaining charge capacity at the previous/next moment is considered at the current moment;
(A3) And taking the real-time charging electricity price obtained by calculation as a charging calculation basis for the electric automobile to use the charging pile.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111156209.3A CN113902183B (en) | 2021-09-28 | 2021-09-28 | BERT-based non-invasive transformer area charging pile state monitoring and electricity price adjusting method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111156209.3A CN113902183B (en) | 2021-09-28 | 2021-09-28 | BERT-based non-invasive transformer area charging pile state monitoring and electricity price adjusting method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113902183A CN113902183A (en) | 2022-01-07 |
CN113902183B true CN113902183B (en) | 2022-11-08 |
Family
ID=79189534
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111156209.3A Active CN113902183B (en) | 2021-09-28 | 2021-09-28 | BERT-based non-invasive transformer area charging pile state monitoring and electricity price adjusting method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113902183B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114925874A (en) * | 2022-03-28 | 2022-08-19 | 中国科学院深圳先进技术研究院 | Carbon emission pre-judging method and device based on BERT neural network model |
CN117416239B (en) * | 2023-10-10 | 2024-04-19 | 北京理工大学前沿技术研究院 | Monitoring method and system for alternating-current charging pile of electric automobile and electronic equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106208388A (en) * | 2016-08-31 | 2016-12-07 | 科大智能电气技术有限公司 | A kind of intelligence charging system and short term basis load prediction implementation method thereof in order |
CN111532150A (en) * | 2020-05-15 | 2020-08-14 | 国网辽宁省电力有限公司电力科学研究院 | Self-learning-based electric vehicle charging control strategy optimization method and system |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030182250A1 (en) * | 2002-03-19 | 2003-09-25 | Mohammad Shihidehpour | Technique for forecasting market pricing of electricity |
FI20195682A1 (en) * | 2019-08-15 | 2021-02-16 | Liikennevirta Oy / Virta Ltd | Charging station monitoring method and device |
CN110929921A (en) * | 2019-11-06 | 2020-03-27 | 中国南方电网有限责任公司 | Charging station load prediction method, charging station load prediction device, computer equipment and storage medium |
CN112134300B (en) * | 2020-10-09 | 2022-03-08 | 国网江苏省电力有限公司无锡供电分公司 | Reservation-based rolling optimization operation method and system for electric vehicle light storage charging station |
CN112193112B (en) * | 2020-10-16 | 2022-06-14 | 安徽继远软件有限公司 | Intelligent management method and device for charging piles of electric automobile charging station |
-
2021
- 2021-09-28 CN CN202111156209.3A patent/CN113902183B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106208388A (en) * | 2016-08-31 | 2016-12-07 | 科大智能电气技术有限公司 | A kind of intelligence charging system and short term basis load prediction implementation method thereof in order |
CN111532150A (en) * | 2020-05-15 | 2020-08-14 | 国网辽宁省电力有限公司电力科学研究院 | Self-learning-based electric vehicle charging control strategy optimization method and system |
Also Published As
Publication number | Publication date |
---|---|
CN113902183A (en) | 2022-01-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Ke et al. | Short-term electrical load forecasting method based on stacked auto-encoding and GRU neural network | |
CN113902183B (en) | BERT-based non-invasive transformer area charging pile state monitoring and electricity price adjusting method | |
CN107766986A (en) | Leak integral form echo state network on-line study photovoltaic power Forecasting Methodology | |
Liu et al. | Heating load forecasting for combined heat and power plants via strand-based LSTM | |
CN114722873A (en) | Non-invasive load decomposition method based on residual convolution and attention mechanism | |
CN113837499A (en) | Ultra-short-term wind power prediction method and system | |
CN113837464A (en) | Load prediction method of cogeneration boiler based on CNN-LSTM-Attention | |
CN111369120A (en) | Non-invasive load monitoring method based on equipment transfer learning | |
CN115146842A (en) | Multivariate time series trend prediction method and system based on deep learning | |
CN113361803A (en) | Ultra-short-term photovoltaic power prediction method based on generation countermeasure network | |
CN115859792A (en) | Medium-term power load prediction method and system based on attention mechanism | |
CN116629417A (en) | Rail transit traction load prediction method combined with convolution attention module | |
CN117674098B (en) | Multi-element load space-time probability distribution prediction method and system for different permeability | |
CN113344279B (en) | Resident load prediction method based on LSTM-SAM model and pooling | |
CN112508734B (en) | Method and device for predicting power generation capacity of power enterprise based on convolutional neural network | |
CN112836876A (en) | Power distribution network line load prediction method based on deep learning | |
CN116167465A (en) | Solar irradiance prediction method based on multivariate time series ensemble learning | |
CN117034762A (en) | Composite model lithium battery life prediction method based on multi-algorithm weighted sum | |
CN114839586B (en) | Low-voltage station metering device misalignment calculation method based on EM algorithm | |
CN113673846B (en) | Demand situation awareness method under electric power Internet of things architecture | |
CN116404637A (en) | Short-term load prediction method and device for electric power system | |
CN116338322A (en) | Power grid line impedance prediction method and system | |
CN116402194A (en) | Multi-time scale load prediction method based on hybrid neural network | |
CN115577748A (en) | Dual-channel wind power prediction method integrated with extrusion excitation attention mechanism | |
CN115759343A (en) | E-LSTM-based user electric quantity prediction method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |