A method for reducing output power measurement error of DC charging pile

Through multivariate hybrid decomposition and neural network technology, the current and voltage signals of DC charging piles are decomposed, and a dynamic adaptive error compensation model is established to solve the measurement accuracy problem of DC charging piles in complex environments and achieve high-precision and efficient electric energy Measurement.

CN118604440BActive Publication Date: 2024-10-11QINGDAO HIGH TECH COMM
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411073641.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-07
Publication Date
2024-10-11
Estimated Expiration
2044-08-07

AI Technical Summary

Technical Problem

It is difficult for existing DC charging piles to achieve high-precision output power measurement in complex charging environments, due to limitations in sampling frequency, digital filtering algorithms, calculation models, and insufficient anti-interference capabilities.

Method used

Using multivariate hybrid decomposition technology (such as empirical mode decomposition, wavelet packet transform and variational mode decomposition) combined with neural networks, the current and voltage signals are decomposed into stable and changing components, and a dynamic adaptive error compensation model is established. Through the charging current and The stability coefficient matrix of the voltage is used for error compensation.

Benefits of technology

It improves the measurement accuracy and anti-interference ability, can more accurately capture signal characteristics, reflect system changes in real time, enhances the dynamic adaptability and robustness of measurement, and meets the high response requirements of DC fast charging.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118604440B_ABST
    Figure CN118604440B_ABST
Patent Text Reader

Abstract

The present invention provides a method for reducing the output electric energy metering error of a DC charging pile, which belongs to the technical field of DC charging piles, and includes: real-time collection of data such as current, voltage, electric energy metering, load rate, etc. of the charging pile. Perform multivariate mixed decomposition on the current and voltage data to obtain a stable component and a variable component. Establish a functional relationship between the voltage stable component, the input voltage variable component, the input harmonic, the load rate, etc. and the current variable component and the voltage variable component, and establish a corresponding coefficient matrix. Based on the coefficient matrix, calculate the error compensation amount of the current and voltage. Apply the error compensation amount to the original current and voltage data to obtain the corrected data, and recalculate the electric energy metering data after error correction based on the data. The method can improve the accuracy of electric energy metering through in-depth analysis and error compensation of the charging pile data, and solves the technical problem that it is difficult to improve the metering accuracy of the output electric energy of the DC charging pile in a complex charging environment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of direct current charging piles, and in particular, relates to a method for reducing output electric energy metering errors of a direct current charging pile. Background Art

[0002] With the rapid development of the new energy vehicle industry, DC charging piles, as an important part of electric vehicle charging infrastructure, have a direct impact on the user experience and promotion of electric vehicles due to their performance and reliability. The core function of DC charging piles is to provide stable and efficient DC power to the battery system of electric vehicles. The accurate measurement of its output power is crucial to ensure the fairness and economy of charging services.

[0003] The existing DC charging pile energy metering technology is mainly based on the sampling-calculation method, that is, the voltage and current data during the charging process are collected through high-precision voltage and current sensors, and then the electric energy is obtained through digital signal processing and integration operations. However, in practical applications, the output voltage and current of DC charging piles often fluctuate and are distorted, which is mainly due to the following aspects:

[0004] First, the voltage fluctuation and harmonic interference on the grid side will be transmitted to the DC side through the power electronic converter of the charging pile, affecting the stability of the output voltage. Secondly, the electric vehicle battery management system (BMS) will dynamically adjust the charging current according to the battery status during the charging process, resulting in load changes. Furthermore, the switching characteristics and parasitic parameters of the power devices inside the charging pile will introduce high-frequency ripple. In addition, factors such as ambient temperature changes and component aging will also affect the output characteristics of the charging pile.

[0005] The combined effect of these factors makes the output voltage and current of the DC charging pile present complex dynamic characteristics, including steady-state components and fluctuating components of various frequencies. Traditional energy metering methods have certain limitations when processing such complex signals:

[0006] 1. The limitation of sampling frequency makes it impossible to accurately capture high-frequency components, resulting in distortion of electric energy measurement.

[0007] 2. Simple digital filtering algorithms cannot effectively separate steady-state components from fluctuating components, thus affecting measurement accuracy.

[0008] 3. Fixed calculation models are difficult to adapt to dynamic changes during the charging process and cannot achieve adaptive compensation.

[0009] 4. There is a lack of effective response mechanism to system parameter changes and external interference, and the anti-interference ability is insufficient.

[0010] Therefore, how to improve the metering accuracy of the output power of DC charging piles in a complex charging environment has become a technical problem that needs to be solved urgently. Summary of the invention

[0011] In view of this, the present invention provides a method for reducing the output power metering error of a DC charging pile, which can solve the technical problem in the prior art that it is difficult to improve the metering accuracy of the output power of a DC charging pile in a complex charging environment.

[0012] The present invention is achieved in that:

[0013] The present invention provides a method for reducing the output electric energy measurement error of a DC charging pile, which comprises the following steps:

[0014] S10, real-time collection of current data, voltage data, power metering data, charging pile load rate, charging pile input voltage, and charging pile input harmonics during the DC charging pile output power process;

[0015] S20, performing multivariate mixed decomposition calculation on the current data to obtain a current stable component and a current variable component;

[0016] S30, performing multivariate mixed decomposition calculation on the voltage data to obtain a voltage stability component and a voltage variation component;

[0017] S40, performing multivariate mixed decomposition calculation on the charging pile input voltage to obtain an input voltage stable component and an input voltage variable component;

[0018] S50, establishing a functional relationship among the voltage stability component, the input voltage variation component, the charging pile input harmonic, the charging pile load rate, the current variation component, and the voltage variation component, recorded as a variation relationship, and establishing a charging current variation coefficient matrix and a charging voltage variation coefficient matrix according to the variation relationship;

[0019] S60, calculating a charging current stability coefficient matrix and a charging voltage stability coefficient matrix based on the charging current variation coefficient matrix and the charging voltage variation coefficient matrix;

[0020] S70, calculating a current error compensation amount and a voltage error compensation amount for the current data and the voltage data based on a charging current stability coefficient matrix and a charging voltage stability coefficient matrix;

[0021] S80, applying the calculated current error compensation amount and voltage error compensation amount to the original current data and voltage data to obtain corrected current data and voltage data:

[0022] Among them, the corrected current data = original current data + current error compensation;

[0023] Among them, the corrected voltage data = original voltage data + voltage error compensation;

[0024] S90. Recalculate the electric energy by using the corrected current data and the corrected voltage data using an integration method to obtain electric energy measurement data after error correction.

[0025] The step of performing multivariate mixed decomposition calculation on the current data to obtain the current stable component and the current variable component is specifically to perform multivariate mixed decomposition on the collected current data using the method of empirical mode decomposition combined with Hilbert-Huang transform:

[0026] ;

[0027] in, ; ;

[0028] In the formula, is the original current signal; It is Intrinsic Mode Functions (IMFs); is the residual term; is the instantaneous amplitude; is the instantaneous phase; is the instantaneous frequency; is the number of decomposition levels;

[0029] The extraction of the current stable component and the current variable component includes: the current stable component:

[0030] ;

[0031] Current variation component:

[0032] ;

[0033] in Is a threshold value, the default ,express The rounding down of is used to distinguish between stable and changing components.

[0034] The step of performing multivariate mixed decomposition calculation on the voltage data to obtain the voltage stability component and the voltage variation component is specifically to perform multivariate mixed decomposition on the collected voltage data using wavelet packet transform combined with adaptive threshold denoising:

[0035] ;

[0036] in, ; ;

[0037] In the formula, is the original voltage signal; are the wavelet coefficients; is the wavelet basis function; is the scale parameter; is the translation parameter; is the maximum number of decomposition levels; the extraction of voltage stability components and variable components includes voltage stability components:

[0038] ;

[0039] Voltage variation component:

[0040] ;

[0041] in Is a threshold value, the default ,express The rounding down of is used to distinguish between stable and changing components.

[0042] Among them, the step of performing multivariate mixed decomposition calculation on the input voltage of the charging pile to obtain the input voltage stable component and the input voltage variable component is specifically to perform multivariate mixed decomposition on the input voltage using the variational mode decomposition method:

[0043] ;

[0044] in, ;

[0045] In the formula, is the original input voltage signal; It is decomposition mode; It is The center frequency of each mode; is the number of modes; is the Dirac delta function; Represents a convolution operation; the extraction of the input voltage stable component and the variable component includes the input voltage stable component:

[0046] ;

[0047] Input voltage variation component:

[0048] ;

[0049] in Is a threshold value, the default ,express The rounding down of is used to distinguish between stable and changing components.

[0050] The change relationship is specifically expressed as follows:

[0051] ;

[0052] In the formula, is the voltage stabilizing component; is the input voltage variation component; It is the charging pile input harmonic; is the charging pile load rate; is the current variation component; is the voltage variation component;

[0053] The variation relationship is decomposed into two sub-functions, including a current variation component function and a voltage variation component function, wherein the current variation component function is expressed as follows:

[0054] ;

[0055] The voltage variation component function is expressed as follows:

[0056] .

[0057] The current variation component function is specifically expressed as follows:

[0058] ;

[0059] The current variation component function consists of three main parts:

[0060] a) ;

[0061] This is based in part on Ohm's law, Represents the voltage difference, is the impedance considering the influence of harmonics, The term introduces the effect of load factor;

[0062] b) ;

[0063] This is a neural network layer used to capture complex nonlinear relationships. φ is the activation function. , and are network parameters;

[0064] c) ;

[0065] This part represents the rate of change of the electric field energy, which introduces the dynamic characteristics of the system;

[0066] in, is the equivalent impedance considering the influence of harmonics, expressed as:

[0067] ;

[0068] In the formula, is the fundamental frequency impedance, It is Subharmonic components, is the weight coefficient; and is the activation function, including any two of ReLU, tanh or sigmoid; , , , , , are the weight and bias parameters of the neural network; , , , , , , , , , are model parameters, which are optimized through training data; is the number of nodes in the hidden layer of the neural network.

[0069] The voltage variation component function is specifically expressed as follows:

[0070] ;

[0071] This function consists of four main parts:

[0072] a) ;

[0073] This part describes how the voltage stability component is affected by the load factor. The exponential term indicates that when the load increases, the impact of the stability component decreases;

[0074] b) ;

[0075] This section describes the impact of the input voltage variation components and takes into account the modulation effect of harmonics;

[0076] c) ;

[0077] This is also a neural network layer, similar to the corresponding part in the current variation component function;

[0078] d) ;

[0079] This part represents the rate of change of the magnetic field energy, introducing another dynamic characteristic.

[0080] The charging current variation coefficient matrix is ​​specifically expressed as follows:

[0081] ;

[0082] The charging voltage variation coefficient matrix is ​​specifically expressed as follows:

[0083] .

[0084] The charging current stability coefficient matrix is ​​specifically expressed as follows:

[0085] ; In the formula, is the 5x5 identity matrix;

[0086] The charging voltage stability coefficient matrix is ​​specifically expressed as follows:

[0087] .

[0088] The step of calculating the current error compensation amount and the voltage error compensation amount for the current data and the voltage data based on the charging current stability coefficient matrix and the charging voltage stability coefficient matrix specifically includes:

[0089] Step 1: Define input data, including: is the measured current data; is the measured voltage data; is the rated current value; is a constant voltage value; Calculate the matrix for the charging current stability factor; Calculate the matrix for charging voltage stability coefficient;

[0090] Step 2: Calculate the initial current error and voltage error:

[0091] ;

[0092] ;

[0093] Step 3: Construct the current initial error, voltage initial error and system parameters into a vector:

[0094] ;

[0095] in, and They are the deviations of harmonics and charging pile load rate, obtained through real-time measurement;

[0096] Step 4: Calculate the compensation amount using the charging current stability coefficient matrix and the charging voltage stability coefficient matrix

[0097] ;

[0098] ;

[0099] In the formula, and They are and The matrix Line Column elements; is the error vector elements; is the angular frequency of the charging pile input current; is time; Introducing time dependency, and Phase adjustment was introduced;

[0100] Step 5: In order to improve the accuracy of compensation, a weighting factor is introduced (0< <1), and obtain the current error compensation amount:

[0101] ;

[0102] Voltage error compensation amount:

[0103] .

[0104] Finally, the compensated current and voltage values ​​can be obtained:

[0105] ;

[0106] .

[0107] Compared with the prior art, the method for reducing the output electric energy measurement error of a DC charging pile provided by the present invention has the following beneficial effects:

[0108] 1. High-precision decomposition: The use of multivariate hybrid decomposition technology, such as empirical mode decomposition (EMD), wavelet packet transform (WPT) and variational mode decomposition (VMD), can effectively decompose current and voltage signals into stable components and variable components. This decomposition method overcomes the limitations of traditional single decomposition methods, can more accurately capture the multi-scale characteristics of the signal, and provides a reliable basis for subsequent error compensation.

[0109] 2. Dynamic Adaptation: By establishing the functional relationship between voltage stability component, input voltage variation component, charging pile input harmonic, charging pile load rate and current variation component, voltage variation component, the charging current variation coefficient matrix and charging voltage variation coefficient matrix are constructed. This dynamic model can reflect the changes in system parameters in real time, making the error compensation adaptive and effectively responding to various dynamic changes in the charging process.

[0110] 3. Comprehensive consideration of influencing factors: This method comprehensively considers multiple influencing factors such as charging pile input voltage, harmonics, load rate, etc., and establishes a more comprehensive and accurate error model. Compared with the existing technology, this method can better describe the complex electrical characteristics during the charging process and improve the accuracy and robustness of error compensation.

[0111] 4. Nonlinear characteristic modeling: By introducing a neural network layer, this method can effectively capture the nonlinear relationship in the system. This approach overcomes the limitations of traditional linear models and can more accurately describe the complex dynamic behavior of the charging pile system, especially under large-scale load changes and abnormal operating conditions.

[0112] 5. Improved computational efficiency: By constructing a stability coefficient matrix, this method converts complex error compensation calculations into matrix operations, greatly improving computational efficiency. This efficient computational method enables this method to be applied to real-time control systems and meet the high response requirements of DC fast charging.

[0113] 6. Enhanced anti-interference ability: By introducing time dependence and phase adjustment, this method improves the resistance to external interference. In particular, in the presence of power grid fluctuations and load mutations, it can respond quickly and make effective compensation, ensuring the stability of energy metering.

[0114] Through the above technical effects, the present invention significantly improves the metering accuracy of the output electric energy of the DC charging pile, and solves the technical problem that it is difficult to improve the metering accuracy of the output electric energy of the DC charging pile in a complex charging environment in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS

[0115] Figure 1 A flow chart of the method provided by the present invention. DETAILED DESCRIPTION

[0116] In order to make the purpose, technical solution and advantages of the embodiments of the present invention more clear, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the embodiments of the present invention.

[0117] like Figure 1 As shown in FIG. 1 , it is a flow chart of a method for reducing the output electric energy measurement error of a DC charging pile provided by the present invention. The method comprises the following steps:

[0118] S10, real-time collection of current data, voltage data, power metering data, charging pile load rate, charging pile input voltage, and charging pile input harmonics during the DC charging pile output power process;

[0119] S20, performing multivariate mixed decomposition calculation on the current data to obtain a current stable component and a current variable component;

[0120] S30, performing multivariate mixed decomposition calculation on the voltage data to obtain a voltage stability component and a voltage variation component;

[0121] S40, performing multivariate mixed decomposition calculation on the charging pile input voltage to obtain an input voltage stable component and an input voltage variable component;

[0122] S50, establishing a functional relationship between the voltage stability component, the input voltage variation component, the charging pile input harmonics, the charging pile load rate and the current variation component, the voltage variation component, recorded as a variation relationship, and establishing a charging current variation coefficient matrix and a charging voltage variation coefficient matrix according to the variation relationship;

[0123] S60, calculating a charging current stability coefficient matrix and a charging voltage stability coefficient matrix based on the charging current variation coefficient matrix and the charging voltage variation coefficient matrix;

[0124] S70, calculating a current error compensation amount and a voltage error compensation amount for the current data and the voltage data based on the charging current stability coefficient matrix and the charging voltage stability coefficient matrix;

[0125] S80, applying the calculated current error compensation amount and voltage error compensation amount to the original current data and voltage data to obtain corrected current data and voltage data:

[0126] Among them, the corrected current data = original current data + current error compensation;

[0127] Among them, the corrected voltage data = original voltage data + voltage error compensation;

[0128] S90. Recalculate the electric energy by using the corrected current data and the corrected voltage data using an integration method to obtain electric energy measurement data after error correction.

[0129] The specific implementation methods of the above steps are described in detail below:

[0130] 1. Multivariate mixed decomposition calculation of current data

[0131] For current data, the empirical mode decomposition (EMD) combined with the Hilbert-Huang transform (HHT) method can be used:

[0132] ;

[0133] in, ; ;

[0134] In the formula, is the original current signal; It is Intrinsic Mode Functions (IMFs); is the residual term; is the instantaneous amplitude; is the instantaneous phase; is the instantaneous frequency; is the number of decomposition levels;

[0135] The extraction of the current stable component and the current variable component includes: the current stable component:

[0136] ;

[0137] Current variation component:

[0138]

[0139] in Is a threshold value, the default ,express The rounding down of is used to distinguish between stable and changing components.

[0140] 2. Multivariate mixed decomposition calculation of voltage data

[0141] For voltage data, wavelet packet transform (WPT) combined with adaptive threshold denoising can be used:

[0142] ;

[0143] in, ; ;

[0144] In the formula, is the original voltage signal; are the wavelet coefficients; is the wavelet basis function; is the scale parameter; is the translation parameter; is the maximum number of decomposition levels; the extraction of voltage stability components and variable components includes voltage stability components:

[0145] ;

[0146] Voltage variation component:

[0147] ;

[0148] in Is a threshold value, the default ,express The rounding down of is used to distinguish between stable and changing components.

[0149] 3. Multivariate mixed decomposition calculation of input voltage

[0150] For the input voltage, the variational mode decomposition (VMD) method can be used:

[0151] ;

[0152] in, ;

[0153] In the formula, is the original input voltage signal; It is decomposition mode; It is The center frequency of each mode; is the number of modes; is the Dirac delta function; Represents a convolution operation; the extraction of the input voltage stable component and the variable component includes the input voltage stable component:

[0154] ;

[0155] Input voltage variation component:

[0156] ;

[0157] in is a threshold used to distinguish between stable and changing components.

[0158] These multivariate hybrid decomposition calculation methods are optimized for the characteristics of current data, voltage data and input voltage respectively. They can effectively decompose the original signal into stable components and variable components, providing a basis for subsequent error compensation and calculation.

[0159] In practical applications, the parameters of these methods (such as the number of decomposition levels, thresholds, etc.) need to be adjusted according to the specific characteristics of the charging pile system and data features to obtain the best decomposition effect.

[0160] The following functional relationship is defined as a change relationship:

[0161] ;

[0162] In the formula, is the voltage stabilizing component; is the input voltage variation component; It is the charging pile input harmonic; is the charging pile load rate; is the current variation component; is the voltage variation component;

[0163] Decomposed into two sub-functions:

[0164]

[0165]

[0166] The detailed description is:

[0167] 1. Current variation component function:

[0168]

[0169] This function consists of three main parts:

[0170] a)

[0171] This is based in part on Ohm's Law. ) represents the voltage difference, and Z(H) is the impedance considering the influence of harmonics. ) item introduces the influence of load rate.

[0172] b)

[0173] This is a neural network layer used to capture complex nonlinear relationships. φ is the activation function (such as ReLU or tanh), , and is a network parameter.

[0174] c)

[0175] This part represents the rate of change of the electric field energy and introduces the dynamic characteristics of the system.

[0176] 2. Voltage variation component function:

[0177]

[0178] This function consists of four main parts:

[0179] a)

[0180] This section describes how the voltage stabilizing component is affected by the load factor. The exponential term indicates that as the load increases, the impact of the stabilizing component decreases.

[0181] b)

[0182] This section describes the impact of input voltage variation components and takes into account the modulation effect of harmonics.

[0183] c)

[0184] This is also a neural network layer, similar to its counterpart in the current variation component function.

[0185] d)

[0186] This part represents the rate of change of the magnetic field energy, introducing another dynamic characteristic.

[0187] in:

[0188] is the equivalent impedance considering the influence of harmonics, which can be expressed as:

[0189]

[0190] here is the fundamental frequency impedance, It is Subharmonic components, is the weight coefficient.

[0191] and is the activation function, you can choose ReLU, tanh or sigmoid, etc.

[0192] , , , , , are the weight and bias parameters of the neural network.

[0193] , , , , , , , , , are model parameters that need to be optimized through training data.

[0194] is the number of nodes in the hidden layer of the neural network.

[0195] and They represent the rates of change of electric field energy and magnetic field energy respectively, introducing the dynamic characteristics of the system.

[0196] This model combines the following aspects:

[0197] 1. Basic theories of power systems: such as Ohm’s law and power equation.

[0198] 2. Harmonic influence: through The effect of harmonics on impedance is taken into account.

[0199] 3. Load characteristics: The nonlinear effect of load rate is taken into account through exponential functions and polynomials.

[0200] 4. Neural network: used to capture complex nonlinear relationships.

[0201] 5. Energy changes: The dynamic changes of system energy are taken into account.

[0202] To determine the parameters of this model, you need to use a large amount of historical data and advanced optimization algorithms, such as stochastic gradient descent (SGD), Adam or L-BFGS, etc. At the same time, cross-validation is also needed to prevent overfitting, and regularization techniques may need to be applied.

[0203] The advantage of this model is that it combines physical principles and data-driven methods, taking into account the basic characteristics of the power system and capturing complex nonlinear relationships. However, its complexity also means that it may require a lot of computing resources and a sophisticated parameter adjustment process in practical applications.

[0204] The following is the derivation process of the charging current variation coefficient calculation matrix, the charging voltage variation coefficient calculation matrix, the charging current stability coefficient calculation matrix and the charging voltage stability coefficient calculation matrix.

[0205] Step 1: Define the basic functional relationship

[0206] Starting from the functional relationship defined previously:

[0207]

[0208]

[0209] in is the current variation component, is the voltage variation component.

[0210] Step 2: Calculate partial derivatives

[0211] In order to construct the coefficient of variation calculation matrix, it is necessary to calculate the partial derivatives of these functions with respect to each variable.

[0212] For the current variation component:

[0213]

[0214]

[0215]

[0216]

[0217] For the voltage variation component:

[0218]

[0219]

[0220]

[0221]

[0222] Step 3: Construct the calculation matrix of charging current variation coefficient

[0223] Define the calculation matrix of charging current variation coefficient as follows:

[0224]

[0225] Step 4: Construct the calculation matrix of charging voltage variation coefficient

[0226] Similarly, define the calculation matrix of charging voltage variation coefficient as follows:

[0227]

[0228] Step 5: Define the stability coefficient calculation matrix

[0229] Charging current stability factor calculation matrix And the charging voltage stability coefficient calculation matrix It can be defined by calculating the coefficient of variation matrix.

[0230] Define the identity matrix is the 5x5 identity matrix.

[0231]

[0232]

[0233] Step 6: Calculation of matrix elements

[0234] for and For each element in , the corresponding partial derivative needs to be calculated. For example, for The first element of:

[0235]

[0236] Similarly, all other partial derivatives need to be calculated to fill and matrix.

[0237] Step 7: Final Representation

[0238] Finally, four matrices are represented:

[0239] 1. Charging current variation coefficient calculation matrix

[0240] 2. Charging voltage variation coefficient calculation matrix

[0241] 3. Charging current stability coefficient calculation matrix

[0242] 4. Charging voltage stability coefficient calculation matrix .

[0243] The following are steps for calculating the current error compensation amount and the voltage error compensation amount based on the charging current stability coefficient calculation matrix and the charging voltage stability coefficient calculation matrix.

[0244] Step 1: Define input data

[0245] First, you need to define the input data:

[0246] : Measured current data

[0247] : Measured voltage data

[0248] : Rated current value

[0249] : Rated voltage

[0250] : Charging current stability coefficient calculation matrix

[0251] : Charging voltage stability coefficient calculation matrix

[0252] Step 2: Calculate the initial error

[0253] Calculate the initial errors in current and voltage:

[0254]

[0255]

[0256] Step 3: Construct the error vector

[0257] Construct the initial error and system parameters into vectors:

[0258]

[0259] in, and They are the deviation of harmonics and load factor, which can be obtained through real-time measurement.

[0260] Step 4: Apply the stability factor calculation matrix

[0261] Use the stability coefficient calculation matrix to calculate the compensation amount:

[0262]

[0263]

[0264] in:

[0265] and They are and The matrix Line Column Elements

[0266] is the error vector Elements

[0267] is the angular frequency of the system

[0268] It's time

[0269] Introducing time dependency

[0270] and Phase adjustment introduced

[0271] Step 5: Calculate the final compensation amount

[0272] In order to improve the accuracy of compensation, a weighting factor can be introduced (0< <1):

[0273]

[0274]

[0275] Step 6: Update the compensated current and voltage values

[0276] Finally, the compensated current and voltage values ​​can be obtained:

[0277]

[0278]

[0279] These steps provide a method for calculating the current and voltage error compensation based on the stability coefficient calculation matrix. This method takes into account the dynamic characteristics of the system and the mutual influence between the parameters. In actual applications, it may be necessary to adjust these formulas according to the specific characteristics of the charging pile system and the measured data, especially the weighting factors and phase adjustment functions.

[0280] In addition, in order to further improve the accuracy, an iterative method can be considered, that is, repeating steps 3 to 6 for multiple times until the error is less than the predetermined threshold 0.05 or the maximum number of iterations is reached. This method can gradually approach the true value and improve the accuracy of compensation.

[0281] The sources, acquisition methods or calculation steps of relevant variables and parameters are explained in detail below.

[0282] 1. Basic variables:

[0283] : Voltage stability component, in volts (V). Obtained by performing multivariate mixed decomposition on the original voltage signal.

[0284] : Input voltage variation component, in volts (V). Obtained by performing multivariate mixed decomposition on the original input voltage signal.

[0285] : Charging pile input harmonics, dimensionless. Obtained by Fourier analysis of the input voltage, expressed as:

[0286]

[0287] in, is the amplitude of the nth harmonic, is the fundamental amplitude and N is the highest harmonic order considered.

[0288] : Charging pile load rate, dimensionless. The calculation formula is:

[0289]

[0290] in, is the actual output power, is the rated output power.

[0291] : Current variation component, in ampere (A). Obtained by performing multivariate mixed decomposition on the original current signal.

[0292] : Voltage variation component, in volts (V). Obtained by performing multivariate mixed decomposition on the original voltage signal.

[0293] 3. Parameter description:

[0294] : These are the model parameters that need to be optimized using historical data and machine learning algorithms such as gradient descent.

[0295] : Equivalent impedance considering harmonic effects, in ohms (Ω). The calculation formula is:

[0296]

[0297] in, is the fundamental frequency impedance, is the nth harmonic component, are weight coefficients. These parameters need to be obtained through experimental measurement and data analysis.

[0298] : The number of nodes in the hidden layer of the neural network is a positive integer determined by model tuning.

[0299] : The weight and bias parameters of the neural network are obtained through back-propagation algorithm training.

[0300] : Activation function, commonly used are ReLU, tanh or sigmoid, etc. For example, the ReLU function is defined as:

[0301] .

[0302] The following four matrices are explained in detail: , , , ) and the variables used in the calculation.

[0303] 1. Charging current variation coefficient calculation matrix :

[0304]

[0305] The meaning and calculation variables of each element are as follows:

[0306] : The first-order partial derivative of the current fluctuation component with respect to the voltage stability component

[0307] variable: , , , , , , , , , , ,

[0308] : The first-order partial derivative of the current variation component with respect to the input voltage variation component

[0309] variable: , , , , , , , , ,

[0310] : The first-order partial derivative of the current variation component with respect to the harmonic

[0311] variable: , , , , , , , , ,

[0312] : The first-order partial derivative of the current variation component with respect to the load factor

[0313] variable: , , , , , , , , , , ,

[0314] arrive is a second-order partial derivative, for example:

[0315] : The second-order partial derivative of the current fluctuation component with respect to the voltage stability component

[0316] Variable: with Same as, but with the need to consider the second-order derivative

[0317] 2. Charging voltage variation coefficient calculation matrix :

[0318]

[0319] The meaning and calculation variables of each element are similar to , but based on the voltage variation component function .For example:

[0320] : The first-order partial derivative of the voltage fluctuation component with respect to the voltage stability component

[0321] variable: , , , , , , , , , , , , ,

[0322] 3. Charging current stability coefficient calculation matrix :

[0323]

[0324] in, is a 5x5 identity matrix. Each element is calculated as follows:

[0325] , , ,

[0326] , , ,

[0327] ...and so on

[0328] The variable of each element is related to the corresponding The elements in are the same.

[0329] 4. Charging voltage stability coefficient calculation matrix :

[0330]

[0331] Calculation method and Same, but based on :

[0332] , , ,

[0333] , , ,

[0334] ...and so on

[0335] The variable of each element is related to the corresponding The elements in are the same.

[0336] Each element in these matrices represents the interaction and sensitivity between system parameters. and It reflects the changing characteristics of the system, and and It reflects the stability characteristics of the system. By analyzing these matrices, we can gain a deeper understanding of the dynamic behavior of the charging pile system under different working conditions.

[0337] Specifically, the principle of the present invention is:

[0338] 1. Principle of multivariate mixed decomposition:

[0339] This method uses a combination of multiple signal decomposition techniques, including empirical mode decomposition (EMD), wavelet packet transform (WPT) and variational mode decomposition (VMD). The advantage of this multivariate hybrid decomposition method is that it can make full use of the characteristics of various decomposition techniques to achieve multi-scale and multi-angle analysis of signals.

[0340] EMD is suitable for processing nonlinear and non-stationary signals, and can adaptively decompose signals into a series of intrinsic mode functions (IMFs). WPT provides a fine-grained representation of the signal in the time-frequency domain, which is conducive to separating different frequency components. VMD realizes adaptive bandwidth decomposition of the signal through the variational principle. The combination of these three methods makes the decomposition of current and voltage signals more comprehensive and accurate, and can effectively distinguish between stable components and variable components of various frequencies.

[0341] 2. Dynamic adaptive modeling principle:

[0342] This method establishes the functional relationship between voltage stability component, input voltage fluctuation component, charging pile input harmonic, charging pile load rate and current fluctuation component, voltage fluctuation component. The establishment of this relationship model is based on the combination of basic theory of power system and data-driven method.

[0343] Specifically, the model includes a linear part based on Ohm's law, taking into account the impact of harmonics on impedance; a neural network layer is introduced to capture complex nonlinear relationships; in addition, the dynamic changes of system energy are also considered. This comprehensive modeling method enables the model to accurately describe the dynamic characteristics of the charging pile system under various working conditions, providing a theoretical basis for error compensation.

[0344] 3. Matrix calculation principle:

[0345] This method converts the complex error compensation calculation into matrix operation by constructing the charging current variation coefficient matrix, the charging voltage variation coefficient matrix and its corresponding stability coefficient matrix. The advantages of this approach are:

[0346] First, matrix operations are highly parallel and can make full use of the parallel computing capabilities of modern processors to improve computing efficiency. Second, the matrix form allows the mutual influence between the various parameters of the system to be clearly expressed and quantified, which facilitates system analysis and optimization. Furthermore, the linear algebraic characteristics of matrix operations give the error compensation process good mathematical properties, such as reversibility and stability.

[0347] 4. Error compensation principle:

[0348] The error compensation of this method is based on the stability coefficient matrix, and the error compensation of current and voltage is obtained through a series of mathematical operations. This process can be understood as a feedback control mechanism:

[0349] First, the initial error is calculated to construct an error vector containing the system state. Then, the error vector is multiplied by the stability coefficient matrix to obtain the preliminary compensation amount. By introducing time dependence (e^(iωt)) and phase adjustment (sin(πi / 4) and cos(πi / 4)), the compensation process can adapt to the dynamic changes of the system. Finally, the weighting factor α is used for fine-tuning to ensure the smoothness and stability of the compensation.

[0350] The advantage of this compensation mechanism is that it not only takes into account the current error state, but also implicitly considers the mutual influence between system parameters through matrix operations, so it can perform error compensation more comprehensively and accurately.

[0351] 5. Iterative optimization principle:

[0352] This method can further improve the compensation accuracy through iteration. Each iteration recalculates the error based on the result of the previous compensation and performs a new round of compensation. This iterative process can be understood as a gradient descent optimization, which gradually approaches the true value through multiple fine-tuning.

[0353] The introduction of iterative optimization makes this method self-correcting and can effectively deal with situations where the initial model parameters are not accurate enough or the system characteristics change slowly.

[0354] In summary, the technical solution of the present invention forms a method for reducing the output power metering error of DC charging piles with rigorous logic and perfect theory through a series of innovative technical principles such as multivariate hybrid decomposition, dynamic adaptive modeling, matrix calculation, error compensation and iterative optimization. This method can effectively solve the problems existing in the prior art, improve the metering accuracy and reliability, and provide strong support for the application of DC charging piles and the promotion of electric vehicles.

[0355] In order to better understand and implement the present invention, a specific embodiment of the present invention is provided below: In a large new energy vehicle charging station, 50 DC charging piles with a rated power of 120kW are installed. These charging piles adopt a modular design, and each consists of 4 30kW power modules in parallel. The charging station is connected to a 10kV distribution network, and a 380V AC power supply is provided to the charging piles after the voltage is stepped down by a transformer. A centralized monitoring system is set up in the station, which is responsible for data collection, analysis and charging process management.

[0356] Problem description:

[0357] After the charging station was put into operation for one year, the management found that there was a large deviation between the energy metering data of the charging piles and the actual amount paid by users. Preliminary analysis showed that the energy metering error of the charging piles fluctuated greatly under different working conditions, with an average error of about ±2.5%, and even up to ±5% in some cases. This error not only affected the fairness of billing, but also brought trouble to the operation of the charging station.

[0358] Implementation process:

[0359] To solve this problem, the charging station decided to pilot the method for reducing the electric energy metering error of the present invention on 10 of its charging piles. The implementation process is divided into the following stages:

[0360] 1. System upgrade and data collection

[0361] First, the pilot charging piles were upgraded in hardware and software. In terms of hardware, high-precision voltage and current sensors were installed, and the sampling frequency was increased to 50kHz. In terms of software, the control program of the charging piles was updated and the algorithm of the present invention was integrated.

[0362] Subsequently, a 30-day data collection was carried out. The collected data included:

[0363] - Charging pile output current (sampling frequency: 50kHz)

[0364] - Charging pile output voltage (sampling frequency: 50kHz)

[0365] - Charging pile input voltage (sampling frequency: 10kHz)

[0366] - Charging pile input current harmonics (recorded every 5 minutes)

[0367] - Charging pile load rate (recorded once per second)

[0368] 2. Data preprocessing and parameter initialization

[0369] The collected raw data was preprocessed, including outlier removal, data alignment, etc. Then, based on historical data and system characteristics, the various parameters in the algorithm were initialized:

[0370] - EMD decomposition level: 8

[0371] - Maximum number of decomposition levels of wavelet packet transform: 6

[0372] - Number of VMD modalities: 5

[0373] - Number of hidden layer nodes in the neural network: 20

[0374] - Initial weighting factor α: 0.8

[0375] 3. Multivariate Mixture Decomposition

[0376] Take the data of one of the charging piles from 12:00 to 12:10 on a certain day as an example to show the process of multivariate mixed decomposition:

[0377] a) Current data decomposition (using EMD method):

[0378] The original current signal is decomposed into eight intrinsic mode functions (IMFs) and a residual term, among which IMF1-IMF3 are regarded as high-frequency variation components, and IMF4-IMF8 and the residual term are regarded as stable components.

[0379] b) Voltage data decomposition (using WPT method):

[0380] The voltage signal is decomposed by 6 layers of wavelet packets. The low-frequency coefficients (5-6 layers) are reconstructed to obtain the stable components, and the high-frequency coefficients (1-4 layers) are reconstructed to obtain the variable components.

[0381] c) Input voltage decomposition (using VMD method):

[0382] The input voltage signal is decomposed into five modes. The first three modes are considered as variable components, and the last two modes and the residual are considered as stable components.

[0383] 4. Dynamic Relationship Modeling

[0384] Based on the decomposed data, the functional relationship between voltage stability component, input voltage fluctuation component, charging pile input harmonic, charging pile load rate and current fluctuation component and voltage fluctuation component is established. A neural network with 20 hidden layer nodes is used here to capture nonlinear relationships.

[0385] 5. Matrix construction and error compensation

[0386] According to the established dynamic relationship, a 5x4 charging current variation coefficient matrix and a charging voltage variation coefficient matrix are constructed, and then the corresponding stability coefficient calculation matrix is ​​calculated.

[0387] Taking a sampling point at 12:05:00 as an example, the calculation process is as follows:

[0388] Initial error:

[0389] - Current error: 0.82A

[0390] - Voltage error: -1.35V

[0391] Construct the error vector: E = [0.82, -1.35, 0.015, 0.78]

[0392] (0.015 is the normalized harmonic value and 0.78 is the current load factor)

[0393] Apply the stability coefficient calculation matrix to obtain the preliminary compensation amount:

[0394] - Current compensation: 0.76A

[0395] - Voltage compensation: -1.28V

[0396] The final compensation amount after weighting factor adjustment (α=0.8):

[0397] - Final current compensation: 0.608A

[0398] - Final voltage compensation: -1.024V

[0399] 6. Iterative Optimization

[0400] The compensation calculation is repeated for each sampling point until the error is less than the preset threshold (0.1%) or the maximum number of iterations (5 times) is reached.

[0401] 7. Result Verification

[0402] After 30 days of trial operation, the performance of 10 pilot charging piles and 10 non-optimized charging piles (as a control group) were compared and analyzed. Table 1 shows some statistical results:

[0403] Table 1 Result data statistics

[0404] index Before optimization After optimization Average energy measurement error 2.5% 0.8% Maximum energy measurement error 5.0% 1.5% Current measurement standard deviation 0.95A 0.32A Voltage measurement standard deviation 1.8V 0.6V The proportion of measurement error exceeding 2% 35% 5%

[0405] 8. Performance Analysis

[0406] a) Improved measurement accuracy:

[0407] After optimization, the average energy metering error of charging piles was reduced from 2.5% to 0.8%, an improvement of 68%. The maximum error was also reduced from 5.0% to 1.5%, significantly improving the reliability of metering.

[0408] b) Stability improvement:

[0409] The standard deviations of current and voltage measurements were reduced by 66.3% and 66.7%, respectively, indicating that the measurements were more stable.

[0410] c) Reduce abnormal situations:

[0411] The proportion of measurement errors exceeding 2% has been reduced from 35% to 5%, significantly reducing the occurrence of abnormal measurement.

[0412] 9. Performance under different working conditions

[0413] In order to comprehensively evaluate the effectiveness of this method, we also analyzed its performance under different working conditions:

[0414] a) Load change adaptability:

[0415] We compared the measurement errors of charging piles at different load rates. The results show that the optimized charging piles maintain a low error level in the load range of 10%-100%. See Table 2 for details:

[0416] Table 2 Load rate statistics

[0417] Load factor Error before optimization Optimized error 10% 3.8% 1.2% 30% 2.9% 0.9% 50% 2.3% 0.7% 70% 2.1% 0.6% 90% 2.0% 0.6% 100% 2.2% 0.7%

[0418] b) Harmonic influence suppression:

[0419] Under different harmonic contents, the optimized charging pile shows stronger anti-interference ability, as shown in Table 3:

[0420] Table 3 Anti-interference capability under different harmonics

[0421] Total harmonic distortion Error before optimization Optimized error 1% 2.2% 0.7% 3% 2.8% 0.9% 5% 3.5% 1.1% 7% 4.2% 1.3% 10% 5.0% 1.5%

[0422] c) Dynamic response capability:

[0423] We tested the response of the charging pile under sudden load changes, simulating the scenario where the battery management system (BMS) of an electric vehicle suddenly adjusts the charging current during charging. The results showed that the optimized charging pile was able to reduce the metering error to less than 1% within 200ms, while it took more than 500ms before optimization.

[0424] d) Environmental adaptability:

[0425] Under different ambient temperatures (-10°C to 40°C), the optimized charging pile maintained stable measurement accuracy with an error change of no more than 0.3%. The error fluctuation of the charging pile before optimization could reach 1.5% when the temperature changed.

[0426] The above description is only a specific implementation mode of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A method for reducing the output power measurement error of a DC charging pile. It is characterized in that The following steps are involved: S10, real-time collection of current data, voltage data, power metering data, charging pile load rate, charging pile input voltage, and charging pile input harmonics during the DC charging pile output power process; S20, performing multivariate mixed decomposition calculation on the current data to obtain a current stable component and a current variable component; S30, performing multivariate mixed decomposition calculation on the voltage data to obtain a voltage stability component and a voltage variation component; S40, performing multivariate mixed decomposition calculation on the charging pile input voltage to obtain an input voltage stable component and an input voltage variable component; S50, establishing a functional relationship between the voltage stability component, the input voltage variation component, the charging pile input harmonics, the charging pile load rate and the current variation component, the voltage variation component, recorded as a variation relationship, and establishing a charging current variation coefficient matrix and a charging voltage variation coefficient matrix according to the variation relationship; S60, calculating a charging current stability coefficient matrix and a charging voltage stability coefficient matrix based on the charging current variation coefficient matrix and the charging voltage variation coefficient matrix; S70, calculating a current error compensation amount and a voltage error compensation amount for the current data and the voltage data based on a charging current stability coefficient matrix and a charging voltage stability coefficient matrix; S80, applying the calculated current error compensation amount and voltage error compensation amount to the original current data and voltage data to obtain corrected current data and voltage data: Among them, the corrected current data = original current data + current error compensation; Among them, the corrected voltage data = original voltage data + voltage error compensation; S90, recalculating electric energy by using the corrected current data and the corrected voltage data using an integration method to obtain electric energy metering data after error correction; The step of performing multivariate mixed decomposition calculation on the current data to obtain the current stable component and the current variable component is specifically to perform multivariate mixed decomposition on the collected current data using the method of empirical mode decomposition combined with Hilbert-Huang transform: in, Where I(t) is the original current signal; c i (t) is the i-th intrinsic mode function (IMF); r n (t) is the residual term; a i (t) is the instantaneous amplitude; θ i (t) is the instantaneous phase; ω i (t) is the instantaneous frequency; n is the number of decomposition levels; The extraction of the current stable component and the current variable component includes: the current stable component: Current variation component: Where ζ is a threshold value, the default express The rounding down of is used to distinguish between stable and variable components; The step of performing multivariate mixed decomposition calculation on the voltage data to obtain the voltage stability component and the voltage variation component is specifically to perform multivariate mixed decomposition on the collected voltage data using wavelet packet transform combined with adaptive threshold denoising: among them, ps j,k (t)=2 j / 2 ψ(2 j tk);d j,k =∫U(t)ψ j,k (t)dt; Where U(t) is the original voltage signal; d j,k is the wavelet coefficient; ψ j,k (t) is the wavelet basis function; j is the scale parameter; k is the translation parameter; J is the maximum decomposition level; the extraction of voltage stability component and variable component includes voltage stability component: Voltage variation component: Among them J 1 Is a threshold value, the default express The rounding down of is used to distinguish between stable and variable components; Among them, the step of performing multivariate mixed decomposition calculation on the input voltage of the charging pile to obtain the input voltage stable component and the input voltage variable component is specifically to perform multivariate mixed decomposition on the input voltage using the variational mode decomposition method: in, Where U in is the original input voltage signal; u ξ is the ξth decomposition mode; ω ξ is the center frequency of the ξth mode; K is the number of modes; δ(t) is the Dirac delta function; * represents the convolution operation; the extraction of the input voltage stable component and the variable component includes the input voltage stable component: Input voltage variation component: Where K 1 Is a threshold value, the default express The rounding down of is used to distinguish between stable and variable components; The change relationship is specifically expressed as follows: Where U s is the voltage stabilizing component; is the input voltage variation component; H is the charging pile input harmonic; L is the charging pile load rate; I v is the current variation component; U v is the voltage variation component; The variation relationship is decomposed into two sub-functions, including a current variation component function and a voltage variation component function, wherein the current variation component function is expressed as follows: The voltage variation component function is expressed as follows: The current variation component function is specifically expressed as follows: The voltage variation component function is specifically expressed as follows: Where Z(H) is the equivalent impedance considering the influence of harmonics, expressed as: In the formula, Z 0 is the fundamental frequency impedance, H n is the nth harmonic component, ρ n is the weight coefficient; φ(x) and ψ(x) are activation functions, including any two of ReLU, tanh or sigmoid; w k ,v k ,γ k ,μ k ,b k ,c k are the weight and bias parameters of the neural network; α 1 ,α 2 ,α 3 ,β 1 ,δ 1 ,δ 2 ,δ 3 ,δ 4 ,λ,η are model parameters, which are optimized through training data; is the number of nodes in the hidden layer of the neural network; The charging current variation coefficient matrix is ​​specifically expressed as follows: The charging voltage variation coefficient matrix is ​​specifically expressed as follows: The charging current stability coefficient matrix is ​​specifically expressed as follows: S I =M 0 -M I ; In the formula, M 0 is a 5x5 identity matrix; The charging voltage stability coefficient matrix is ​​specifically expressed as follows: S U =M 0 -M U ; The step of calculating the current error compensation amount and the voltage error compensation amount for the current data and the voltage data based on the charging current stability coefficient matrix and the charging voltage stability coefficient matrix specifically includes: Step 1: Define input data, including: measured is the measured current data; U measured is the measured voltage data; I nominal is the rated current value; U nominal is a constant voltage value; S I is the charging current stability coefficient calculation matrix; S U Calculate the matrix for charging voltage stability coefficient; Step 2: Calculate the initial current error and voltage error: ΔI initial =I measured -I nominal ; ΔU inital =U measured -U nominal ; Step 3: Construct the current initial error, voltage initial error and system parameters into a vector: E=[ΔI initial ,ΔU initial ,ΔH,ΔL] T ; Among them, ΔH and ΔL are the deviations of harmonics and charging pile load rate, respectively, which are obtained through real-time measurement; Step 4: Calculate the compensation amount using the charging current stability coefficient matrix and the charging voltage stability coefficient matrix: In the formula, S I (i,j) and S U (i,j) are S I and S U The i-th row and j-th column element of the matrix; E(j) is the j-th element of the error vector; ω is the angular frequency of the input current of the charging pile; t is time; where e iωt Introducing time dependency, and Phase adjustment was introduced; Step 5: In order to improve the accuracy of compensation, a weighting factor α (0<α<1) is introduced to obtain the current error compensation amount: ΔI final =α·ΔI comp ; Voltage error compensation: ΔU final =α·ΔU comp .

Citation Information

Patent Citations

  • Intelligent method for measuring electric energy considering interharmonics in microgrid

    CN109358230A

  • Charging station electric energy quality monitoring system

    CN111665406A

  • Energy storage type charging station operation state evaluation method based on AHP-entropy weight method

    CN111709655A

  • Harmonic voltage measurement error correction method and device for capacitor voltage transformer

    CN112305485A

  • Dynamic stability judgment method for multi-power electronic equipment feed-in system

    CN113869668A