Harmonic and three-phase imbalance joint probability modeling method and system

Through dimensionless data processing and genetic algorithm, the K-means algorithm is optimized, combined with the Frank Copula function, to solve the shortcomings of joint probability modeling of harmonics and three-phase unbalanced disturbance sources in the existing technology, and achieve more accurate working condition classification. and power quality prediction.

CN118676902APending Publication Date: 2024-09-20ELECTRIC POWER RES INST OF EAST INNER MONGOLIA ELECTRIC POWER +2
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410709301.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

The existing technology lacks a joint probability modeling method for harmonics and three-phase unbalanced disturbance sources, and the K-means algorithm is sensitive to the selection of the initial clustering center when dividing operating conditions, making it difficult to ensure the optimization of the clustering results.

Method used

Dimensionless data processing, Pearson correlation coefficient matrix construction and genetic algorithm are used to optimize the K-means algorithm. The largest element in the correlation coefficient matrix is ​​selected as the clustering feature data, and the joint probability of harmonics and three-phase unbalance is calculated using the Frank Copula function. Model, and evaluate the goodness of fit through the CWB clustering evaluation index and AIC information criterion.

Benefits of technology

It achieves more accurate working condition division and determination of the optimal clustering working condition number K, improves the effectiveness and accuracy of predicting the power quality emission level of disturbance sources, and ensures the prediction of strong correlation, weak correlation and irrelevance. sexual modeling completeness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118676902A
    Figure CN118676902A
Patent Text Reader

Abstract

The invention provides a harmonic wave and three-phase imbalance joint probability modeling method and system, and relates to the technical field of power system disturbance sources. The method comprises the following steps: collecting multiple types of harmonic data and three-phase imbalance data, and calculating and selecting one type of harmonic data and one type of three-phase imbalance data with the maximum correlation coefficient as clustering feature data; and based on the clustering feature data, dividing working conditions through a K-means clustering algorithm, and determining an optimal clustering working condition number K. And finally, according to the value of the correlation coefficient, carrying out harmonic wave and three-phase imbalance joint probability modeling on any working condition through a Frank Copula function or convolution operation. In addition, goodness-of-fit evaluation is carried out by adopting an AIC information criterion. According to the method, the improved K-means clustering algorithm can accurately divide working conditions and determine the optimal clustering working condition number K; and joint probability modeling of harmonic waves and three-phase imbalance can be carried out for any working condition, so that the effectiveness and the accuracy of predicting the power quality emission level of the disturbance source in different operation states are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of power system disturbance sources, and in particular to a method and system for joint probability modeling of harmonics and three-phase imbalance. Background Art

[0002] With the development of the economy, users require a stable and continuous supply of electricity, while also putting forward higher requirements for power quality. Among them, the problems that affect users the most are harmonic problems and three-phase imbalance problems, especially when new energy units, rolling mills, smelting loads and other equipment are connected to the power grid, which are potential sources of harmonic disturbances and potential sources of three-phase imbalance disturbances. Therefore, constructing a probabilistic model of the power quality emission level of harmonic and three-phase imbalance disturbance sources is a topic that needs to be solved urgently, but the current research results on the modeling of power grid disturbance sources still have many shortcomings.

[0003] In terms of the selection of the disturbance source working condition division algorithm, the disturbance source may have several different operating modes in actual operation. In these modes, the disturbance data emitted may be different, so it is generally necessary to first divide the working conditions of the disturbance source, and then model the disturbance source according to the working conditions. The joint probability model proposed in the present invention follows this idea. So far, there are many classic working condition division clustering algorithms, and K-means is widely used due to its simplicity, high efficiency and wide applicability. However, in the K-means algorithm, the number of clusters K is difficult to select, and it is manually specified according to experience, which cannot guarantee that the clustering results are optimal; the K initial clustering centers are randomly selected by the system. In the actual sampling data, there may be isolated points. If the isolated points are accidentally selected as the initial clustering centers, it will have an adverse effect on the clustering results.

[0004] In addition, the existing modeling of power quality emission levels of power system disturbance sources generally focuses on a single harmonic source or a three-phase unbalanced disturbance source. Harmonic source modeling is mainly divided into harmonic source modeling methods based on mechanism analysis and harmonic source modeling methods based on data analysis; the modeling of three-phase unbalanced disturbance sources mainly includes impedance equivalent method and data analysis method. However, for the power quality emission level of disturbance sources that are both harmonic sources and three-phase unbalanced sources, there is currently no research that provides relevant joint probability modeling methods. Summary of the invention

[0005] In order to solve the technical problems existing in the prior art, better divide the working conditions of the disturbance source and realize the joint probability modeling of the two disturbance sources, the present invention provides a method for joint probability modeling of harmonics and three-phase imbalance.

[0006] The method comprises the following steps:

[0007] S1: Collecting harmonic data and three-phase unbalance data

[0008]

[0009] In the formula, is the total harmonic distortion rate of phase i at time j; They are the current zero-sequence unbalance and the current negative-sequence unbalance at time j respectively; The voltage zero-sequence unbalance and voltage negative-sequence unbalance at time j respectively; where n is the total number of collected time points;

[0010] S2: Dimensionless harmonic data and three-phase unbalance data,

[0011]

[0012] in,

[0013]

[0014] In the formula, for The minimum value in ; for The maximum value in ;

[0015] Other elements are calculated in a similar way;

[0016] S3: Construct the correlation coefficient matrix [R],

[0017]

[0018] In the formula, x A 、x B 、x C and Pearson correlation coefficient of x A 、x B 、x C and Pearson correlation coefficient of x A 、x B 、x C and Pearson correlation coefficient of x A 、x B 、x C and Pearson correlation coefficient of

[0019] in,

[0020]

[0021] In the formula, For x A The mean of for The mean of

[0022] Use the same method to obtain the values ​​of all Pearson correlation coefficients in the correlation coefficient matrix [R];

[0023] S4: Select the x corresponding to the largest element in the correlation coefficient matrix [R] i and z As clustering feature data; where y z for or or or

[0024] S5: Use K-means clustering algorithm to divide the operating conditions of the disturbance source;

[0025] S51: Improving initial cluster centers using genetic algorithms:

[0026] x i and z Encoding;

[0027] Randomly select k time points as the initial cluster centers; where k is the number of current cluster conditions;

[0028] Establish a fitness function,

[0029]

[0030] Where P is the fitness function of the genetic algorithm; x g ,y g x i and z The g-th operating condition cluster center; y zj for or or or Where g = 1, 2, ..., k;

[0031] Calculate the cluster center x of the working condition at time j g ,y g The fitness value P jg ,

[0032] P jg =[(x ij -x g )(y zj -y g )] 2 ;

[0033] Choose the fitness value P jg The smallest operating condition cluster center is taken as the operating condition cluster center at time j;

[0034] Through the arithmetic crossover operator x i and z Perform crossover operations.

[0035]

[0036] In the formula, x' ij ,y' zj is the working condition cluster center after crossover operation; α is a random number (0, 1);

[0037] The mutation operation is performed through the uniform mutation operator.

[0038]

[0039] In the formula, x” i ,y” z is the cluster center of the working condition after mutation operation; r is a random number (0, 1); x imax 、x imin For x i The upper and lower limits of y zmax ,y zmin for y z The upper and lower limits of

[0040] Iteratively optimize the position of the working condition cluster center until the fitness function converges, and obtain the clustering result corresponding to the current clustering working condition number k; wherein the clustering result includes multiple working condition cluster centers and dimensionless sample values ​​in their corresponding clusters;

[0041] S52: Select the optimal clustering condition number K of the disturbance source through the CWB clustering evaluation index CWB(k);

[0042] S6: Joint probability modeling of harmonics and three-phase imbalance for each operating condition;

[0043] If the Pearson correlation coefficient corresponding to the clustering feature data is greater than the preset value, the Frank Copula function is selected to perform joint probability modeling of harmonics and three-phase imbalance.

[0044]

[0045] In the formula, F(x i ,y z ) is the joint probability density function of harmonic data and three-phase unbalanced data; C(x i ,y z) is the expression of the Frank Copula function;

[0046] The parameter θ of the Frank Copula function is estimated by the correlation coefficient method.

[0047]

[0048] The Kendall rank correlation coefficient τ for harmonic data and three-phase unbalanced data exists

[0049]

[0050]

[0051] Where m is the total number of sampling points under this condition; x ij1 、x ij2 They are x at time j1 and x at time j2 respectively. i The corresponding sampling value is dimensionless; y zj1 ,y zj2 are y at time j1 and y at time j2 respectively. z The corresponding sampling value is dimensionless;

[0052] If the Pearson correlation coefficient corresponding to the clustering feature data is not greater than the preset value, then,

[0053] f(x i ,y z )=f(x i )*f(y z );

[0054] In the formula, f(x i ) is x i The fitted probability density function of f(y z ) is y z The fitted probability density function of ;

[0055] Among them, f(x i ) is obtained by using a one-dimensional nonparametric kernel density function,

[0056]

[0057] Where b is the bandwidth; K(·) is the Gaussian kernel function; For x i The expected value of the sample data;

[0058] f(y z ) is obtained by a similar method.

[0059] Preferably, a floating point number encoding is used for x i and z to encode.

[0060] Preferably, for the CWB clustering evaluation index CWB(k), there is

[0061]

[0062] Where, h = 1, 2, ..., k;

[0063] Among them, the intra-cluster difference,

[0064]

[0065] Where CW(g) is the variance value of the clustered sample of the g-th working condition; n g 、x m 、x g are cluster samples c for the g-th working condition respectively. g The number of working condition clustering samples, working condition clustering sample values, and working condition clustering centers;

[0066] The difference between clusters,

[0067] CB(g,h)=(x g -x h ) 2 ;

[0068] Where CB(g,h) is the square of the distance between the cluster center of the g-th working condition and the cluster center of the h-th working condition; x h is the cluster center of the hth working condition.

[0069] Furthermore, the method also includes a method for determining the convergence of the fitness function;

[0070] If P e -P e-1 <λ, the fitness function is judged to have converged, otherwise it has not converged;

[0071] Where, e is the number of iteration layers, e = [2, 3, ..., 100]; P e is the fitness value after e layers of iteration; λ is an infinitesimal positive number.

[0072] Furthermore, the AIC information criterion was used to evaluate the goodness of fit.

[0073]

[0074] AIC = n ln(MSE) + 2;

[0075] Where, MSE is the mean square error between the actual probability value and the fitted probability value; F emp (x ij ,y zj ) is the harmonic data and three-phase unbalance data in (xij ,y zj ) probability value; F(x ij ,y zj ) is the harmonic data and three-phase unbalanced data obtained by fitting the Frank Copula function or convolution operation in (x ij ,y zj ) probability value.

[0076] Preferably, the preset value is 0.4.

[0077] In addition, the present invention also provides a system for joint probability modeling of harmonics and three-phase imbalance, including an acquisition module, a data processing module, a working condition division module and a modeling module;

[0078] The acquisition module is used to collect harmonic data and three-phase imbalance data;

[0079] The data processing module is used to convert the harmonic data and the three-phase unbalanced data into dimensionless data, calculate the Pearson correlation coefficient between each index of the harmonic data and each index of the three-phase unbalanced data, and then select the clustering feature data according to the Pearson correlation coefficient;

[0080] The working condition division module is used to divide the working conditions based on cluster feature data and determine the optimal number of cluster working conditions K;

[0081] The modeling module is used for joint probability modeling of harmonic data and three-phase unbalanced data.

[0082] Furthermore, the above system also includes an evaluation module for evaluating the goodness of fit of the joint probability modeling;

[0083] Furthermore, the present invention also provides an electronic device adapted to the above-mentioned system, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the steps in the above-mentioned method for joint probability modeling of harmonics and three-phase imbalance are implemented.

[0084] Furthermore, the present invention also provides a computer-readable storage medium adapted to the above system, on which a computer program is stored, and when the computer program is executed by a processor, the steps in the above method for joint probability modeling of harmonics and three-phase imbalance are implemented.

[0085] It can be seen that in the method of joint probability modeling of harmonics and three-phase imbalance provided by the present invention, the improved K-means clustering algorithm can divide the operating conditions more accurately and determine the optimal number of clustering conditions K; and can perform joint probability modeling of harmonics and three-phase imbalance for any operating condition, thereby improving the effectiveness and accuracy of predicting the power quality emission level of the disturbance source under different operating conditions. BRIEF DESCRIPTION OF THE DRAWINGS

[0086] Figure 1 It is a basic flow chart of an embodiment of the present invention.

[0087] Figure 2 It is a schematic diagram of the process of optimizing the K-means algorithm in the present invention.

[0088] Figure 3 This is a schematic diagram of the effect of dividing the interference source working conditions before the K-means algorithm optimization in the present invention.

[0089] Figure 4 This is a schematic diagram of the effect of dividing the interference source working conditions after the K-means algorithm is optimized in the present invention. DETAILED DESCRIPTION

[0090] The inventor will now explain the present invention in detail with reference to the accompanying drawings and specific embodiments.

[0091] Example 1

[0092] The present invention discloses a method for joint probability modeling of harmonics and three-phase imbalance, such as Figure 1 As shown, the specific steps include:

[0093] First, the harmonic data x and three-phase unbalance data y of the disturbance source grid connection point are collected at multiple consecutive and equally spaced time points. For any time j, there exists

[0094] x={x A x B x C};

[0095]

[0096] In the formula, x i is the sample data of total harmonic distortion rate of phase i; They are sample data of current zero-sequence unbalance and current negative-sequence unbalance respectively; Sample data of voltage zero-sequence unbalance and voltage negative-sequence unbalance respectively; wherein, i = A, B, C, j = 1, 2, 3, ..., n, n is the total number of time points collected;

[0097] Among them, the total harmonic distortion rate of phase i is an indicator of the harmonic data x; the current zero-sequence unbalance, current negative-sequence unbalance, voltage zero-sequence unbalance and voltage negative-sequence unbalance are indicators of the three-phase unbalance data y.

[0098] The data collected at all time points form the following matrix:

[0099]

[0100]

[0101] In the power quality test data used in the present invention, the dimensions of some data differ too much. In order to reduce the impact of the dimension on clustering, all sample data need to be dimensionless so that all data fall within [0, 1] to facilitate subsequent analysis.

[0102] The dimensionless processing of harmonic index data can be expressed as:

[0103]

[0104] In the formula, x imin is the minimum value of the corresponding index; x imax is the maximum value of the corresponding indicator.

[0105] The dimensionless processing of three-phase unbalance index data can be expressed as:

[0106]

[0107] In the formula, y j for Any one of y jmin is the minimum value of the corresponding indicator; y jmax is the maximum value of the corresponding indicator.

[0108] Then, the harmonic data and three-phase unbalanced data after dimensionless processing are subjected to correlation analysis. The Pearson coefficient was first proposed by statistician Karl Pearson and was originally used as a statistical indicator to analyze and study the linear correlation between variables. The correlation coefficient used in the present invention is calculated by the product difference method, that is, the means of the harmonic data and the three-phase unbalanced data are first calculated respectively, and then the deviations between the two groups of data and their respective means are calculated respectively, and the two deviations are multiplied to obtain the correlation coefficient, which reflects the correlation between the variables.

[0109] The Pearson coefficient R of the harmonic data and the three-phase unbalanced data in the present invention xy It can be obtained by the formula:

[0110]

[0111] In the formula, are the means of the corresponding indicators of harmonic data x and three-phase unbalanced data y respectively; j That is x i .

[0112] Based on Pearson's coefficient (Pearson correlation coefficient) R xy Construct the correlation coefficient matrix [R],

[0113]

[0114] In the formula, is the Pearson correlation coefficient between the total harmonic distortion rate of phase i and the current zero-sequence unbalance; is the Pearson correlation coefficient between the total harmonic distortion rate of phase i and the current negative sequence imbalance; is the Pearson correlation coefficient between the total harmonic distortion rate of phase i and the voltage zero-sequence unbalance; is the Pearson correlation coefficient between the total harmonic distortion rate of phase i and the voltage negative sequence imbalance.

[0115] Select the Pearson correlation coefficient R xy The largest x J and J As cluster feature data, it participates in the subsequent cluster analysis; among them,

[0116]

[0117] Subsequently, the K-means clustering algorithm is used to divide the operating conditions of the disturbance sources.

[0118] When the harmonic and three-phase unbalanced disturbance sources are actually running, the harmonic data and three-phase unbalanced data measured at the grid connection point may be quite different under different operating modes. For example, under certain operating conditions, the harmonic content emitted is more than the three-phase unbalanced content, while under certain operating conditions, the harmonic content emitted is less than the three-phase unbalanced content. Therefore, the present invention adopts the method of analyzing such disturbance sources by operating conditions, clustering the harmonic data and the three-phase unbalanced data, so as to obtain different operating conditions of the disturbance sources.

[0119] According to the correlation calculation, a group of index data with the greatest correlation between harmonic data and three-phase unbalanced data is extracted as clustering feature data, so as to reduce the dimension of clustering data and improve calculation efficiency.

[0120] In the present invention, the K-means clustering algorithm is used to divide the operating conditions of the disturbance source. Figure 2 As shown in the figure, in order to overcome the shortcoming of the K-means algorithm being very sensitive to the selection of the initial cluster center, a genetic algorithm is used to optimize K-means, and the search capability of the genetic algorithm is used to find a suitable cluster center, thereby optimizing the cluster similarity matrix. The schematic diagram of the effect of using the K-means algorithm before and after optimization to divide the interference source working conditions is shown in the figure. Figure 3 , Figure 4 shown.

[0121] In order to overcome the shortcoming of the K-means algorithm that randomly sets the number of clusters K, the number of clusters K is selected based on the principle of minimum intra-cluster difference and maximum inter-cluster difference.

[0122] The main calculation steps of the optimized K-means clustering algorithm are: first, use the genetic algorithm to obtain the initial cluster center; then select the optimal clustering condition number K according to the principle of minimum intra-cluster difference and maximum inter-cluster difference; finally, bring the initial cluster center and the clustering condition number K into the K-means clustering algorithm to obtain the final clustering result.

[0123] Among them, the genetic algorithm (GA) algorithm is used to improve the initial clustering center.

[0124] The steps of genetic algorithm are mainly divided into chromosome encoding, initializing population, establishing adaptive function and selecting genetic operator.

[0125] Chromosome encoding: Chromosome encoding mainly includes binary encoding, floating point encoding and integer encoding. Preferably, the clustering samples in the present invention present multi-dimensionality and large cardinality. Floating point encoding can be used to encode x J and J This floating point number clustering method is intuitive, shortens the chromosome length, and improves the computing efficiency. In addition, binary encoding, integer encoding, and mixed encoding can also be selected for encoding.

[0126] Initialize the population: randomly select k data points in the sample space as the initial cluster centers; where k is the current number of clustering conditions, k = 2, 3, ..., 15.

[0127] Fitness function: The fitness function is used to measure whether the results of the optimization calculation have reached convergence and the degree to which they are close to the optimal solution.

[0128] Establish a fitness function,

[0129]

[0130] Where P is the fitness function of the genetic algorithm; g is the ordinal number of the current working condition, g = 1, 2, ..., k; x g ,y g x J and J The g-th operating condition cluster center.

[0131] Genetic operator selection: Genetic operator selection is divided into selection operation, crossover operation and mutation operation. The main goal of the selection operation is to select individuals with higher fitness based on the fitness of data individuals to increase their representation in the next generation. In this way, better solutions will be more likely to be retained and passed to the next generation, thereby gradually improving the performance of the entire population.

[0132] For the selection operation, calculate the cluster center x of the working condition at time j g ,y g The fitness value Pjg ,

[0133] P jg =[(x j -x g )(y j -y g )] 2 ;

[0134] Choose the fitness value P jg The smallest operating condition cluster center is taken as the operating condition cluster center at time j.

[0135] For the crossover operation, the present invention selects an arithmetic crossover operator, and uses the arithmetic crossover operator to perform the crossover operation on x. J and J Perform crossover operations,

[0136]

[0137] In the formula, x' J ,y' J is the cluster center after the crossover operation; α is a random number in (0, 1).

[0138] The present invention adopts uniform mutation operator to perform mutation operation. For each mutation point, a random number within the value range of the corresponding gene position is taken to replace the original value.

[0139]

[0140] Where x” J ,y” J is the cluster center after mutation operation; r is a random number (0, 1); x Jmin 、x Jmax For x J The upper and lower limits of y Jmin ,y Jmax for y J The upper and lower limits of .

[0141] Iteratively optimize the position of the working condition cluster center until the fitness function converges, and obtain the clustering result corresponding to the current clustering working condition number k; wherein the clustering result includes multiple working condition cluster centers and dimensionless sample values ​​in their corresponding clusters. If the fitness function does not converge, it indicates that the cluster is invalid, and the next k value calculation is performed.

[0142] Preferably, the method for determining whether the fitness function converges is as follows:

[0143] If P e -P e-1 <λ, the fitness function is judged to have converged, otherwise it has not converged;

[0144] Where, e is the number of iteration layers, e = [2, 3, ..., 100]; P e is the fitness value after e layers of iteration; λ is an infinitesimal positive number.

[0145] After the initial cluster center is improved, the optimal clustering condition number K of the disturbance source is selected using the CWB clustering evaluation index. After the initial cluster center of each operating condition of the disturbance source is selected using the genetic algorithm, the initial cluster center is brought into the K-means clustering algorithm for cluster analysis. However, the number of clustering conditions needs to be set randomly. The present invention selects the optimal number of clustering conditions based on the principle of minimum intra-cluster difference and maximum inter-cluster difference.

[0146] Preferably, the principle of minimum intra-cluster difference and maximum inter-cluster difference can be improved, including intra-cluster difference, inter-cluster difference and clustering evaluation index CWB.

[0147] Intra-cluster variance: CW(g) is the variance of the clustered samples of the g-th working condition. The smaller the value, the closer the internal connection of the working condition.

[0148]

[0149] Where n g 、x m 、x g are cluster samples c for the g-th working condition respectively. g The number of working condition clustering samples, working condition clustering sample values, and working condition clustering centers.

[0150] Inter-cluster difference: CB(g,h) is the square of the distance between the cluster center of the hth working condition and the cluster center of the hth working condition. The larger the value, the greater the difference between the two working conditions and the better the clustering effect.

[0151] CB(g,h)=(x g -x h ) 2 ;

[0152] In the formula, x h is the cluster center of the hth working condition.

[0153] Calculate the clustering evaluation index CWB,

[0154]

[0155] In the formula, h=1,2,...,k.

[0156] When the number of clusters is K, the value of the numerator is the condition with the largest difference within the cluster, and the value of the denominator is the condition with the smallest difference between clusters. The smaller the CWB(K) value, the smaller the difference within the cluster, the larger the difference between clusters, and the better the clustering effect.

[0157] Optionally, the existing principle of minimum intra-cluster difference and maximum inter-cluster difference can also be applied to the step of selecting the optimal clustering condition number K of disturbance sources in the present invention.

[0158] As mentioned above, the feature data set is divided into K clusters, each cluster represents an operating condition. This section will perform joint probability modeling of harmonics and three-phase imbalance for each operating condition. It is stipulated that when the correlation coefficient between the two is greater than the preset value, the harmonic data representing the disturbance source and the three-phase imbalance data have a strong correlation, and the modeling is performed according to the joint probability modeling method with a strong correlation.

[0159] The present invention adopts Copula function to perform strong correlation joint probability modeling for harmonics and three-phase imbalance. Copula function is a joint function uniformly distributed on [0,1]. Its main feature is to construct joint probability distribution based on the correlation and marginal distribution between variables. Copula has various functions to choose from and a simple structure.

[0160] Copula function: Assume that F(x,y) is the joint probability distribution function of x and y. There exists a unique Copula function C such that:

[0161] F(x,y)=C(x,y);

[0162] Common Copula function types include Archimedean Copula function, Gaussian Copula, t-distribution Copula, etc. Choosing the right Copula type can reflect the correlation pattern of the data. Among them, the Archimedean Copula function type is widely used because of its simple structure and strong adaptability. In addition, because the joint probability modeling of harmonics and three-phase imbalance belongs to the modeling of two-dimensional data, the Frank Copula function in the two-dimensional Archimedean Copula function type is applicable to various distribution structures, and the parameters to be calculated are relatively independent, which simplifies the subsequent parameter estimation.

[0163] Therefore, the present invention selects the Frank Copula function to model the joint probability of harmonics and three-phase imbalance.

[0164]

[0165] Where C(x,y) is the expression of the Frank Copula function.

[0166] Parameter estimation: After selecting the Copula function, the parameter θ of the selected function needs to be estimated. The main parameter estimation methods are the maximum likelihood method and the correlation coefficient method. The correlation coefficient method is applicable to two-dimensional data, and the maximum likelihood method is applicable to three-dimensional and above data. Therefore, the present invention uses the correlation coefficient method to estimate the parameters of the Copula function.

[0167]

[0168] The correlation coefficient method estimates the Copula parameters mainly by calculating the Kendall rank correlation coefficient τ of the disturbance source harmonic data and the three-phase unbalanced data to deduce the parameter θ.

[0169]

[0170] Where m is the total number of sampling points under this condition; x j1 、x j2 are the sample data of the corresponding indicators of the harmonic data at time j1 and time j2; j1 ,y j2 They are sample data of indicators corresponding to the three-phase unbalanced data at time j1 and time j2 respectively.

[0171] After completing the joint probability modeling, the goodness of fit can also be evaluated: the AIC information criterion is used as the goodness of fit evaluation indicator. The smaller the AIC value, the better the fitting effect of the selected Copula function for the joint probability of harmonics and three-phase unbalance.

[0172]

[0173] AIC = nln(MSE) + 2;

[0174] Where, MSE is the mean square error between the actual probability value and the fitted probability value; F emp (x j ,y j ) is the harmonic data and three-phase unbalance data in (x j ,y j ) probability value; F(x j ,y j ) is the harmonic data and three-phase unbalanced data obtained by fitting the Frank Copula function or convolution operation in (x j ,y j ) probability value.

[0175] Preferably, if the correlation coefficient between an indicator of the harmonic data and an indicator of the three-phase imbalance is not greater than a preset value, joint probability modeling of harmonics and three-phase imbalance with weak correlation and no correlation can be performed.

[0176] Calculate the joint probability density function f(x,y) of harmonic data and three-phase unbalanced data,

[0177] f(x,y)=f(x)*f(y);

[0178] Where, f(x) is the fitted probability density function of harmonic data; f(y) is the fitted probability density function of three-phase unbalanced data;

[0179] Among them, f(x) is obtained by a one-dimensional nonparametric kernel density function,

[0180]

[0181] Where b is the bandwidth; K(·) is the Gaussian kernel function; is the expected value of the sample data of the harmonic data;

[0182] By the same method, f(y) can be obtained.

[0183] Preferably, the preset value of the Pearson correlation coefficient is set to 0.4.

[0184] Example 2

[0185] The present invention provides a system for joint probability modeling of harmonics and three-phase imbalance, including an acquisition module, a data processing module, a working condition division module and a modeling module;

[0186] The acquisition module is used to collect harmonic data and three-phase imbalance data;

[0187] The data processing module is used to convert the harmonic data and the three-phase unbalanced data into dimensionless data, calculate the Pearson correlation coefficient between each index of the harmonic data and each index of the three-phase unbalanced data, and then select the clustering feature data according to the Pearson correlation coefficient;

[0188] The working condition division module is used to divide the working conditions based on cluster feature data and determine the optimal number of cluster working conditions K;

[0189] The modeling module is used for joint probability modeling of harmonic data and three-phase unbalanced data.

[0190] Further, the system also includes an evaluation module for evaluating the goodness of fit of the joint probability modeling;

[0191] Based on the same inventive concept, another embodiment of the present application provides a readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the method for joint probability modeling of harmonics and three-phase imbalance as described in any of the above embodiments of the present application.

[0192] Based on the same inventive concept, another embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes, the steps in the method for joint probability modeling of harmonics and three-phase imbalance described in any of the above embodiments of the present application are implemented.

[0193] It can be seen that in the method of joint probability modeling of harmonics and three-phase imbalance provided by the present invention, the improved K-means clustering algorithm can more accurately divide the working conditions and determine the optimal number of clustering conditions K; and can perform joint probability modeling of harmonics and three-phase imbalance for any working condition, thereby improving the effectiveness and accuracy of predicting the power quality emission level of the disturbance source under different operating conditions. In addition, the joint probability modeling of strongly correlated, weakly correlated, and uncorrelated harmonics and three-phase imbalance ensures the completeness of the modeling;

[0194] In addition to achieving the above-mentioned beneficial effects, the above-mentioned preferred methods have also achieved the following beneficial effects: floating-point encoding can shorten the length of feasible decoding, and is more intuitive, which can improve computing efficiency; improving the principle of minimum intra-cluster difference and maximum inter-cluster difference in CWB clustering evaluation indicators can ensure the accuracy of working condition division and the optimal number of clustering working conditions K; the judgment method of fitness function convergence can ensure that the determined working condition clustering center is more appropriate; goodness of fit evaluation can determine the rationality of joint probability modeling; and setting a suitable value of the Pearson correlation coefficient can ensure the efficiency of joint probability modeling and the accuracy of its results.

[0195] Furthermore, the device, electronic device and readable storage medium corresponding to the method can ensure the specific implementation of the technical solution provided by the present invention in various application environments.

[0196] The above are only preferred embodiments of the present invention and are not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for joint probability modeling of harmonics and three-phase imbalance, characterized in that: The following steps are involved: S1: Collecting harmonic data and three-phase unbalance data In the formula, is the total harmonic distortion rate of phase i at time j; They are the current zero-sequence unbalance and the current negative-sequence unbalance at time j respectively; The voltage zero-sequence unbalance and voltage negative-sequence unbalance at time j respectively; where n is the total number of collected time points; S2: Dimensionless harmonic data and three-phase unbalance data, in, In the formula, for The minimum value in ; for The maximum value in ; Other elements are calculated in a similar way; S3: Construct the correlation coefficient matrix [R], In the formula, x A 、x B 、x C and Pearson correlation coefficient of x A 、x B 、x C and Pearson correlation coefficient of x A 、x B 、x C and Pearson correlation coefficient of x A 、x B 、x C and Pearson correlation coefficient of in, In the formula, For x A The mean of for The mean of Use the same method to obtain the values ​​of all Pearson correlation coefficients in the correlation coefficient matrix [R]; S4: Select the x corresponding to the largest element in the correlation coefficient matrix [R] i and z As clustering feature data; where y z for or or or S5: Use K-means clustering algorithm to divide the operating conditions of the disturbance source; S51: Improving initial cluster centers using genetic algorithms: x i and z Encoding; Randomly select k time points as the initial cluster centers; where k is the number of current cluster conditions; Establish a fitness function, Where P is the fitness function of the genetic algorithm; x g ,y g x i and z The g-th operating condition cluster center; y zj for or or or Where g = 1, 2, ..., k; Calculate the cluster center x of the working condition at time j g ,y g The fitness value P jg , P jg =[(x ij -x g )(and zj -and g )] 2 ; Choose the fitness value P jg The smallest operating condition cluster center is taken as the operating condition cluster center at time j; Through the arithmetic crossover operator x i and z Perform crossover operations. In the formula, x' ij ,y' zj is the working condition cluster center after crossover operation; α is a random number (0, 1); The mutation operation is performed through the uniform mutation operator. In the formula, x” i ,y” z is the cluster center of the working condition after mutation operation; r is a random number (0, 1); x imax 、x imin For x i The upper and lower limits of y zmax ,y zmin for y z The upper and lower limits of Iteratively optimize the position of the working condition cluster center until the fitness function converges, and obtain the clustering result corresponding to the current clustering working condition number k; wherein the clustering result includes multiple working condition cluster centers and dimensionless sample values ​​in their corresponding clusters; S52: Select the optimal clustering condition number K of the disturbance source through the CWB clustering evaluation index CWB(k); S6: Joint probability modeling of harmonics and three-phase imbalance for each operating condition; If the Pearson correlation coefficient corresponding to the clustering feature data is greater than the preset value, the Frank Copula function is selected to perform joint probability modeling of harmonics and three-phase imbalance. In the formula, F(x i ,y z ) is the joint probability density function of harmonic data and three-phase unbalanced data; C(x i ,y z ) is the expression of the FrankCopula function; The parameter θ of the Frank Copula function is estimated by the correlation coefficient method. The Kendall rank correlation coefficient τ for harmonic data and three-phase unbalanced data exists Where m is the total number of sampling points under this condition; x ij1 、x ij2 They are x at time j1 and x at time j2 respectively. i The corresponding sampling value is dimensionless; y zj1 ,y zj2 are y at time j1 and y at time j2 respectively. z The corresponding sampling value is dimensionless; If the Pearson correlation coefficient corresponding to the clustering feature data is not greater than the preset value, then, f(x i ,y z )=f(x i )*f(y z ); In the formula, f(x i ) is x i The fitted probability density function of f(y z ) is y z The fitted probability density function of Among them, f(x i ) is obtained by using a one-dimensional nonparametric kernel density function, Where b is the bandwidth; K(·) is the Gaussian kernel function; For x i The expected value of the sample data; f(y z ) is obtained by a similar method.

2. The method for joint probability modeling of harmonics and three-phase imbalance according to claim 1, characterized in that: In step S51, a floating point number is used to encode x i and z to encode.

3. The method for joint probability modeling of harmonics and three-phase imbalance according to claim 1, characterized in that: For the CWB clustering evaluation index CWB(k), there exists Where, h = 1, 2, ..., k; Among them, the intra-cluster difference, Where CW(g) is the variance value of the clustered sample of the g-th working condition; n g 、x m 、x g are cluster samples c for the g-th working condition respectively. g The number of working condition clustering samples, working condition clustering sample values, and working condition clustering centers; The difference between clusters, CB(g,h)=(x g -x h ) 2 ; Where CB(g,h) is the square of the distance between the cluster center of the g-th working condition and the cluster center of the h-th working condition; x h is the cluster center of the hth working condition.

4. The method for joint probability modeling of harmonics and three-phase imbalance according to claim 1, characterized in that: Also included is a method for determining convergence of the fitness function; If P e -P e-1 <λ, the fitness function is judged to have converged, otherwise it has not converged; Where, e is the number of iteration layers, e = [2, 3, ..., 100]; P e is the fitness value after e layers of iteration; λ is an infinitesimal positive number.

5. The method for joint probability modeling of harmonics and three-phase imbalance according to claim 1, characterized in that: Also includes: The AIC information criterion was used to evaluate the goodness of fit. AIC = nln(MSE) + 2; Where, MSE is the mean square error between the actual probability value and the fitted probability value; F emp (x ij ,y zj ) is the harmonic data and three-phase unbalance data in (x ij ,y zj ) probability value; F(x ij ,y zj ) is the harmonic data and three-phase unbalanced data obtained by fitting the Frank Copula function or convolution operation in (x ij ,y zj ) probability value.

6. A method for joint probability modeling of harmonics and three-phase imbalance according to any one of claims 1 to 5, characterized in that: The preset value is 0.

4.

7. A system for joint probability modeling of harmonics and three-phase imbalance, characterized in that: It includes acquisition module, data processing module, working condition division module and modeling module; The acquisition module is used to collect harmonic data and three-phase imbalance data; The data processing module is used to convert the harmonic data and the three-phase unbalanced data into dimensionless data, calculate the Pearson correlation coefficient between each index of the harmonic data and each index of the three-phase unbalanced data, and then select the clustering feature data according to the Pearson correlation coefficient; The operating condition division module is used to divide the operating conditions based on cluster feature data and determine the optimal number K of cluster operating conditions; The modeling module is used for joint probability modeling of harmonic data and three-phase unbalanced data.

8. A system for joint probability modeling of harmonics and three-phase imbalance as claimed in claim 7, characterized in that: It also includes an evaluation module; The evaluation module is used to evaluate the goodness of fit of joint probability modeling.

9. An electronic device adapted for a system for joint probability modeling of harmonics and three-phase imbalance as claimed in any one of claims 7 or 8, comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer-readable storage medium adapted for a system for joint probabilistic modeling of harmonics and three-phase imbalance as claimed in any one of claims 7 or 8, on which a computer program is stored, characterized in that: When the computer program is executed by a processor, the steps in the method according to any one of claims 1 to 6 are implemented.

Citation Information

Cited By

  • Low-voltage line insulation abnormity detection method and system based on intelligent fusion terminal

    CN121142246A