Line fault pole selection method for DC distribution network based on VMD decomposition and machine learning
Through the modal decomposition of VMD and SABO and the fault feature extraction method of CNN-SVM, the accuracy and robustness problems of fault pole selection in DC distribution network are solved, high-accuracy fault detection and rapid recovery are achieved, and the power grid is improved. reliability and stability.
Patent Information
- Application Number
- CN202410961439.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-18
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-07-18
AI Technical Summary
The fault pole selection method of DC distribution network has the problems of low detection accuracy, high misjudgment rate, and sensitivity to noise. Due to its characteristics, traditional fault location methods are not applicable, resulting in difficulty in satisfying the protection quickness and selectivity, affecting Grid reliability and stability.
By establishing a DC distribution network model, using VMD and SABO combined with minimum sample entropy to perform modal decomposition of current, extracting time domain statistical indicators to generate a feature vector matrix, using CNN to extract fault features, and inputting the results into SVM for classification, it is achieved Determination of fault type.
It achieves high-accuracy fault pole selection within a short sampling time, reduces the complexity of traditional methods, improves the sensitivity and accuracy of fault detection, enhances the generalization ability and robustness of fault pole selection, and reduces The scope and duration of the power outage are known.
Smart Images

Figure CN118535986B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of relay protection of electric power systems, and in particular relates to a method for selecting a fault pole in a DC distribution network line based on VMD decomposition and machine learning. Background Art
[0002] With the concept of energy structure transformation and the continuous improvement of social environmental awareness, in order to achieve the "dual carbon" goal as soon as possible, new energy sources such as solar energy and wind energy are booming, and the penetration rate of distributed power sources in the distribution network is constantly increasing. However, due to its inherent intermittent and random nature, when it is connected to the AC network on a large scale through the rectification link, it often causes voltage fluctuations, affects the power quality, and reduces the reliability of the power grid. In addition, with the rapid development of power electronics technology, the proportion of DC loads on the user side is also increasing rapidly. The demand for DC power in commercial electricity (electric vehicle charging, etc.), residential electricity (inverter refrigerators and air conditioners, laptops, mobile phones, etc.), and office electricity (data centers, etc.) is constantly increasing. In traditional power grids, it is inevitable to use AC / DC links to ensure normal power consumption on the user side. Compared with being connected to the AC grid, whether it is a distributed power source or a DC load, directly connecting to the DC grid can save a large number of rectifier inverters, which not only reduces the equipment cost, but also helps to reduce the line loss caused by reactive current components and skin effect in the AC grid.
[0003] Therefore, DC distribution network is more in line with the contemporary development concept of green, high efficiency and energy saving, and has broad application prospects. However, as a line protection technology to ensure the safe and reliable operation of DC distribution network, most of them still use AC distribution network or flexible DC transmission protection technology. DC distribution system has not yet formed a mature protection theory and technology system for its own characteristics. The difficulties of relay protection of DC distribution network are mainly reflected in the following aspects:
[0004] (1) Flexible DC systems have a large number of power electronic devices, and the system structure and control methods are relatively complex. The fault characteristics are non-periodic, nonlinear, and rich in transient information, making it difficult to extract and determine fault parameters. However, due to the small impedance of the DC distribution line and the large short-circuit current, it is very easy to cause impact on power electronic devices, causing irreversible damage. Therefore, the protection speed is required to be high.
[0005] (2) To ensure the reliability of power supply in the distribution network, when a fault occurs, the protection system should be able to identify the smallest fault area, minimize the scope of power outage, and ensure stable operation of non-fault areas. This requirement places high demands on the protection selectivity and is mutually constrained by the speed mentioned in the previous item.
[0006] (3) Flexible DC distribution networks are mostly powered by cables, and most faults are permanent. After the protection isolates the fault and cuts off the power, it is still necessary to manually clear the fault point. Therefore, accurate fault location helps to find the fault point clearly, so as to restore power supply to the area as soon as possible. However, flexible DC distribution networks are different from AC systems. Due to the fast-moving nature of their protection, they measure less fault information and cannot be used for AC system fault location methods. In addition, due to the short DC distribution lines, the traveling wave method commonly used in high-voltage DC transmission is not applicable.
[0007] Therefore, according to the structural characteristics of the DC distribution network, designing a high-performance line protection scheme to reduce the scope and duration of power outages and improve power supply reliability and stability is of great significance for the application and development of DC distribution networks. The traditional fault pole selection method has problems such as low detection accuracy, high misjudgment rate, and sensitivity to noise. Fault pole selection is an important part of line protection. Accurate and fast fault pole selection methods will provide guarantee for high-quality line protection. Therefore, it is very meaningful to propose a high-precision and high-reliability fault pole selection method. Summary of the invention
[0008] The present invention establishes a DC distribution network model to obtain the single-ended current at the protection installation within a preset time period under four conditions: positive pole grounding, negative pole grounding, inter-pole short circuit and out-of-zone fault in the protection zone; SABO combined with minimum sample entropy is used as the objective function to optimize the modal decomposition layer number k and penalty factor a of important VMD parameters to obtain the optimal IMF component of the current; nine time domain statistical indicators including mean, variance, peak value, kurtosis, effective value, peak factor, pulse factor, waveform factor and margin factor are calculated to generate a eigenvector matrix for each sample; CNN is used to extract fault features from the eigenvector matrix, and the obtained results are sent to SVM to determine the line fault type and complete fault pole selection.
[0009] In order to achieve the above-mentioned object of the invention, the present invention provides a DC distribution network line fault pole selection method based on VMD decomposition and machine learning as described below, which is implemented by executing the following steps:
[0010] Step S1, constructing a DC distribution network model, establishing different protection sections in the DC distribution network model, collecting single-end currents within a preset time period under four fault conditions at the installation location of the protection device in each protection section, setting multiple fault points according to the length and characteristics of the protection section, simulating the fault types occurring at different locations, and collecting multiple fault samples of different fault types at the same time;
[0011] Step S2, using VMD and SABO combined with minimum sample entropy to optimize the modal decomposition layer number and penalty factor of VMD, and using VMD to decompose the fault current to obtain the optimal IMF component, where the fault current refers to the single-end current collected in step S1;
[0012] Step S3, performing preliminary feature extraction on the optimal IMF component, wherein the feature is a time domain statistical index, including mean, variance, peak value, kurtosis, effective value, peak factor, pulse factor, waveform factor, and margin factor, and generating a feature vector matrix for each sample based on the feature;
[0013] Step S4: Use CNN to extract fault features from the feature vector matrix, and input the obtained extraction results as samples into the SVM classifier for training and learning. The SVM classifier classifies the fault types according to the training results to achieve fault selection.
[0014] As a preferred technical solution of the present invention, the four fault states include positive pole grounding, negative pole grounding, bipolar short circuit and out-of-zone fault.
[0015] As a preferred technical solution of the present invention, obtaining the optimal IMF component includes the following steps:
[0016] Step S21, setting the initial modal decomposition layer number k and penalty factor α, setting the maximum number of iterations N and convergence tolerance, and setting the initial number of iterations n to 0;
[0017] Step S22, decomposing the original signal f into k modal components through the VMD constrained variational model, introducing Lagrange multipliers to handle the constraints, constructing an augmented Lagrangian function, and converting the constrained optimization problem into an unconstrained optimization problem;
[0018] Step S23, using the ADMM algorithm to solve the saddle point of the augmented Lagrangian function, and iteratively updating the modal components, center frequencies, and Lagrangian multipliers until a first convergence condition or a second convergence condition is met, wherein the first convergence condition is that the difference between the modal components of the current iteration and the modal components of the previous iteration is less than the convergence tolerance, and the second convergence condition is that n reaches the maximum number of iterations N;
[0019] Step S24, calculating the sample entropy for each modal component, taking the sample entropy as an indicator for evaluating the decomposition effect, and using the SABO algorithm to update k and α according to the sample entropy and other evaluation indicators to find the optimal solution;
[0020] Step S25, evaluate the decomposition effect after each iteration, select the IMF component with the minimum sample entropy as the best decomposition result, and determine whether the convergence condition is met after each iteration. If so, stop the iteration and output the final modal component, center frequency and optimal k and α values.
[0021] As a preferred technical solution of the present invention, the VMD constrained variational model is:
[0022] ,
[0023] ,
[0024] in, is the set of modal components obtained by decomposition, that is , is the set of center frequencies of each modal component, that is , is the unit time pulse function, is the partial derivative of the function with respect to time t, is the correction index, where j is the imaginary unit, Enter the function for the signal;
[0025] Introducing a quadratic penalty factor and the Lagrange multiplication operator in the time domain Convert a constrained optimization problem to an unconstrained optimization problem:
[0026] ,
[0027] The modal components are expressed as follows:
[0028] ,
[0029] The superscript ^ represents the Fourier transform form of the variable, and l represents the current number of iterations.
[0030] The center frequency is expressed by the following formula:
[0031] ,
[0032] Introducing the Lagrange multiplier in the frequency domain:
[0033] ,
[0034] in, is the noise margin parameter, is the frequency domain signal input function;
[0035] The first convergence condition is expressed by the following formula:
[0036] ,
[0037] in, is the convergence tolerance, >0.
[0038] As a preferred technical solution of the present invention, calculating sample entropy includes the following steps:
[0039] Step S241: Assume that the modal component is a time series of length N, that is, , assuming the embedding dimension is m, divide the time series into multiple subsequences of length m, that is, ,in, is the sequence number of the subsequence, ;
[0040] Step S242: Calculate the distance between each subsequence and other subsequences using the following formula:
[0041] ;
[0042] Step S243: Obtain the number of subsequences whose distance between each subsequence and other subsequences is less than or equal to a preset threshold r, and use the number as the similarity. , use the following formula to calculate the probability :
[0043] ;
[0044] Step S244: Calculate the average value of all the subsequences using the following formula: :
[0045] ;
[0046] Step S245: increase the dimension m by 1, and repeat steps S242 to S244 to obtain the average value of a new subsequence. ;
[0047] Step S246: Calculate the sample entropy S using the following formula:
[0048] .
[0049] As a preferred technical solution of the present invention, after calculating the sample entropy, the following steps are further performed:
[0050] It can be seen from the calculation formula of sample entropy that the value of sample entropy is related to r and m. The value of the dimension m is preset, and the calculation formula of r is: ,in, for The standard deviation of SABO optimization is:
[0051] ,
[0052] in, , , The fault at the ath location is the minimum sample entropy value, the optimal number of modal component layers, and the optimal penalty factor. are the smallest modal component layer number and the largest modal component layer number, respectively. are the minimum penalty factor and the maximum penalty factor respectively.
[0053] As a preferred technical solution of the present invention, the SABO algorithm is used to update k and α to find the optimal solution, including the following steps:
[0054] A set of particles are randomly initialized in the search space, and the particle positions are updated based on the subtraction operation. The particle positions are updated by the arithmetic mean of the "-v" subtraction of each search agent, and the fitness of the new position is evaluated and compared with the current best position. If the fitness of the new position is higher, the k and α values corresponding to the new position are accepted; otherwise, the current best value is maintained.
[0055] As a preferred technical solution of the present invention, preliminary feature extraction is performed on the optimal IMF component, comprising the following steps:
[0056] Assume that the optimal IMF component is , the mean value M is calculated using the following formula: , the variance is calculated using the following formula : , the peak value is calculated using the following formula : , the kurtosis is calculated using the following formula : , the effective value is calculated using the following formula: , the peak factor CF is calculated using the following formula: , the waveform factor SF is calculated using the following formula: , the margin factor MF is calculated using the following formula: .
[0057] As a preferred technical solution of the present invention, CNN is used to extract fault features from the feature vector matrix, including the following steps:
[0058] The feature vector matrix is normalized and input into CNN as input. The convolution layer in CNN traverses the input matrix through the convolution kernel to preliminarily extract the fault features. The pooling layer realizes downsampling by merging adjacent elements. For fault identification, the maximum pooling method is used to focus on the signal peak. The fully connected layer converts the multi-dimensional feature map generated by the above process into a one-dimensional feature vector, and then the one-dimensional feature vector is input into SVM for classification.
[0059] As a preferred technical solution of the present invention, after the fault pole selection is realized, the following steps are further performed:
[0060] A simulation verification is carried out on a double-terminal VSC±10kV medium-voltage DC distribution network model to analyze the optimal penalty factor and the optimal number of decomposition layers under different fault types, visualize the fault feature vectors before and after CNN processing, and use SVM to evaluate the classification effect.
[0061] Compared with the prior art, the beneficial effects of the present invention are at least as follows:
[0062] 1. The present invention realizes accurate fault pole selection operation by only using single-ended current, and has also been proven to have high accuracy in short sampling time, and does not require communication coordination, is not affected by communication delay, has high reliability, and provides a basis for rapid line protection and fault repair work identification, is conducive to rapid restoration of power supply to the power grid, and improves power grid reliability. VMD and CNN algorithms are used to effectively extract and enhance fault features, improve the sensitivity and accuracy of fault detection; SVM classifier is used to enhance the generalization ability and robustness of fault pole selection.
[0063] 2. The present invention applies SABO-VMD and CNN-SVM algorithms to the fault selection of DC distribution lines, converting the complex line selection problem into a pattern recognition problem. By collecting a large amount of sample data, the training of CNN and SVM models is completed, and the fault type of the protection section can be directly obtained by using the algorithm, thereby avoiding the complex principle calculation, threshold setting and other processes in traditional line protection, while ensuring accuracy and speed, reducing the complexity of protection system design.
[0064] 3. The present invention applies the variational modal decomposition method to the fault signal processing problem to extract the transient fault information of the DC power grid. VMD is an adaptive signal processing method that can determine the number of modal decompositions of a given sequence according to actual conditions, and adaptively match the optimal center frequency and limited bandwidth of each mode during the search and solution process. It has anti-noise ability, but the VMD algorithm requires manual determination of the decomposition layer k and the penalty factor α, whose value directly affects the decomposition effect. Therefore, the SABO algorithm is used to automatically optimize and determine the VMD parameters, thereby increasing the accuracy of the model. The SABO algorithm has the characteristics of strong optimization ability, fast convergence speed, simplicity and high efficiency, and is suitable for optimizing optimization problems.
[0065] 4. The present invention adopts a convolutional neural network algorithm to enhance fault feature extraction. Compared with the traditional VMD decomposition and direct input into the classifier, CNN can automatically learn and extract useful information from the input data through multi-layer convolution and pooling operations, capture and learn hierarchical features from low to high levels, and enhance the discrimination of the four fault state features of positive grounding, negative grounding, inter-pole short circuit and out-of-zone fault, which greatly improves the efficiency of model learning in subsequent classifiers and improves the accuracy of fault pole selection.
[0066] 5. The present invention adopts the SVM algorithm to achieve the final classification problem. Compared with the softmax classifier or other classification algorithms in CNN, SVM maps the nonlinear problem of low-dimensional space to high-dimensional space through the kernel technique, realizes linear partition in high-dimensional space, and has more advantages in dealing with nonlinear problems. In addition, SVM has certain robustness to the noise in the training data and stronger anti-noise ability; it adopts structural risk minimization, is not easy to fall into the local optimal solution, and has a lower generalization error. BRIEF DESCRIPTION OF THE DRAWINGS
[0067] Figure 1 A flow chart of the steps of the method for selecting poles for a DC distribution network line fault based on VMD decomposition and machine learning of the present invention;
[0068] Figure 2 It is a topological diagram of the ±10kV double-terminal VSC DC distribution network system of the present invention;
[0069] Figure 3 This is a fitness curve diagram of the minimum sample entropy of the present invention, taking the Ip value measured when the positive pole grounding with a transition resistance of 0 occurs 1 km away from the protection measurement point as an example;
[0070] Figure 4 This is a waveform diagram of the Ip value measured under the optimal VMD parameters when the positive pole grounding with a transition resistance of 0 occurs at the distance protection measurement point 1 km of the present invention;
[0071] Figure 5This is a spectrum diagram under the optimal VMD parameters of the Ip value measured when the positive pole grounding with a transition resistance of 0 occurs at the distance protection measurement point 1 km of the present invention;
[0072] Figure 6 This is a schematic diagram of feature visualization of a fault feature vector that has not been processed by CNN but has been processed by PCA;
[0073] Figure 7 It is a schematic diagram of feature visualization of the fault feature vector processed by CNN and processed by PCA in the present invention;
[0074] Figure 8 A confusion matrix diagram of the fault pole selection method based on the present application of the present invention;
[0075] Fig. 9 This is a graph showing the classification accuracy of the fault pole selection method based on the present application. DETAILED DESCRIPTION
[0076] In order to make the purpose, technical solution and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0077] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but unless otherwise specified, these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first xx script may be referred to as a second xx script, and similarly, a second xx script may be referred to as a first xx script.
[0078] The present invention provides Figure 1 A method for selecting a fault pole in a DC distribution network based on VMD decomposition and machine learning is shown, which is implemented by executing the following steps:
[0079] Step S1, construct a DC distribution network model, establish different protection zones in the DC distribution network model, collect single-ended current within a preset time period under four fault conditions at the installation location of the protection device in each protection zone, set multiple fault points according to the length and characteristics of the protection zone, simulate the fault types occurring at different locations, and collect multiple fault samples of different fault types at the same time.
[0080] Specifically, first, a DC distribution network model is established in the simulation software. This model can reflect the electrical characteristics and structure of the actual DC distribution network. Different protection zones are divided in the DC distribution network model. These protection zones are specific parts of the distribution network. Each zone is equipped with corresponding protection devices. At the installation location of the protection device in each protection zone, the single-ended current is collected under four fault conditions within a predetermined time period. The single-ended current refers to the current response when a fault occurs. The four fault conditions include positive grounding, negative grounding, bipolar grounding and out-of-zone faults. In order to simulate faults that may occur at different locations, multiple fault points are set according to the length of the protection zone. In order to ensure the effectiveness and accuracy of subsequent algorithm analysis, a certain number of fault samples need to be collected for each fault type to ensure that each fault state has sufficient data to support the analysis. In order to ensure the effectiveness of subsequent algorithm operation, sufficiently extensive and representative fault samples need to be collected so that the algorithm can accurately learn and identify different fault types, thereby making correct fault type judgments in practical applications.
[0081] Step S2, using VMD and SABO combined with minimum sample entropy, optimizing the modal decomposition layer number and penalty factor of VMD, using VMD to decompose the fault current to obtain the optimal IMF component, the fault current refers to the single-ended current collected in step S1.
[0082] Specifically, VMD is variational mode decomposition, which has the properties of being adaptive and completely non-recursive. It can adaptively match the optimal center frequency and priority of each mode, realize the effective separation of IMF and the frequency domain division of the signal, thereby obtaining the effective decomposition components of the given signal, and finally obtaining the optimal solution to the variational problem. The VMD algorithm requires manual determination of the decomposition layer k and the penalty factor α. Only by selecting reasonable k and α values can a good decomposition effect be ensured. In this way, it will not cause mode aliasing due to insufficient decomposition due to a small k value, or produce false components due to excessive decomposition due to a large k value, nor will it cause signal loss or signal redundancy due to improper α value. Therefore, in order to avoid biased results based on empirical settings alone, SABO is a subtraction optimizer. Based on SABO and sample minimum entropy, the parameters k and α of VMD are optimized to solve the problem of parameter selection of the VMD algorithm.
[0083] Step S3, perform preliminary feature extraction on the best IMF component, the features are time domain statistical indicators, including mean, variance, peak, kurtosis, effective value, peak factor, pulse factor, waveform factor, margin factor, and generate a feature vector matrix for each sample based on the features.
[0084] Specifically, feature extraction is performed on the optimal IMF component calculated in step S2 to obtain nine time domain statistical indicators including mean, variance, peak, kurtosis, effective value, peak factor, pulse factor, waveform factor, and margin factor, and a feature vector matrix is generated for each sample.
[0085] Step S4: Use CNN to extract fault features from the feature vector matrix, and input the obtained extraction results as samples into the SVM classifier for training and learning. The SVM classifier classifies the fault types according to the training results to achieve fault selection.
[0086] Specifically, for complex signal data, using CNN to enhance fault feature extraction is a very effective measure. The feature adjacent matrix obtained in step S3 is normalized and used as the input CNN to input the obtained one-dimensional feature vector into SVM. In the face of nonlinear problems, SVM classification performance is better than the softmax classifier in CNN. Therefore, the data information processed by CNN is sent to SVM for classification. SVM is a supervised learning model that is widely used in classification problems. Its central idea is to separate different categories of data through a hyperplane. The SVM is trained and learned through the fault feature vector output by CNN, so that it can accurately distinguish the four states of positive grounding, negative grounding, bipolar short circuit and out-of-zone fault. Its output result is the fault pole selection result, which can be output to the power system control center or related equipment for subsequent fault isolation and recovery.
[0087] Through the above method, accurate fault pole selection operation is achieved by only using single-ended current, and it is also proven to have high accuracy in a shorter sampling time, which provides a basis for rapid line protection and fault repair work identification, is conducive to quickly restoring power supply to the grid and improving grid reliability.
[0088] Furthermore, the four fault states include positive pole grounding, negative pole grounding, bipolar short circuit and out-of-zone fault.
[0089] Further, obtaining the optimal IMF component includes the following steps:
[0090] Step S21, setting the initial modal component layer number k and penalty factor α, setting the maximum number of iterations C and convergence tolerance, and setting the initial number of iterations c to 0;
[0091] Step S22, decomposing the original signal f into k modal components through the VMD constrained variational model, introducing Lagrange multipliers to handle the constraints, constructing an augmented Lagrangian function, and converting the constrained optimization problem into an unconstrained optimization problem;
[0092] Step S23, using the ADMM algorithm to solve the saddle point of the augmented Lagrangian function, and iteratively updating the modal components, center frequencies, and Lagrangian multipliers until a first convergence condition or a second convergence condition is met, the first convergence condition being that the difference between the modal components of the current iteration and the modal components of the previous iteration is less than the convergence tolerance, and the second convergence condition being that c reaches the maximum number of iterations C;
[0093] Step S24, calculating the sample entropy for each modal component, taking the sample entropy as an indicator for evaluating the decomposition effect, and using the SABO algorithm to update k and α according to the sample entropy and other evaluation indicators to find the optimal solution;
[0094] Step S25, evaluate the decomposition effect after each iteration, select the IMF component with the minimum sample entropy as the best decomposition result, and determine whether the convergence condition is met after each iteration. If so, stop the iteration and output the final modal component, center frequency, and optimal k and α values.
[0095] Specifically, the above method uses variational mode decomposition VMD and subtraction optimizer SABO combined with minimum sample entropy to optimally optimize the modal decomposition layer k and penalty factor α of VMD. Since VMD decomposition has the properties of adaptive and completely non-recursive, it can adaptively match the optimal center frequency and finite bandwidth of each mode, realize effective separation of IMF and frequency domain division of signals, thereby obtaining effective decomposition components of a given signal, and finally obtaining the optimal solution to the variational problem. Through the coordination of the above steps, the best IMF component that best represents the fault characteristics can be extracted from the fault current signal, providing effective features for subsequent fault monitoring and classification.
[0096] Furthermore, the VMD constrained variational model is:
[0097] ,
[0098] ,
[0099] in, is the set of modal components obtained by decomposition, that is , is the set of center frequencies of each modal component, that is , is the unit time pulse function, is the partial derivative of the function with respect to time t, is the correction index, where j is the imaginary unit, Enter the function for the signal;
[0100] Introducing a quadratic penalty factor and the Lagrange multiplication operator in the time domain Convert a constrained optimization problem to an unconstrained optimization problem:
[0101] ,
[0102] The modal components are expressed as follows:
[0103] ,
[0104] The superscript ^ represents the Fourier transform form of the variable, l represents the current iteration number,
[0105] The center frequency is expressed as follows:
[0106] ,
[0107] Introducing the Lagrange multiplier in the frequency domain:
[0108] ,
[0109] In the formula, is the noise margin parameter, is the frequency domain signal input function;
[0110] The first convergence condition is expressed as follows:
[0111] ,
[0112] in, is the convergence tolerance, >0.
[0113] Specifically, assuming that the original signal f is decomposed into k components, the decomposition sequence is guaranteed to be a modal component with a limited bandwidth and a center frequency, and the sum of the estimated bandwidths of each mode is minimized. The constraint condition is that the sum of all modes is equal to the original signal. The VMD constrained variational model is as shown in the above formula. To solve the constrained optimization problem, the quadratic penalty term is used. and Lagrange multipliers , introduce the augmented Lagrangian function, transform the constrained variational problem into an unconstrained variational problem, and in the augmented Lagrangian function is the noise tolerance parameter. If the signal to be decomposed is a signal with a low signal-to-noise ratio, Setting it to 0 can get better decomposition effect. In VMD decomposition, the time domain signal is converted to the frequency domain, and the optimal center frequency of each IMF is determined by optimization. And the corresponding frequency domain signal The alternating direction method of multipliers (ADMM) can also be used to obtain the saddle point, thereby optimizing the constrained variational problem and obtaining the modal components. , the corresponding center frequency .
[0114] Furthermore, the sample entropy is calculated, including the following steps:
[0115] Step S241: Assume that the modal component is a time series of length N, that is, , let the embedding dimension be m, and divide the time series into multiple subsequences of length m, that is, ,in, is the subsequence number, ;
[0116] Step S242: Calculate the distance between each subsequence and other subsequences using the following formula:
[0117] ;
[0118] Step S243: Obtain the number of subsequences whose distance between each subsequence and other subsequences is less than or equal to a preset threshold r, and use the number as the similarity. , use the following formula to calculate the probability :
[0119] ;
[0120] Step S244: Calculate the average value of all subsequences using the following formula: :
[0121] ;
[0122] Step S245: Increase the dimension m by 1, and repeat steps S242 to S244 to obtain the average value of the new subsequence. ;
[0123] Step S246: Calculate the sample entropy S using the following formula:
[0124] .
[0125] Specifically, since sample entropy can be used to measure the probability of new patterns appearing in signals and their complexity, the smaller the sample entropy value, the lower the complexity of the time series, that is, the fewer frequency components in the sequence, the smaller the probability of modal aliasing. Therefore, the sample entropy is calculated through the above steps, which facilitates the subsequent selection of the IMF component that best represents the fault characteristics as the optimal IMF based on the sample entropy combined with other time domain statistical indicators.
[0126] Furthermore, after calculating the sample entropy, the following steps are performed:
[0127] It can be seen from the calculation formula of sample entropy that the value of sample entropy is related to r and m. The value of the dimension m is preset, and the calculation formula of r is: ,in, for The standard deviation of SABO optimization is:
[0128] ,
[0129] in, , , The fault at the ath location is the minimum sample entropy value, the optimal number of modal component layers, and the optimal penalty factor. are the smallest modal component layer number and the largest modal component layer number, respectively. are the minimum penalty factor and the maximum penalty factor respectively.
[0130] Specifically, according to the calculation formula of sample entropy, the value of sample entropy is related to r and m, and m is usually 2. , from the above, we can get the objective function of SABO optimization. According to the objective function, we can obtain the minimum sample entropy value, the optimal number of modal component layers and the optimal penalty factor when faults occur in various places.
[0131] Further, the SABO algorithm is used to update k and α to find the optimal solution, including the following steps:
[0132] A set of particles are randomly initialized in the search space, and the particle positions are updated based on the subtraction operation. The particle positions are updated by the arithmetic mean of the "-v" subtraction of each search agent, and the fitness of the new position is evaluated and compared with the current best position. If the fitness of the new position is higher, the k and α values corresponding to the new position are accepted; otherwise, the current best value is maintained.
[0133] Specifically, the subtraction optimizer SABO is an intelligent optimization algorithm based on mathematical behavior that uses the relative position differences between search agents to update the particle positions to find the optimal solution. It has the advantages of strong optimization ability and fast convergence speed. The algorithm process is as follows:
[0134] (1) Similar to other intelligent optimization algorithms, SABO first randomly initializes a set of particles in the search space;
[0135] (2) Based on a special operation “-v”, called the subtraction of v of search agent B from search agent A, which is defined as follows: , where the search agent refers to the potential solution of the algorithm in the search space, that is, the population member of the lth iteration, is a vector of dimension m, whose components are random numbers from the set {0,1}, and is the fitness value of the objective function of the search agent A and B;
[0136] (3) Position update: In each iteration, any search agent The displacement in the search space is calculated by each search agent The position update formula is as follows: ,in, is the new position of the ith search agent Z, Q is the total number of search agents, is a vector of dimension m, where each component is normally distributed in the interval [0,1];
[0137] (4) The updated position will be re-evaluated. If the fitness of the new position is improved, the new position will be accepted; otherwise, it will remain unchanged. .
[0138] Furthermore, preliminary feature extraction is performed on the optimal IMF component, including the following steps:
[0139] Assume the optimal IMF component is , use the following formula to calculate the mean M: , use the following formula to calculate the variance : , use the following formula to calculate the peak value : , the kurtosis is calculated using the following formula : , use the following formula to calculate the effective value: , use the following formula to calculate the peak factor CF: , use the following formula to calculate the form factor SF: , use the following formula to calculate the margin factor MF: .
[0140] Specifically, the above steps are used to perform preliminary feature extraction on the optimal IMF component. The mean is an important indicator used to describe the trend of the data set. The variance is used to measure the discreteness of the data. The peak value is the numerical difference between the highest point and the lowest point in the data distribution, which reflects the range of signal variation. The kurtosis reflects the sharpness or flatness of the data distribution relative to the normal distribution. The kurtosis of a normal distribution is usually 3. If the kurtosis value is greater than 3, it means that the data distribution is sharper than the normal distribution. If the kurtosis value is less than 3, it means that the data distribution is flatter than the normal distribution. The effective value refers to the square root of the average value of a set of data squares, which is used to reflect the energy content of periodically changing signals. The peak factor refers to the ratio of the signal peak value to the effective value, which characterizes the extreme degree of the signal peak value in the entire waveform and is often used to detect whether there is an impact in the signal. The pulse factor, which represents the ratio of the signal peak value to the rectified average value (the average value of the absolute value of the signal), is also an indicator for detecting whether there is an impact. The waveform factor is the ratio of the effective value to the rectified average value, and is also the ratio of the pulse factor to the peak factor. The margin factor is the ratio of the signal peak value to the square root amplitude. The square root amplitude is the arithmetic square root of the average value of the sum of the squares of the signal.
[0141] Furthermore, CNN is used to extract fault features from the feature vector matrix, including the following steps:
[0142] The feature vector matrix is normalized and input into CNN as input. The convolution layer in CNN traverses the input matrix through the convolution kernel to preliminarily extract the fault features. The pooling layer achieves downsampling by merging adjacent elements. For fault identification, the maximum pooling method is used to focus on the signal peak. The fully connected layer converts the multi-dimensional feature map generated by the above process into a one-dimensional feature vector, and then the one-dimensional feature vector is input into SVM for classification.
[0143] Specifically, for complex signal data, using CNN to enhance fault feature extraction is a very effective measure. CNN mainly includes three parts: convolution layer, pooling layer, and fully connected layer. According to different data characteristics, the model can be modified and optimized by adjusting the number of convolution layers, the size and number of convolution kernels, and the pooling method. The convolution layer slides the convolution kernel on the input data and calculates the dot product to extract local features; the pooling layer reduces the number of parameters by downsampling the feature map while retaining the most important features. Common pooling methods include average pooling and maximum pooling. After the convolution layer and pooling layer, the fully connected layer is usually used to integrate global information and generate the final result.
[0144] After the feature vector matrix is normalized, it is sent to the CNN as input. The convolution layer traverses the input matrix through the convolution kernel to preliminarily extract the fault features. The pooling layer achieves downsampling by merging adjacent elements. For fault identification, this application focuses on the signal peak, which is more conducive to the extraction of fault signals. The maximum pooling method is adopted. The fully connected layer converts the multi-dimensional feature map generated by the above process into a one-dimensional feature vector, in preparation for the subsequent SVM processing.
[0145] In the face of nonlinear problems, SVM classification performs better than the softmax classifier in CNN. Therefore, the data information processed by CNN is sent to SVM for classification. SVM is a supervised learning model that is widely used in classification problems. Its central idea is to separate data of different categories through a hyperplane. The SVM is trained and learned through the fault feature vector output by CNN, so that it can accurately distinguish between the four states of positive grounding, negative grounding, bipolar short circuit and out-of-zone fault. The output result is the fault pole selection result, which can be output to the power system control center or related equipment for subsequent fault isolation and recovery.
[0146] Furthermore, after the fault pole selection is implemented, the following steps are also performed:
[0147] A simulation verification is carried out on a double-terminal VSC±10kV medium-voltage DC distribution network model to analyze the optimal penalty factor and the optimal number of decomposition layers under different fault types, visualize the fault feature vectors before and after CNN processing, and use SVM to evaluate the classification effect.
[0148] Specifically, in order to verify the reliability and effectiveness of the present invention, a two-terminal VSC ±10kV medium-voltage DC distribution network was simulated and verified. The model adopts single-pole symmetrical wiring, and the neutral point of the capacitor is grounded through high resistance. VSC1 is the master control station, which adopts fixed DC voltage and fixed reactive power control. VSC2 is the slave control station, which adopts PQ control. The DC / AC converter with AC load adopts island droop control. The system is stepped down to 2kV by DC / DC to connect to a 3MW DC load; it is converted to 10kV by a DC / AC converter, and 50Hz AC is connected to a 4MW AC load. Cables are selected as distribution lines. The system topology is as follows. Figure 2 The parameter settings are shown in Table 1.
[0149] Table 1 DC distribution network model parameter settings
[0150]
[0151] The single-ended fault current within 1ms after the fault occurs is extracted, and the positive fault current Ip and negative fault current In data are sent to SABO-VMD for decomposition. The optimal decomposition parameters are shown in Table 2. Taking the Ip value measured when the positive pole is grounded with a transition resistance of 0 at a distance of 1km from the protection measurement point as an example, Figure 3 The fitness curve under the minimum sample entropy is shown. Figure 4 This is the waveform diagram under the optimal VMD parameters. Figure 5 It is the spectrum diagram under the optimal VMD parameters.
[0152] Table 2 Parameter optimization under different fault types
[0153]
[0154] The optimal α, k, IMF is brought back to VMD, and nine time domain indicator characteristics are calculated to obtain the fault feature vector of each fault sample of Ip and In. The Ip fault feature vector is combined with the In fault feature vector to form a single-ended current fault feature vector.
[0155] The single-ended current fault feature vector is sent to CNN for fault feature enhancement. Figure 6 This is the feature visualization of the fault feature vector after PCA dimensionality reduction without CNN processing. It can be seen that there is a serious overlap between the positive grounding fault and the negative grounding fault. Figure 7 This is the result after CNN feature extraction. The boundaries of the four states are significantly strengthened, proving the effectiveness of the CNN algorithm.
[0156] The data processed by CNN was sent to SVM for training and learning. A grid search mechanism was adopted, and 5-fold cross validation was used to optimize the penalty factor c and gamma parameters of SVM. Finally, the classification effect was verified through the test set. Figure 8 This is the confusion matrix diagram of the fault selection method. Fig. 9 This is a graph showing the classification accuracy of the fault pole selection method. Figure 8 , Fig. 9 It shows that this method has good accuracy.
[0157] In summary, the method for selecting poles for line faults in a DC distribution network based on VMD decomposition and machine learning of the present invention comprises establishing a DC distribution network model, obtaining the single-ended current at the protection installation within a preset time period under four conditions of positive pole grounding, negative pole grounding, inter-pole short circuit and out-of-zone fault in the protection section; using SABO combined with minimum sample entropy as the objective function, optimizing the modal decomposition layer number k and penalty factor a of important VMD parameters to obtain the optimal IMF component of the current; calculating nine time domain statistical indicators including mean, variance, peak value, kurtosis, effective value, peak factor, pulse factor, waveform factor and margin factor to generate a feature vector matrix for each sample; using CNN to extract fault features from the feature vector matrix, sending the obtained results to SVM to determine the line fault type, and completing fault pole selection. The present invention can effectively extract and strengthen fault features, and improve the sensitivity and accuracy of fault detection.
[0158] It should be understood that, although each step in the flow chart of each embodiment of the present invention is shown in sequence according to the indication of the arrow, these steps are not necessarily performed in sequence according to the order indicated by the arrow. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be performed in other orders. Moreover, at least a portion of the steps in each embodiment may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily performed at the same time, but can be performed at different times, and the execution order of these sub-steps or stages is not necessarily performed in sequence, but can be performed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps.
[0159] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the above-mentioned program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0160] The technical features of the above-mentioned embodiments can be combined arbitrarily. In order to make the description concise, not all possible combinations of the technical features in the above-mentioned embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0161] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the patent of the present invention. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.
[0162] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for selecting poles for line faults in a DC distribution network based on VMD decomposition and machine learning, characterized in that: The steps include: Step S1, constructing a DC distribution network model, establishing different protection sections in the DC distribution network model, collecting single-end currents within a preset time period under four fault conditions at the installation location of the protection device in each protection section, setting multiple fault points according to the length and characteristics of the protection section, simulating the fault types occurring at different locations, and collecting multiple fault samples of different fault types at the same time; Step S2, using VMD and SABO combined with minimum sample entropy to optimize the modal decomposition layer number and penalty factor of VMD, and using VMD to decompose the fault current to obtain the optimal IMF component, where the fault current refers to the single-end current collected in step S1; Step S3, performing preliminary feature extraction on the optimal IMF component, wherein the feature is a time domain statistical index, including mean, variance, peak value, kurtosis, effective value, peak factor, pulse factor, waveform factor, and margin factor, and generating a feature vector matrix for each sample based on the feature; Step S4, using CNN to extract fault features from the feature vector matrix, and inputting the obtained extraction results as samples into the SVM classifier for training and learning, and the SVM classifier classifies the fault types according to the training results to achieve fault selection; The four fault conditions include positive pole grounding, negative pole grounding, bipolar short circuit and out-of-zone fault.
2. The method according to claim 1, characterized in that Obtaining the optimal IMF component includes the following steps: Step S21, setting the initial modal component layer number k and penalty factor α, setting the maximum number of iterations C and convergence tolerance, and setting the initial number of iterations c to 0; Step S22, decomposing the original signal f into k modal components through the VMD constrained variational model, introducing Lagrange multipliers to handle the constraints, constructing an augmented Lagrangian function, and converting the constrained optimization problem into an unconstrained optimization problem; Step S23, using the ADMM algorithm to solve the saddle point of the augmented Lagrangian function, and iteratively updating the modal components, center frequencies, and Lagrangian multipliers until a first convergence condition or a second convergence condition is met, wherein the first convergence condition is that the difference between the modal components of the current iteration and the modal components of the previous iteration is less than the convergence tolerance, and the second convergence condition is that c reaches the maximum number of iterations C; Step S24, calculating the sample entropy for each modal component, taking the sample entropy as an indicator for evaluating the decomposition effect, and using the SABO algorithm to update k and α according to the sample entropy and other evaluation indicators to find the optimal solution; Step S25, evaluate the decomposition effect after each iteration, select the IMF component with the minimum sample entropy as the best decomposition result, and determine whether the convergence condition is met after each iteration. If so, stop the iteration and output the final modal component, center frequency and optimal k and α values.
3. The method according to claim 2, characterized in that The VMD constrained variational model is: , , in, is the set of modal components obtained by decomposition, that is is the set of center frequencies of each modal component, that is is the unit time pulse function, is the partial derivative of the function with respect to time t, is the correction index, where j is the imaginary unit, Enter the function for the signal; Introducing a quadratic penalty factor and the Lagrange multiplication operator in the time domain Convert a constrained optimization problem to an unconstrained optimization problem: , The modal components are expressed as follows: , The superscript ^ represents the Fourier transform form of the variable, and l represents the current number of iterations. The center frequency is expressed by the following formula: , Introducing the Lagrange multiplier in the frequency domain: , in, is the noise margin parameter, is the frequency domain signal input function; The first convergence condition is expressed by the following formula: , in, is the convergence tolerance, >
0.
4. The method according to claim 2, characterized in that: Calculating sample entropy includes the following steps: Step S241: Assume that the modal component is a time series of length N, that is, , assuming the embedding dimension is m, divide the time series into multiple subsequences of length m, that is, ,in, is the sequence number of the subsequence, ; Step S242: Calculate the distance between each subsequence and other subsequences using the following formula: ; Step S243: Obtain the number of subsequences whose distance between each subsequence and other subsequences is less than or equal to a preset threshold r, and use the number as the similarity. , use the following formula to calculate the probability : ; Step S244: Calculate the average value of all the subsequences using the following formula: : ; Step S245: increase the dimension m by 1, and repeat steps S242 to S244 to obtain the average value of a new subsequence. ; Step S246: Calculate the sample entropy S using the following formula: 。 5. The method according to claim 4, characterized in that After calculating the sample entropy, the following steps are performed: It can be seen from the calculation formula of sample entropy that the value of sample entropy is related to r and m. The value of the dimension m is preset, and the calculation formula of r is: ,in, for The standard deviation of SABO optimization is: , in, The fault at the ath location is the minimum sample entropy value, the optimal number of modal component layers, and the optimal penalty factor. are the smallest modal component layer number and the largest modal component layer number, respectively. are the minimum penalty factor and the maximum penalty factor respectively.
6. The method according to claim 2, characterized in that Use the SABO algorithm to update k and α to find the optimal solution, including the following steps: Initialize a set of particles randomly in the search space, update the particle positions based on the subtraction operation, update the particle positions by the arithmetic mean of the "-v" subtraction of each search agent, evaluate the fitness of the new position, and compare it with the current best position. If the fitness of the new position is higher, accept the k and α values corresponding to the new position; otherwise, keep the current best value.
7. The method according to claim 1, characterized in that Performing preliminary feature extraction on the optimal IMF component includes the following steps: Assume that the optimal IMF component is , the mean value M is calculated using the following formula: , the variance is calculated using the following formula : , the peak value is calculated using the following formula : , the kurtosis is calculated using the following formula : , the effective value is calculated using the following formula: , the peak factor CF is calculated using the following formula: , the waveform factor SF is calculated using the following formula: , the margin factor MF is calculated using the following formula: .
8. The method according to claim 1, characterized in that Using CNN to extract fault features from the feature vector matrix includes the following steps: The feature vector matrix is normalized and input into CNN as input. The convolution layer in CNN traverses the input matrix through the convolution kernel to preliminarily extract the fault features. The pooling layer realizes downsampling by merging adjacent elements. For fault identification, the maximum pooling method is used to focus on the signal peak. The fully connected layer converts the generated multi-dimensional feature map into a one-dimensional feature vector, and then the one-dimensional feature vector is input into SVM for classification.
9. The method according to claim 1, characterized in that: After the fault selection is implemented, the following steps are also performed: A simulation verification is carried out on a double-terminal VSC±10kV medium-voltage DC distribution network model to analyze the optimal penalty factor and the optimal number of decomposition layers under different fault types, visualize the fault feature vectors before and after CNN processing, and use SVM to evaluate the classification effect.
