A DC charging pile measurement error evaluation method based on improved Elman network
Through the improved Elman network, the method of symplectic geometric mode decomposition and interpolation processing is used, combined with the temperature characteristic data, to construct an error evaluation model for DC charging piles, which solves the problem of metering performance being affected by ripple and temperature, and achieves remote and efficient The measurement performance verification improves the accuracy and efficiency of measurement error assessment.
Patent Information
- Application Number
- CN202410928101.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-11
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-11
AI Technical Summary
The measurement performance of DC charging piles is affected by ripple and temperature, resulting in measurement errors and low efficiency of traditional on-site verification.
The improved Elman network is used to obtain power characteristic data through symplectic geometric mode decomposition and interpolation processing, and an error evaluation model is constructed based on temperature characteristic data to achieve remote and efficient measurement performance verification.
Effectively evaluate and identify charging pile metering errors, improve the accuracy and verification efficiency of metering performance, and reduce dependence on the environment.
Smart Images

Figure CN118465675B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of online monitoring of electric power metering, and in particular to a DC charging pile metering error evaluation method based on an improved Elman network. Background Art
[0002] As one of the primary charging facilities for electric vehicles, the accuracy and reliability of DC charging piles' metering functions are directly related to the fairness of charging services and the rights and interests of users. The DC signal output by DC charging piles contains ripple, which can cause errors in the DC energy meter's measurement algorithm. Furthermore, the metering chip within the DC energy meter is susceptible to temperature, resulting in measurement errors. Therefore, regular calibration of the metering performance of DC charging piles is necessary.
[0003] The traditional on-site calibration of DC charging piles is easily affected by weather, environmental and other factors, resulting in low efficiency. Summary of the Invention
[0004] In response to the technical problems existing in the prior art, the present invention provides a DC charging pile metering error evaluation method based on an improved Elman network. The error evaluation model of the charging pile metering module is constructed with ripple power and temperature characteristics as input quantities. The method solves the problem that the metering performance of the DC charging pile is affected by ripple and temperature, resulting in metering errors in the metering process, and realizes remote and efficient DC charging pile metering performance verification.
[0005] According to a first aspect of the present invention, a method for evaluating DC charging pile metering errors based on an improved Elman network is provided, comprising:
[0006] Step 1: Collect metering data of a DC charging pile and perform symplectic geometric mode decomposition on the metering data to obtain various decomposition signals; the metering data includes: a voltage signal and a current signal output by the DC charging pile; and the decomposition signals include: a DC voltage signal, a DC current signal, a voltage ripple signal, and a current ripple signal;
[0007] Step 2: performing interpolation processing on each of the decomposed signals, and calculating the electric quantity characteristic data based on the interpolated decomposed signals;
[0008] Step 3: extracting features from the temperature data based on the neural network model to obtain temperature feature data;
[0009] Step 4: construct and train an error assessment model using an Elman neural network; the input of the error assessment model is a feature vector generated by combining the electrical quantity characteristic data and the temperature characteristic data, and the output is a measurement error assessment result;
[0010] Step 5: Evaluate the metering error of the charging pile to be evaluated based on the trained error evaluation model.
[0011] On the basis of the above technical solution, the present invention can also make the following improvements.
[0012] Optionally, step 1 includes:
[0013] Step 101: Decompose the measurement data using symplectic geometric mode decomposition:
[0014] (1)
[0015] (2)
[0016] in, is the timing signal of the voltage signal, is the timing signal of the current signal, T is the time length of signal acquisition; M is the number of the final voltage symplectic geometric components, is the mth voltage symplectic geometric component, is the final residual component; B is the number of the final current symplectic geometric components, is the bth voltage symplectic geometric component, is the final residual component;
[0017] Step 102, selecting the voltage ripple and current ripple of the same frequency from the components of equation (1) and equation (2) as a group of signals;
[0018] Step 103: Process the selected DC voltage, DC current, voltage ripple, current ripple and other signals using discrete Fourier transform to obtain a DC voltage signal. , DC current signal , voltage ripple signal and current ripple signal ;in, ; L represents the number of voltage / current groups with the same frequency.
[0019] Optionally, the interpolation process in step 2 includes:
[0020] Taking the data of the known time node as input and the original voltage / current amplitude as output, a cubic spline interpolation function of each of the decomposed signals is constructed, and interpolation processing is performed on each of the decomposed signals respectively.
[0021] Optionally, the process of obtaining the power characteristic data in step 2 includes:
[0022] Calculate the ripple signal power characteristics within the set T period and DC signal electrical characteristics :
[0023] ; ;
[0024] in, ; ; and 、 and are the interpolated DC voltage signals , DC current signal , voltage ripple signal and current ripple signal A function of time t; is the phase angle difference between the ripple voltage and the ripple current; t1 and t2 are the start and end times of the T period respectively.
[0025] Optionally, in step 3, a CNN-LSTM model is used to extract features of the temperature data corresponding to the set T time period.
[0026] Optionally, the feature vector in step 4 includes: normalized data of DC signal electrical quantity characteristics, normalized data of electrical quantity characteristics of each group of ripple signals with the same frequency after interpolation, and normalized data of the temperature characteristic data.
[0027] Optionally, the process of constructing the error assessment model using the Elman neural network in step 4 includes: introducing a hidden layer into the Elman neural network;
[0028] The formula of the error assessment model includes:
[0029] ;
[0030] Where N represents the current state. is the output of the error estimation model, is the hidden layer output; 、 Output feedback vector for the receiving layer; Indicates the difference between the measurement error predicted by the model and the actual error in the N-1 state; Transfer function for the output layer; is the hidden layer activation function; Represents the input of the Elman neural network in the N-1 state; is the connection weight between the input layer and the hidden layer; is the weight of the receiving layer and the hidden layer; are the weights of the hidden layer and the output layer.
[0031] Optionally, when training the error estimation model, a loss function of the error estimation model is defined: for:
[0032] ;
[0033] Where, is the weight parameter, G is the number of test samples, is the evaluation error of the g-th sample, is the actual error of the g-th sample; is the power supply of the total meter in the area, is the power of the DC metering module inside the g-th charging pile, Fixed loss of maintenance equipment within the station. is the line loss within the station.
[0034] Optional, weight The process of setting the size includes:
[0035] The loss functions are 、 The error evaluation model is trained with the model error index Q and the category index R as constant conditions:
[0036] ;
[0037] ;
[0038] ;
[0039] The charging pile measurement error evaluation results are divided into various levels and categories. Indicates the number of charging piles with error level i that are identified as class j; represents the actual number of charging pile error level i; represents the number of charging piles predicted to be of the jth category; Respectively The error index Q and category index R of the model when it is the loss function.
[0040] The present invention provides a DC charging pile metering error assessment method based on an improved Elman network. The method obtains the sizes of different components by calculating the ripple signals in the voltage and current signals. A charging pile error assessment model is constructed with temperature and ripple components as characteristic quantities. To increase the fitting speed and accuracy of the model, the ELman network is optimized, and the error between the previous output result and the actual result is used as a feedback vector to introduce a hidden layer. Based on the law of conservation of energy, a new loss function is constructed with the station as the unit, and a weight coefficient is set. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 A flow chart of a DC charging pile measurement error evaluation method based on an improved Elman network provided by the present invention;
[0042] Figure 2 A schematic diagram of an optimized Elman network structure provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0043] The principles and features of the present invention are described below with reference to the accompanying drawings. The examples given are only used to explain the present invention and are not used to limit the scope of the present invention.
[0044] Figure 1 The present invention provides a flow chart of a DC charging pile measurement error evaluation method based on an improved Elman network, such as Figure 1 As shown in FIG, the measurement error evaluation method includes:
[0045] Step 1: Collect metering data of a DC charging pile and perform symplectic geometric mode decomposition on the metering data to obtain various decomposition signals; the metering data includes: a voltage signal and a current signal output by the DC charging pile; and the decomposition signals include: a DC voltage signal, a DC current signal, a voltage ripple signal, and a current ripple signal.
[0046] In a specific implementation, the device can collect the input voltage and current signals of the DC charging pile metering module.
[0047] Step 2: interpolate each decomposed signal and calculate the electrical quantity characteristic data based on the interpolated decomposed signal.
[0048] Step 3: Extract features of the temperature data based on the neural network model to obtain temperature feature data.
[0049] Step 4: construct and train an error evaluation model using the Elman neural network; the input of the error evaluation model is a feature vector generated by combining the electrical quantity characteristic data and the temperature characteristic data, and the output is a measurement error evaluation result.
[0050] Step 5: Evaluate the metering error of the charging pile to be evaluated based on the trained error evaluation model.
[0051] The present invention provides a DC charging pile metering error assessment method based on an improved Elman network. Taking into account that the metering performance of DC charging piles is affected by ripple and temperature, which leads to metering errors in the metering process, an error assessment model of the charging pile metering module is constructed with ripple power and temperature characteristics as input, thus realizing remote and efficient DC charging pile metering performance verification.
[0052] Example 1
[0053] The embodiment 1 provided by the present invention is an embodiment of a DC charging pile measurement error evaluation method based on an improved Elman network provided by the present invention, combined with Figure 1 It can be seen that the embodiment of the measurement error evaluation method includes:
[0054] Step 1: Collect metering data of a DC charging pile and perform symplectic geometric mode decomposition on the metering data to obtain various decomposition signals; the metering data includes: a voltage signal and a current signal output by the DC charging pile; and the decomposition signals include: a DC voltage signal, a DC current signal, a voltage ripple signal, and a current ripple signal.
[0055] In one possible embodiment, step 1 includes:
[0056] Step 101: Decompose the measurement data using symplectic geometric mode decomposition:
[0057] (1)
[0058] (2)
[0059] in, is the timing signal of the voltage signal, is the timing signal of the current signal, T is the time length of signal acquisition; M is the number of the final voltage symplectic geometric components, is the mth voltage symplectic geometric component, is the final residual component; B is the number of the final current symplectic geometric components, is the bth voltage symplectic geometric component, is the final residual component.
[0060] In step 102, the voltage ripple and current ripple of the same frequency are respectively selected from the components of equation (1) and equation (2) as a group of signals.
[0061] In practice, when the voltage ripple and current ripple components have different frequencies, the energy metering error is minimal and can be ignored. However, when the voltage ripple and current ripple components have the same frequency, a more significant error will occur. Therefore, signals with the same frequency are selected.
[0062] Step 103: Process the selected DC voltage, DC current, voltage ripple, current ripple and other signals using discrete Fourier transform to obtain a DC voltage signal. , DC current signal , voltage ripple signal and current ripple signal ;in, ; L represents the number of voltage / current groups with the same frequency.
[0063] Step 2: interpolate each decomposed signal and calculate the electrical quantity characteristic data based on the interpolated decomposed signal.
[0064] In a possible embodiment, the process of performing interpolation processing in step 2 includes:
[0065] With the data of the known time node as input and the original voltage / current amplitude as output, the cubic spline interpolation function of each decomposition signal is constructed, and the interpolation processing is performed on each decomposition signal respectively.
[0066] Voltage ripple signal For example, the interpolation function is:
[0067] (3)
[0068] Where t represents the time, is the coefficient, The voltage ripple signal Interpolation functions built on top of .
[0069] Interpolate the DC component and ripple component separately to obtain the interpolated DC voltage , DC current , ripple voltage and ripple current , which can improve the density and accuracy of data sources.
[0070] In one possible embodiment, the process of obtaining the power characteristic data in step 2 includes:
[0071] Calculate the ripple signal power characteristics within the set T period and DC signal electrical characteristics :
[0072] (4)
[0073] (5)
[0074] in, (6)
[0075] (7)
[0076] and 、 and are the interpolated DC voltage signals , DC current signal , voltage ripple signal and current ripple signal A function of time t; is the phase angle difference between the ripple voltage and the ripple current; t1 and t2 are the start and end times of the T period respectively.
[0077] Step 3: Extract features of the temperature data based on the neural network model to obtain temperature feature data.
[0078] In a possible embodiment, in step 3, a CNN-LSTM model is used to extract features of the temperature data corresponding to the set time period T.
[0079] TP=CNN-LSTM(Temp)(8)
[0080] Temp is the temperature data corresponding to the T time period.
[0081] The Elman neural network adds a connection layer, which enables the network to remember historical data, thus having higher network stability and computing power than commonly used neural networks. The embodiment of the present invention uses the ELman neural network for error fitting. To speed up the fitting speed and fitting accuracy of the model, this patent optimizes the ELman neural network, using the error between the previous output result and the actual result as a feedback vector and introducing it into the hidden layer.
[0082] Step 4: construct and train an error evaluation model using the Elman neural network; the input of the error evaluation model is a feature vector generated by combining the electrical quantity characteristic data and the temperature characteristic data, and the output is a measurement error evaluation result.
[0083] like Figure 2 The diagram shows an optimized Elman network structure provided by an embodiment of the present invention, combined with Figure 1 and Figure 2 It can be seen that in a possible embodiment, the feature vector in step 4 includes: normalized data of DC signal electrical characteristics, normalized data of electrical characteristics of each group of ripple signals with the same frequency after interpolation, and normalized data of temperature characteristic data.
[0084] In the specific implementation, the feature vector , Indicates the electrical characteristics of the DC signal The normalized data, Represents the normalized data of the Lth group of ripple signal electrical characteristics, Normalized data representing temperature characteristic data.
[0085] In a possible embodiment, the process of constructing the error assessment model using the Elman neural network in step 4 includes: introducing a hidden layer into the Elman neural network.
[0086] The formula for the error estimation model includes:
[0087] (9)
[0088] Where N represents the current state. is the output of the error estimation model, is the hidden layer output; 、 Output feedback vector for the receiving layer; Indicates the difference between the measurement error predicted by the model and the actual error in the N-1 state; Transfer function for the output layer; is the hidden layer activation function; Represents the input of the Elman neural network in the N-1 state; is the connection weight between the input layer and the hidden layer; is the weight of the receiving layer and the hidden layer; are the weights of the hidden layer and the output layer.
[0089] In one possible embodiment, when training the error estimation model, the loss function of the error estimation model is defined as follows: for:
[0090] (10)
[0091] Where, is the weight parameter, G is the number of test samples, is the evaluation error of the g-th sample, is the actual error of the g-th sample; is the power supply of the total meter in the area, is the power of the DC metering module inside the g-th charging pile, Fixed loss of maintenance equipment within the station. is the line loss within the station; The total amount of electricity can be calculated by the neural network algorithm.
[0092] In one possible embodiment, the weight The process of setting the size includes:
[0093] The loss functions are 、 The error evaluation model is trained with the model error index Q and the category index R as constant conditions:
[0094] (11)
[0095] (12)
[0096] (13)
[0097] The charging pile measurement error evaluation results are divided into various levels and categories. Indicates the number of charging piles with error level i that are identified as class j; represents the actual number of charging pile error level i; represents the number of charging piles predicted to be of the jth category; Respectively The error index Q and category index R of the model when it is the loss function.
[0098] In specific implementation, the charging pile metering error assessment results can be divided into three levels:
[0099] When , the charging pile metering is normal.
[0100] When the charging pile metering alarm is triggered.
[0101] When the charging pile metering is abnormal.
[0102] Step 5: Evaluate the metering error of the charging pile to be evaluated based on the trained error evaluation model.
[0103] The method proposed in this patent is used to construct a charging pile error identification model, and the evaluation results of the optimized ELman network and the basic Elman are compared and analyzed as shown in Tables 1 and 2 below.
[0104] Table 1 Comparison of evaluation errors between the optimized ELman network and the basic Elman
[0105]
[0106] Table 2 Comparison of error evaluation results of different models
[0107] An embodiment of the present invention provides a DC charging pile metering error assessment method based on an improved Elman network. By calculating the ripple signals in the voltage and current signals, the sizes of different components are obtained. A charging pile error assessment model is constructed with temperature and ripple components as feature quantities. To increase the fitting speed and accuracy of the model, the ELman network is optimized, and the error between the previous output result and the actual result is used as a feedback vector to introduce a hidden layer. Based on the law of conservation of energy, a new loss function is constructed with the substation as the unit, and a weight coefficient is set.
[0108] It should be noted that, in the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0109] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Thus, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0110] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowcharts and / or block diagrams, as well as combinations of processes and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded computer, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowcharts and / or block diagrams. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0111] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0112] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operational steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing the instructions executed on the computer or other programmable device for implementing the process. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0113] Although the preferred embodiments of the present invention have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention.
[0114] Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if such changes and modifications fall within the scope of the claims and their equivalents, the present invention is intended to include such changes and modifications.
Claims
1. A DC charging pile measurement error evaluation method based on improved Elman network, characterized in that: The measurement error assessment method comprises: Step 1, collecting metering data of a DC charging pile, and performing symplectic geometric mode decomposition on the metering data to obtain various decomposition signals; the metering data includes: a voltage signal and a current signal output by the DC charging pile, and the decomposition signal includes: a DC voltage signal, a DC current signal, a voltage ripple signal, and a current ripple signal; Step 2, performing interpolation processing on each of the decomposed signals respectively, and calculating the electric quantity characteristic data based on the interpolated decomposed signals; Step 3, extracting features of the temperature data based on the neural network model to obtain temperature feature data; Step 4, constructing and training an error evaluation model using an Elman neural network; the input of the error evaluation model is a feature vector generated by combining the electrical quantity characteristic data and the temperature characteristic data, and the output is a measurement error evaluation result; Step 5, evaluating the metering error of the charging pile to be evaluated based on the trained error evaluation model; The process of constructing the error assessment model with the Elman neural network in step 4 includes: introducing a hidden layer in the Elman neural network; The formula of the error assessment model includes: ; In the formula, N represents the current state. is the output of the error assessment model, is the hidden layer output; , Output feedback vector for the receiving layer; Indicates the difference between the measurement error predicted by the model and the actual error when in the N-1 state; Transfer function for the output layer; is the hidden layer activation function; Represents the input of the Elman neural network in the N-1 state; is the connection weight between the input layer and the hidden layer; is the weight of the receiving layer and the hidden layer; is the weight of the hidden layer and the output layer; Defining the loss function of the error evaluation model when training the error evaluation model for: ; In the formula, is the weight parameter, G is the number of test samples, is the evaluation error of the g-th sample, is the actual error of the g-th sample; is the power supply of the total meter in the area, is the power of the DC metering module inside the g-th charging pile, The fixed loss of the maintenance equipment in the station. is the line loss within the station; Weight The process of setting the size includes: The loss functions are , The error evaluation model is trained with the model error index Q and the category index R as constant conditions: ; ; ; The charging pile measurement error evaluation results are divided into various levels. It indicates the number of charging piles with error level i that are identified as class j; represents the actual number of charging pile error level i; represents the number of charging piles predicted to be of the jth category; Respectively When it is the loss function, it is the error index Q and category index R of the model.
2. The measurement error evaluation method according to claim 1, characterized in that: The step 1 comprises: Step 101, decomposing the measurement data using symplectic geometric mode decomposition: (1) (2) in, is the timing signal of the voltage signal, is the timing signal of the current signal, T is the time length of signal acquisition; M is the number of the final voltage symplectic geometric components, is the mth voltage symplectic geometric component, is the final residual component; B is the number of the final current symplectic geometric components, is the bth voltage symplectic geometric component, is the final residual component; Step 102, selecting voltage ripple and current ripple with the same frequency from the components of equation (1) and equation (2) as a group of signals; Step 103, using discrete Fourier transform to process the selected DC voltage, DC current, voltage ripple, current ripple and other signals to obtain a DC voltage signal , DC current signal , voltage ripple signal and current ripple signal ;in, ; L represents the number of voltage / current groups with the same frequency.
3. The measurement error evaluation method according to claim 1, characterized in that: The process of performing interpolation processing in step 2 includes: Taking the data of the known time node as input and the original voltage / current amplitude as output, a cubic spline interpolation function of each of the decomposed signals is constructed, and interpolation processing is performed on each of the decomposed signals respectively.
4. The measurement error evaluation method according to claim 1, characterized in that: The process of obtaining the electric quantity characteristic data in step 2 includes: Calculate the ripple signal power characteristics within the set T period And DC signal electrical characteristics : ; ; in, ; ; and , and are the interpolated DC voltage signals , DC current signal , voltage ripple signal and current ripple signal A function of time t; is the phase difference between the ripple voltage and the ripple current; t1 and t2 are the start and end times of the T period respectively.
5. The measurement error evaluation method according to claim 1, characterized in that: In step 3, the CNN-LSTM model is used to extract features of the temperature data corresponding to the set T time period.
6. The measurement error evaluation method according to claim 1, characterized in that: The characteristic vector in step 4 includes: normalized data of the DC signal electrical quantity characteristics, normalized data of electrical quantity characteristics of each group of ripple signals with the same frequency after interpolation, and normalized data of the temperature characteristic data.
