CN113902183A - BERT-based non-invasive distribution room charging pile state monitoring and electricity price adjusting method - Google Patents

BERT-based non-invasive distribution room charging pile state monitoring and electricity price adjusting method Download PDF

Info

Publication number
CN113902183A
CN113902183A CN202111156209.3A CN202111156209A CN113902183A CN 113902183 A CN113902183 A CN 113902183A CN 202111156209 A CN202111156209 A CN 202111156209A CN 113902183 A CN113902183 A CN 113902183A
Authority
CN
China
Prior art keywords
charging
historical
charging pile
layer
model
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.)
Granted
Application number
CN202111156209.3A
Other languages
Chinese (zh)
Other versions
CN113902183B (en
Inventor
彭勇刚
莫浩杰
李鹏
胡丹尔
孙静
翁楚迪
韦巍
习伟
蔡田田
邓清唐
陈波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang University ZJU
Southern Power Grid Digital Grid Research Institute Co Ltd
Original Assignee
Zhejiang University ZJU
Southern Power Grid Digital Grid Research Institute Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Zhejiang University ZJU, Southern Power Grid Digital Grid Research Institute Co Ltd filed Critical Zhejiang University ZJU
Priority to CN202111156209.3A priority Critical patent/CN113902183B/en
Publication of CN113902183A publication Critical patent/CN113902183A/en
Application granted granted Critical
Publication of CN113902183B publication Critical patent/CN113902183B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60LPROPULSION 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/00Methods 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/60Monitoring or controlling charging stations
    • B60L53/64Optimising energy costs, e.g. responding to electricity rates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data
    • G06Q30/0206Price or cost determination based on market factors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/70Energy storage systems for electromobility, e.g. batteries
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T10/00Road transport of goods or passengers
    • Y02T10/60Other road transportation technologies with climate change mitigation effect
    • Y02T10/7072Electromobility specific charging systems or methods for batteries, ultracapacitors, supercapacitors or double-layer capacitors
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02TCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
    • Y02T90/00Enabling technologies or technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02T90/10Technologies relating to charging of electric vehicles
    • Y02T90/12Electric charging stations
    • YGENERAL 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
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS 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/00Market activities related to the operation of systems integrating technologies related to power network operation or related to communication or information technologies
    • Y04S50/14Marketing, i.e. market research and analysis, surveying, promotions, advertising, buyer profiling, customer management or rewards

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Strategic Management (AREA)
  • General Physics & Mathematics (AREA)
  • Economics (AREA)
  • Health & Medical Sciences (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • General Business, Economics & Management (AREA)
  • Data Mining & Analysis (AREA)
  • Marketing (AREA)
  • General Health & Medical Sciences (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Human Resources & Organizations (AREA)
  • Accounting & Taxation (AREA)
  • Computing Systems (AREA)
  • Biomedical Technology (AREA)
  • Software Systems (AREA)
  • Artificial Intelligence (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Mathematical Physics (AREA)
  • Tourism & Hospitality (AREA)
  • Game Theory and Decision Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Biophysics (AREA)
  • Molecular Biology (AREA)
  • Evolutionary Computation (AREA)
  • Computational Linguistics (AREA)
  • Mechanical Engineering (AREA)
  • Quality & Reliability (AREA)
  • Operations Research (AREA)
  • Transportation (AREA)
  • Power Engineering (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 are reduced, and the charging pile 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

BERT-based non-invasive distribution room charging pile state monitoring and electricity price adjusting method
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 the load of the power grid 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 the transformer substation area by using the BERT-based non-invasive area 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 electricity price by utilizing 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,Ht-T+1,...,Ht-1,HtAnd { F }t,Ft+1,...,Ft+T-1,Ft+T}; wherein Ht=FtThe remaining charge capacity is a ratio of the remaining charge capacity at the present moment;
(2) calculate real-time electricity price P that charges that electric automobile used charging pile according to following formulat
Figure RE-GDA0003330014010000021
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 for history and future residual charging capacity; hkThe remaining charge capacity ratio of the kth time point before the current time; fkTo a predicted current timeThe remaining charge capacity at the kth time point after the moment is counted; α ∈ (0,1) is a historical discount factor, γ ∈ (0,1) is a future discount factor, and represents how much charge capacity is left at the previous/next time considered at the current time;
(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.
Description of the inventive principles:
under the general condition, all need to install relevant sensor and metering device additional on filling electric pile to the state detection of the electric pile of transformer substation, need more hardware cost.
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 developed by the technology in the industry, abandons the traditional method of hardware modification of the charging pile, and obtains the electric energy information of the charging pile by using the non-invasive load detection technology, 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 economical efficiency is improved; meanwhile, the extracted data is used for capacity prediction and power price adjustment, and the instantaneity and the prospect of power 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 usually 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, so that the model can better fulfill the requirements.
Meanwhile, the traditional electricity price making method generally only considers historical factors (such as historical power generation amount, historical load and the like) and has no prospect. 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 are reduced, and the charging pile 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) 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, 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))+Epose
where X is the input matrix, LPPooling (. degree.) is the square mean pooling operation, Conv (. degree.) is the convolutional neural network, EposeRepresenting 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:
Figure RE-GDA0003330014010000051
wherein d iskDimensions 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 the self-attentions for a plurality of times, and splicing output matrixes, wherein the formula is as follows:
MultiHead(Q,K,V)=Concat(head1,head2,…,headh)WO
Figure RE-GDA0003330014010000052
wherein Concat (.) is a matrix splicing function; wOIs a weight matrix; wi Q,Wi K,Wi VTo 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 feedforward network (PF) of the output layerFN) of the formula: pffn (x) ═ GELU (0, XW)1+b1)W2+b2
Wherein GELU (. eta.) is activation function, Wi,biIs a network parameter matrix and X is 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)W1+b1)W2+b2
where Tanh (. eta.) is the activation function, Deconv (. eta.) is the deconvolution network, Wi,biIs a network parameter matrix and X is a network input matrix.
3. Determining a loss function for training, which is as follows:
Figure RE-GDA0003330014010000053
wherein,
Figure RE-GDA0003330014010000054
x∈[0,1]respectively representing a model prediction output value and a normalization value of the real charging pile power;
Figure RE-GDA0003330014010000055
sie { -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; dKL(.) 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 wiAnd deviation bi
(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:
Figure RE-GDA0003330014010000061
(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)W1+b1)W2+b2
where Tanh (. eta.) is the activation function, conv (. eta.) is the convolutional network, Wi,biX is the network input for the network parameter.
(3) Determining a loss function for training, which is as follows:
Figure RE-GDA0003330014010000062
wherein,
Figure RE-GDA0003330014010000063
xirespectively 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 wiAnd deviation bi
(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:
Figure RE-GDA0003330014010000064
(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,Ht-T+1,...,Ht-1,HtAnd { F }t,Ft+1,...,Ft+T-1,Ft+T}; wherein Ht=FtThe remaining charge capacity is a ratio of the remaining charge capacity at the present moment;
2. calculate real-time electricity price P that charges that electric automobile used charging pile according to following formulat
Figure RE-GDA0003330014010000071
Wherein rho is an electricity price adjustment constant; hkIs the ratio of the remaining charge capacity at the kth time point before the current time, FkThe 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; α ∈ (0,1) is a historical discount factor, γ ∈ (0,1) is a future discount factor, and represents how much charge capacity is left at the previous/next time considered at the current time;
(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 electricity price mechanism considers the historical residual charging capacity and the future residual charging capacity in a certain time step length simultaneously, and real-time electricity prices are formulated according to the historical residual charging capacity and the future residual charging capacity, so that electricity prices in peak periods and valley periods are increased, electricity prices in valley periods are reduced, users are guided to reduce electricity consumption in peak periods, electricity consumption in valley periods is increased, power grid peak clipping and valley filling are facilitated, and the electric energy utilization rate is improved.

Claims (7)

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;
(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 of each charging pile are obtained, and state monitoring of the charging piles in the transformer area is achieved.
2. The method according to claim 1, wherein 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-entry 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; and then the final output is obtained through a multi-layer perceptron MLP comprising an deconvolution layer and two linear layers.
3. The method according to claim 1, wherein the training loss function in step (3) is specifically:
Figure RE-FDA0003330013000000011
wherein,
Figure RE-FDA0003330013000000021
respectively representing a model prediction output value and a normalization value of the real charging pile power;
Figure RE-FDA0003330013000000022
the predicted switch state and the actual switch 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; dKL(.) 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. The method for further predicting the remaining charging capacity of a substation area by using the BERT-based non-intrusive area charging pile state monitoring method of claim 1, characterized by comprising 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;
(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.
5. The method according to claim 4, characterized in that said step (1) comprises in particular:
(1.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;
(1.2) building an FFN model, which comprises a convolution layer and two linear layers;
(1.3) determining a loss function for training;
(1.4) training the FFN model by using a gradient descent algorithm, which specifically comprises the following steps:
(1.4.1) randomly initializing model parameters;
(1.4.2) transmitting the input data into the model to obtain output;
(1.4.3) calculating a loss according to the loss function;
(1.4.4) for each neuron that produces an error, adjusting model parameters to reduce the error:
(1.4.5) repeating steps (1.4.2) to (1.4.4) until the loss converges.
6. The method according to claim 5, wherein the training loss function in step (1.3) is specifically:
Figure RE-FDA0003330013000000023
wherein,
Figure RE-FDA0003330013000000024
xirespectively representing the model output value and the true remaining charge capacity, T being the time step.
7. The method for predicting the remaining charging capacity of the substation area according to claim 4 is further used for adjusting the real-time charging electricity price, and is characterized by comprising the following steps:
(1) historical remaining charge capacity and predicted future remaining based on substation areaThe residual charging capacity is calculated to obtain the ratio of the station area history/future residual charging capacity of a fixed time step length in a period of time to the total transformation capacity of the station area, and is recorded as { Ht-T,Ht-T+1,...,Ht-1,HtAnd { F }t,Ft+1,...,Ft+T-1,Ft+T}; wherein Ht=FtThe remaining charge capacity is a ratio of the remaining charge capacity at the present moment;
(2) calculate real-time electricity price P that charges that electric automobile used charging pile according to following formulat
Figure RE-FDA0003330013000000031
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 for history and future residual charging capacity; hkThe remaining charge capacity ratio of the kth time point before the current time; fkThe predicted remaining charge capacity ratio at the kth time point after the current time is obtained; α ∈ (0,1) is a historical discount factor, γ ∈ (0,1) is a future discount factor, and represents how much charge capacity is left at the previous/next time considered at the current time;
(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.
CN202111156209.3A 2021-09-28 2021-09-28 BERT-based non-invasive transformer area charging pile state monitoring and electricity price adjusting method Active CN113902183B (en)

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 true CN113902183A (en) 2022-01-07
CN113902183B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
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
CN117416239A (en) * 2023-10-10 2024-01-19 北京理工大学前沿技术研究院 Monitoring method and system for alternating-current charging pile of electric automobile and electronic equipment
CN118003953A (en) * 2024-04-09 2024-05-10 青岛城运数字科技有限公司 Control method and device for charging behavior in charging station

Citations (7)

* Cited by examiner, † Cited by third party
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
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
CN110929921A (en) * 2019-11-06 2020-03-27 中国南方电网有限责任公司 Charging station load prediction method, charging station load prediction device, computer equipment and storage medium
CN111532150A (en) * 2020-05-15 2020-08-14 国网辽宁省电力有限公司电力科学研究院 Self-learning-based electric vehicle charging control strategy optimization method and system
CN112134300A (en) * 2020-10-09 2020-12-25 国网江苏省电力有限公司无锡供电分公司 Reservation-based rolling optimization operation method and system for electric vehicle light storage charging station
CN112193112A (en) * 2020-10-16 2021-01-08 安徽继远软件有限公司 Intelligent management method and device for charging piles of electric automobile charging station
WO2021028615A1 (en) * 2019-08-15 2021-02-18 Liikennevirta Oy / Virta Ltd Charging station monitoring method and device

Patent Citations (7)

* Cited by examiner, † Cited by third party
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
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
WO2021028615A1 (en) * 2019-08-15 2021-02-18 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
CN111532150A (en) * 2020-05-15 2020-08-14 国网辽宁省电力有限公司电力科学研究院 Self-learning-based electric vehicle charging control strategy optimization method and system
CN112134300A (en) * 2020-10-09 2020-12-25 国网江苏省电力有限公司无锡供电分公司 Reservation-based rolling optimization operation method and system for electric vehicle light storage charging station
CN112193112A (en) * 2020-10-16 2021-01-08 安徽继远软件有限公司 Intelligent management method and device for charging piles of electric automobile charging station

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
党存禄等: "基于CatBoost算法的电力短期负荷预测研究", 《电气工程学报》 *

Cited By (4)

* Cited by examiner, † Cited by third party
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
CN117416239A (en) * 2023-10-10 2024-01-19 北京理工大学前沿技术研究院 Monitoring method and system for alternating-current charging pile of electric automobile and electronic equipment
CN117416239B (en) * 2023-10-10 2024-04-19 北京理工大学前沿技术研究院 Monitoring method and system for alternating-current charging pile of electric automobile and electronic equipment
CN118003953A (en) * 2024-04-09 2024-05-10 青岛城运数字科技有限公司 Control method and device for charging behavior in charging station

Also Published As

Publication number Publication date
CN113902183B (en) 2022-11-08

Similar Documents

Publication Publication Date Title
CN113902183B (en) BERT-based non-invasive transformer area charging pile state monitoring and electricity price adjusting method
Ke et al. Short-term electrical load forecasting method based on stacked auto-encoding and GRU neural network
CN114722873A (en) Non-invasive load decomposition method based on residual convolution and attention mechanism
Liu et al. Heating load forecasting for combined heat and power plants via strand-based LSTM
CN113837499A (en) Ultra-short-term wind power prediction method and system
CN113837464A (en) Load prediction method of cogeneration boiler based on CNN-LSTM-Attention
CN115065078A (en) Energy storage capacity configuration method and system in micro-grid environment
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
CN113762591B (en) Short-term electric quantity prediction method and system based on GRU and multi-core SVM countermeasure learning
CN113705888A (en) Industrial steam generation amount prediction method and system based on Pearson correlation and neural network
CN116167465A (en) Solar irradiance prediction method based on multivariate time series ensemble learning
CN116664870A (en) Power quality disturbance identification method based on transfer 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
CN116404637A (en) Short-term load prediction method and device for electric power system
CN116338322A (en) Power grid line impedance prediction method and system
CN113673846B (en) Demand situation awareness method under electric power Internet of things architecture
CN115577748A (en) Dual-channel wind power prediction method integrated with extrusion excitation attention mechanism
CN113780661B (en) Wind power ultra-short-term power prediction method for abrupt wind speed
CN111209999A (en) Contact network performance degradation prediction method based on recurrent neural network
CN114118568A (en) Multi-attention-based power consumption prediction method for convolutional neural network
CN113159368A (en) Power utilization model optimization method based on environment context and user feedback information

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