S-transform power quality disturbance identification method based on adaptive selection of regulation factors

By using the adaptive selection of adjustment factors and the improved Sparrow algorithm to optimize the support phase camera in the S transformation, the problem of low feature extraction accuracy and classification accuracy of power quality disturbance signals is solved, and higher recognition accuracy and noise immunity are achieved. , suitable for power quality disturbance signal identification in power systems.

CN114925732BActive Publication Date: 2024-09-10HEFEI UNIV OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210631276.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-06
Publication Date
2024-09-10
Estimated Expiration
2042-06-06

AI Technical Summary

Technical Problem

In the existing technology, the feature extraction accuracy of power quality disturbance signals is not high, and the recognition and classification accuracy is low. In particular, due to the improper selection of the adjustment factor in the S transform, the time-frequency resolution is fixed and cannot be flexibly adjusted, which affects the feature extraction of the disturbance signal. and classification accuracy.

Method used

The S transform method based on adaptive selection of adjustment factors is adopted, and the phasor machine is optimized through compressed sensing noise reduction processing and improved Sparrow algorithm to extract the characteristic curve and phasor of the power quality disturbance signal, and the S-shaped growth curve is used to best fit Adjust the factor, optimize the S matrix, and improve frequency domain smoothness and accuracy of parameter selection.

Benefits of technology

It improves the recognition and classification accuracy of power quality disturbance signals, enhances the anti-interference ability, reduces the detection error caused by the selection of adjustment factors, and improves the feature extraction accuracy and classification accuracy of disturbance signals, especially in noisy environments. High noise immunity and robustness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114925732B
    Figure CN114925732B
Patent Text Reader

Abstract

The present invention discloses an S-transformation power quality disturbance identification method based on adaptive selection of adjustment factors, comprising the following steps: firstly, power quality voltage signals are collected, and the collected power quality voltage signals are subjected to compressed sensing noise reduction processing; then, the voltage signals after noise reduction processing are processed by an improved S-transformation method to obtain an S-matrix, characteristic curves of each disturbance signal are extracted from the S-matrix, and each disturbance characteristic phasor is extracted from the characteristic curve, and added to the power quality disturbance phasor concentration; finally, the support phasor machine optimized by the improved sparrow algorithm is used to classify the extracted power quality disturbance characteristic values. The present application adopts the compressed sensing noise reduction theory to pre-process the disturbance signal, improve the anti-interference ability, optimize the entire S-matrix, increase the selection range of the adjustment factor in the S-transformation, minimize the detection error caused by the selection of the adjustment factor, and extract the characteristic quantity more accurately, thereby improving the recognition and classification accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of electrical performance testing and electrical fault detection, and in particular to an S-transformation power quality disturbance identification method based on adaptive selection of adjustment factors. Background Art

[0002] In recent years, with the grid connection of clean energy such as wind energy and solar energy, the use of a large number of sensitive power electronic equipment, and the connection of new energy vehicle charging piles to the grid, power quality problems such as voltage sag, voltage fluctuation, harmonics, and various composite disturbances have become more and more serious. The identification and classification of power quality disturbances is the premise of power quality management, so the identification and classification of power quality disturbances is crucial. The identification and classification process of power quality disturbances mainly includes two parts: signal detection and disturbance classification.

[0003] At present, the identification of power quality disturbances is generally based on time-frequency analysis methods, such as short-time Fourier transform, wavelet transform, S transform, and Hilbert-Huang transform, etc. Among them, although the short-time Fourier transform has the ability of time-frequency analysis, the shape and size of its window function are fixed, and it cannot capture the transient characteristics of the disturbance signal well; the wavelet transform has variable time-frequency resolution by introducing scale and translation factors, but it is sensitive to high-frequency noise and it is difficult to select the mother wavelet; the Hilbert-Huang transform is prone to endpoint effects and modal aliasing problems for transient oscillation-type power quality disturbances; the S transform introduces a Gaussian window whose width and frequency are inversely proportional to each other, and its time-frequency resolution is adaptively dependent on frequency rather than scale, but its window width-frequency is relatively fixed, and the time-frequency resolution cannot be flexibly adjusted according to the characteristics of the disturbance signal.

[0004] Commonly used perturbation classification methods include artificial neural networks, decision trees, support vector machines, etc. Artificial neural networks can solve nonlinear problems such as prediction and pattern recognition, and have good robustness and adaptability, but their classification accuracy is easily affected by network structure and noise content, and is not suitable for perturbation classification problems with high feature dimensions; decision trees have the advantages of simple structure, easy-to-understand classification rules, high classification efficiency and accuracy, but parameters need to be adjusted, and overfitting problems are prone to occur; support vector machines have the characteristics of simple calculation, strong method robustness and strong learning ability, and are more suitable for high-dimensional feature classification problems, but the selection of penalty factors and kernel parameters is crucial to their classification accuracy.

[0005] For example, a method for identifying power quality disturbances using time-domain compressed multi-resolution fast S transform feature extraction, which is disclosed in Chinese patent literature, has the announcement number CN107832777A, and includes power quality disturbance signal simulation, multi-resolution fast S transform processing of the disturbance signal, and on the premise of determining the characteristics, calculating the required retained information for the inverse transform results of the windowed Fourier transform of each main frequency point in the fast S transform process, constructing an intermediate matrix, extracting effective features from the intermediate matrix to construct a feature vector for classifier construction. The above method divides the disturbance signal frequency into three sections (the low frequency part is 1Hz to 100Hz; the medium frequency part is 101Hz to 700Hz; the high frequency part is 701Hz to fs / 2Hz), and uses different adjustment factors to extract features of the disturbance signal in the three frequency bands, and only extracts the feature information of specific frequency points. There are problems such as low accuracy in feature extraction of power quality disturbance signals and low accuracy in recognition and classification. Summary of the invention

[0006] The present invention aims to overcome / solve the problems of low accuracy in feature extraction of power quality disturbance signals and low accuracy in recognition and classification in the prior art, and provides an S-transform power quality disturbance recognition method based on adaptive selection of adjustment factors, which refines the frequency points of disturbance signals, matches the optimal adjustment factors for different frequency points, and then extracts features of disturbance signals, thereby improving recognition and classification accuracy.

[0007] To achieve the above object, the present invention adopts the following technical solutions:

[0008] An S-transform power quality disturbance identification method based on adaptive selection of adjustment factors is characterized by comprising the following steps:

[0009] Step S1: collecting power quality voltage signals, and performing compressed sensing noise reduction processing on the collected power quality voltage signals;

[0010] Step S2: Processing the voltage signal after noise reduction by an improved S transformation method to obtain an S matrix, extracting characteristic curves of each disturbance signal from the S matrix, and extracting each disturbance characteristic phasor from the characteristic curve, and adding them to the power quality disturbance phasor set;

[0011] Step S3: Use the support vector machine optimized by the improved sparrow algorithm to classify the extracted power quality disturbance characteristic values. This application uses the compressed sensing noise reduction theory to pre-process the disturbance signal to improve the anti-interference ability and thus improve the recognition and classification accuracy. The support vector machine Support Vector Machine (SVM) is a classifier.

[0012] Preferably, the step S1 of performing compressed sensing noise reduction processing on the collected power quality signal includes the following subdivision steps:

[0013] Step S11: collect the power quality disturbance voltage signal X=[x1 x2…x n ]∈R N×1 , perform matrix transformation:

[0014]

[0015] Where Ψ is the Fourier transform basis, is the equivalent representation of X on Ψ, N is the length of the collected power quality disturbance voltage signal;

[0016] Step S12: Construct a sparse cyclic measurement matrix Φ M×N , where M is the number of measurement points and N is the length of the collected power quality disturbance voltage signal;

[0017] Step S13: Obtain the measurement signal Y∈R M×1 :

[0018]

[0019] Among them, A is the sensing matrix, Ψ is the Fourier transform basis, X is the voltage signal, φ is the measurement matrix, and Q is a random number that obeys the normal distribution;

[0020] Step S14: Use the orthogonal matching pursuit algorithm to achieve reconstruction noise reduction and output the noise reduction signal

[0021] As a preference, the construction of the measurement matrix Φ in step S12 M×N , including the following subdivision steps:

[0022] Step S121: Construct a 1×N zero vector L and a diagonal matrix R N×N , the diagonal elements of R are randomly assigned to ±1; where N is the length of the voltage signal;

[0023] Step S122: randomly set the values ​​at K positions in the zero vector L to 1, to obtain a sparse vector L1; wherein K is the sparsity of the voltage signal on the sparse basis Ψ;

[0024] Step S123: Circularly right-shift the L1 vector by c bits to form a sparse circulant matrix H;

[0025] Step S124: Combine the H matrix with the diagonal matrix R N×N Multiply them together to get the sparse circulant matrix Φ M×N ,Right now:

[0026] Measurement matrix ΦM×N =L1R

[0027] Where L1=DF; D∈R M×N is a sampling matrix, which randomly selects m dimensions for matrix dimensionality reduction. It is a submatrix consisting of m rows randomly selected from the n-dimensional unit matrix; F∈R N×N is an orthogonal matrix.

[0028] Preferably, the orthogonal matching pursuit algorithm is used to implement reconstruction denoising in step S14, including the following subdivision steps: S141: the number of iterations t=1, the support index set Λ and the atom set A0 are empty sets, the initial residual r0=Y, and the residual r is calculated. t , Among them, Φ j is the jth column of matrix A; t is the column number of the tth iteration; |<r t ,Φ j >|To seek inner collection;

[0029] S142: Update index set Λ=Λ t-1 ∪λ t , Update the atomic set A t =A t ∪Φ λt ;

[0030] S143: Least squares calculation Among them, A t T is the matrix A t The transposed matrix of

[0031] S144: Update residual At the same time, update the number of iterations t=t+1;

[0032] S145: If the number of iterations t is less than K, execute step S141, otherwise execute step S146;

[0033] S146: Output the noise-reduced signal

[0034] Preferably, the step S2 of processing the voltage signal after noise reduction by using an improved S transform method specifically includes the following subdivision steps:

[0035] Noise reduction output signal The improved S transform is:

[0036]

[0037] in, is the noise reduction output signal; τ is the time shift factor; f corresponds to the signal frequency; i is the imaginary unit; q is the adjustment factor; let f→n / NT, τ→kT, then the improved S transform discrete form is:

[0038]

[0039] Where n, k are frequency control variables, T is the sampling time interval, N is the total number of sampling points, m is the shift control variable, k = 0, 1, ..., N-1;

[0040] The expression of energy concentration is:

[0041]

[0042] Select the optimal value q of each frequency band adjustment factor b The optimal value is q when M is maximum. b , we get q b Distribution, using S-shaped growth curve fitting q b Distribution;

[0043] Fitting q based on S-shaped growth curve b The formula is:

[0044]

[0045] In the formula, a is the vertical scaling factor; b is the horizontal scaling factor; ε is the vertical translation factor; k1 is the slope of the S-shaped growth curve; let f→n / NT, τ→kT, and improve the discrete form of the S transform according to the formula, and the discrete form of the S transform with adaptive selection of the adjustment factor can be obtained as follows:

[0046]

[0047] In the formula, is the noise reduction output signal, k,m,n=1,2,…,N.

[0048] Preferably, the improved sparrow algorithm described in step S3 includes the following improvement process:

[0049] A mathematical model of sparrow population foraging is established. A population consisting of n sparrows can be expressed as:

[0050]

[0051] The fitness of the initial sparrow population is:

[0052]

[0053] Among them, x n,d Indicates that the nth sparrow is in the dth dimension; d represents the number of problems to be optimized; FX represents the fitness value, and f represents the individual fitness value of the sparrow;

[0054] The sparrow population is initialized using logical chaotic mapping, and the logical mapping expression is:

[0055] Z n+1 =kZ n (1-Z n );

[0056] Among them, Z n ∈(0,1); k∈(0,4) is the logical chaos parameter;

[0057] When the sparrow population begins to forage, the positions of the population detector, competitor, and warning detector are updated as follows:

[0058] The formula for updating the discoverer's position is:

[0059]

[0060] Among them, t is the current iteration number; i m is the maximum number of iterations; α∈(0,1] is a random number; R∈[0,1] represents the warning value; Sa∈[0.5,1] is the safety value; Q is a random number that obeys the normal distribution; L is a 1×d matrix with all elements being 1; S is the random step length of the Levy flight; ζ is the step length control parameter; is the current location of the finder; is the best position for the current iteration;

[0061] The competitor position update formula is:

[0062]

[0063] Among them, X W Indicates the position with the lowest population fitness; X b Indicates the global best position of the current discoverer; A is a 1×d matrix, and each element in the matrix is ​​randomly assigned 1 or -1;

[0064] The update formula of the warning position is:

[0065]

[0066] Among them, β is the step-size control parameter of a normal distribution with mean 0 and variance 1; ρ∈[-1,1] is a random number; f i is the fitness of the i-th sparrow, f b and f wThey are the global optimal fitness value and the global worst fitness value respectively. Aiming at the problem that the population diversity of the original sparrow algorithm is reduced and it is easy to fall into the local extreme value in the later stage of population iteration, the logical chaos mapping is introduced in the population initialization stage, and the Levy flight strategy is introduced in the position update of the discoverer and the competitor, which solves the shortcomings of the population diversity reduction and easy to fall into the local extreme value.

[0067] Preferably, the support phasor machine optimized by the improved sparrow algorithm in step S3 includes optimizing the penalty factor C and the kernel function parameter σ of the vector machine classification tree by using the improved sparrow algorithm, thereby constructing the vector machine classification tree optimized by the improved sparrow algorithm.

[0068] Preferably, the step S3 of using the improved sparrow algorithm to optimize the supporting phasor machine to classify the extracted power quality disturbance characteristic values ​​comprises the following subdivision steps:

[0069] Step S31: first input a power quality disturbance signal feature vector set, and use α% of it as a training set and (100-α)% as a test set;

[0070] Step S32: Set the value range of the penalty factor C and the kernel function parameter σ of the phasor support machine, use the logical chaos map to initialize the sparrow population, set the proportion of discoverers to β%, the proportion of competitors to (1-β)%, the proportion of early warning to θ%, the population size n, the number of iterations i m , warning value R; the individual position of the sparrow population is composed of C and σ; where 20≤θ≤30; n is not less than 20, i m Not less than 10, 0.5≤R≤0.8;

[0071] Step S33: The supporting phasor machine model learns the training set according to the initial penalty factor C and the kernel function parameter σ, and calculates the fitness value of each sparrow in the population to find the global optimal fitness f b And the global worst fitness f w ;

[0072] Step S34: using the Levy flight strategy to enhance the search capabilities of the discoverer and competitor in the population, updating the discoverer position according to the discoverer position update formula; the remaining sparrows are used as competitors, and their positions are updated according to the competitor position update formula, and θ% of sparrows are randomly selected as early warning; their positions are updated according to the early warning position update formula, and the fitness value of the sparrow individual is calculated at the new position, and compared with the optimal fitness value of the previous iteration, if the new fitness value is greater than the optimal fitness value, it is replaced, otherwise it is retained;

[0073] Step S35: If the current number of iterations is greater than the maximum number of iterations and meets the solution accuracy requirement, the algorithm terminates and outputs the optimal parameters C and σ of the supporting phasor machine model; otherwise, it returns to step S33 and iterates again;

[0074] Step S36: Use the optimal parameters C and σ to support the phasor classification model, and use the trained phasor classification model to classify the test set and output the power quality disturbance type. Increase the selection range of the adjustment factor in the S transformation, minimize the detection error caused by the selection of the adjustment factor, select the best adjustment factor according to the energy concentration maximization rule, and then use the S-shaped growth curve to fit the best adjustment factor to obtain the adaptive adjustment factor S transformation, optimize the entire S matrix, make the frequency domain smoother, make parameter selection more convenient, and extract the feature more accurately.

[0075] Preferably, the characteristic curves of each disturbance signal in step S2 include a fundamental frequency time amplitude curve, a frequency amplitude curve and a standard deviation curve of the S matrix.

[0076] Preferably, the disturbance characteristic phasors include the following characteristic values: the average value F1 of the fundamental frequency time amplitude curve, the maximum value F2 of the amplitude-time curve, the maximum value F3 of the amplitude-time curve, the average value F4 of the third harmonic, the average value F5 of the fifth harmonic, the average value F6 of the seventh harmonic, the standard deviation F7 of the row vector of the S matrix, the standard deviation F8 of the column vector of the S matrix, the sum of the high-frequency contour values ​​F9, the number of peaks F10 of the frequency-time curve, the maximum normalized amplitude F11 of each column of the S matrix, the skewness F12, and the kurtosis F13.

[0077] Therefore, the present invention has the following beneficial effects: (1) The present application adopts the compressed sensing noise reduction theory to pre-process the disturbance signal, has a high anti-interference ability, increases the selection range of the adjustment factor in the S transform, and minimizes the detection error caused by the selection of the adjustment factor.

[0078] (2) According to the energy concentration maximization rule, the optimal adjustment factor is selected, and then the S-shaped growth curve is used to fit the optimal adjustment factor to obtain the adaptive adjustment factor S transformation, which optimizes the entire S matrix, makes the frequency domain smoother, makes parameter selection more convenient, and makes feature extraction more accurate.

[0079] (3) In order to solve the problem that the population diversity of the original sparrow algorithm decreases and it is easy to fall into local extreme values ​​in the later stage of population iteration, logical chaos mapping is introduced in the population initialization stage, and the Levy flight strategy is introduced in the position update of the discoverer and competitor, which solves the shortcomings of reduced population diversity and easy to fall into local extreme values. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] Figure 1It is a flow chart of an S-transformation power quality disturbance identification method based on adaptive selection of adjustment factors according to an embodiment of the present invention.

[0081] Figure 2 It is a fitting curve diagram of the optimal adjustment factor and the S-shaped growth curve in one embodiment of the present invention.

[0082] Figure 3 It is a characteristic curve diagram of extracting S disturbance signals from the S matrix in one embodiment of the present invention.

[0083] Figure 4 It is a flow chart of an improved sparrow algorithm in one embodiment of the present invention.

[0084] Figure 5 It is a SVM screening flow chart of the improved sparrow algorithm in one embodiment of the present invention.

[0085] Figure 6 It is a schematic diagram of classification results in a noise-free environment based on the adaptive selection of the adjustment factor of S transform in one embodiment of the present invention. DETAILED DESCRIPTION

[0086] The present invention is further described below in conjunction with the accompanying drawings and specific embodiments.

[0087] Example:

[0088] An S-transform power quality disturbance identification method based on adaptive selection of adjustment factors, such as Figure 1 As shown in the figure, the SVM is the abbreviation of Support Vector Machine, which is a classifier. It includes the following steps:

[0089] Step S1: power quality voltage signal acquisition, and subjecting the acquired power quality voltage signal to compressed sensing noise reduction processing; the power quality voltage signal acquisition includes: according to the IEEE-1159 power quality disturbance parameter standard, 17 common disturbance signal models are established: standard sinusoidal signal (C1), voltage sag (C2), voltage swell (C3), transient oscillation (C4), harmonic signal (C5), voltage fluctuation (C6), voltage interruption (C7) and instantaneous pulse (C8) 7 single disturbance signals, and their superposition of harmonic + voltage sag (C9), harmonic + voltage swell (C10), harmonic + voltage interruption (C11), harmonic + Nine composite disturbance signals are included, including voltage fluctuation (C12), harmonic + transient oscillation (C13), transient oscillation + voltage swell (C14), transient oscillation + voltage fluctuation (C15), harmonic + transient oscillation + voltage swell (C16) and voltage fluctuation + transient oscillation + voltage interruption (C17). The disturbance signal model is simulated by MATLAB, with a signal fundamental frequency of 50 Hz, a sampling frequency of 3.2 kHz, a signal sample length of 10 cycles, 200 sampling points in each cycle, and a total of 2000 sampling points. 500 disturbances are randomly generated for each type, 400 of which are used as training sets and 100 as test sets. The voltage signal of the power quality disturbance signal is collected by PQ-BOX 300 power quality monitor.

[0090] The compressed sensing noise reduction process of the collected power quality signal includes the following subdivision steps:

[0091] Step S11: collect the power quality disturbance voltage signal X=[x1 x2…x n ]∈R N×1 , perform matrix transformation:

[0092]

[0093] Where Ψ is the Fourier transform basis, is the equivalent representation of X on Ψ, N is the length of the collected power quality disturbance voltage signal;

[0094] Step S12: Construct a sparse cyclic measurement matrix Φ M×N , where M is the number of measurement points and N is the length of the collected power quality disturbance voltage signal;

[0095] The construction of the measurement matrix Φ M×N , including the following subdivision steps:

[0096] Step S121: Construct a 1×N zero vector L and a diagonal matrix R N×N , the diagonal elements of R are randomly assigned to ±1; where N is the length of the voltage signal;

[0097] Step S122: randomly set the values ​​at K positions in the zero vector L to 1, to obtain a sparse vector L1; wherein K is the sparsity of the voltage signal on the sparse basis Ψ;

[0098] Step S123: Circularly right-shift the L1 vector by c bits to form a sparse circulant matrix H;

[0099] Step S124: Combine the H matrix with the diagonal matrix R N×N Multiply them together to get the sparse circulant matrix Φ M×N ,Right now:

[0100] Measurement matrix Φ M×N =L1R

[0101] Where L1=DF; D∈R M×N is a sampling matrix, which randomly selects m dimensions for matrix dimensionality reduction. It is a submatrix consisting of m rows randomly selected from the n-dimensional unit matrix; F∈R N×N is an orthogonal matrix.

[0102] Step S13: Obtain the measurement signal Y∈R M×1 :

[0103]

[0104] Among them, A is the sensing matrix, Ψ is the Fourier transform basis, X is the voltage signal, φ is the measurement matrix, and Q is a random number that obeys the normal distribution;

[0105] Step S14: Use the orthogonal matching pursuit algorithm to achieve reconstruction noise reduction and output the noise reduction signal

[0106] The orthogonal matching pursuit algorithm is used to realize reconstruction and noise reduction, including the following subdivision steps:

[0107] S141: Iteration number t = 1, support index set Λ and atom set A0 are empty sets, initial residual r0 = Y, calculate residual r t , Among them, Φ j is the jth column of matrix A; t is the column number of the tth iteration; |<r t ,Φ j >|To seek inner collection;

[0108] S142: Update index set Λ=Λ t-1 ∪λ t , Update the atomic set A t =A t ∪Φ λt ;

[0109] S143: Least squares calculation Among them, A t T is the matrix A t The transposed matrix of

[0110] S144: Update residual At the same time, update the number of iterations t=t+1;

[0111] S145: If the number of iterations t is less than K, execute step S141, otherwise execute step S146;

[0112] S146: Output the noise-reduced signal

[0113] Step S2: The voltage signal after noise reduction is processed by an improved S transformation method to obtain an S matrix, and the characteristic curve of each disturbance signal is extracted from the S matrix, and each disturbance characteristic phasor is extracted from the characteristic curve, and added to the power quality disturbance phasor set; the characteristic curve of each disturbance signal includes the fundamental frequency time amplitude curve, frequency amplitude curve and standard deviation curve of the S matrix, such as Figure 3 The figure shows the voltage fluctuation + transient oscillation + voltage interruption characteristic curve extracted by adaptive adjustment factor S transformation. Each disturbance characteristic phasor includes the following characteristic values: the average value F1 of the fundamental frequency time amplitude curve, the maximum value F2 of the amplitude-time curve, the maximum value F3 of the amplitude-time curve, the average value F4 of the third harmonic, the average value F5 of the fifth harmonic, the average value F6 of the seventh harmonic, the standard deviation F7 of the row vector of the S matrix, the standard deviation F8 of the column vector of the S matrix, the sum of the high-frequency contour values ​​F9, the number of peaks of the frequency-time curve F10, the maximum normalized amplitude of each column of the S matrix F11, the skewness F12, and the kurtosis F13.

[0114] The above-mentioned processing of the voltage signal after noise reduction by using the improved S-transformation method specifically includes the following subdivision steps:

[0115] Noise reduction output signal The improved S transform is:

[0116]

[0117] in, is the noise reduction output signal; τ is the time shift factor; f corresponds to the signal frequency; i is the imaginary unit; q is the adjustment factor; let f→n / NT, τ→kT, then the improved S transform discrete form is:

[0118]

[0119] Where n, k are frequency control variables, T is the sampling time interval, N is the total number of sampling points, m is the shift control variable, k = 0, 1, ..., N-1;

[0120] The expression of energy concentration is:

[0121]

[0122] Select the optimal value q of each frequency band adjustment factor b The optimal value is q when M is maximum. b , we get q b Distribution, using S-shaped growth curve fitting q b Distribution;

[0123] Fitting q based on S-shaped growth curve b The formula is:

[0124]

[0125] In the formula, a is the vertical scaling factor; b is the horizontal scaling factor; ε is the vertical translation factor; k1 is the slope of the S-shaped growth curve; let f→n / NT, τ→kT, and improve the discrete form of the S transform according to the formula, and the discrete form of the S transform with adaptive selection of the adjustment factor can be obtained as follows:

[0126]

[0127] In the formula, is the denoised output signal, k, m, n = 1, 2, ..., N. The parameters of the adaptive adjustment factor S transformation are: vertical scaling factor a = 7.14, horizontal scaling factor b = 26.1, vertical translation factor ε = 0.15, and the slope of the S-shaped growth curve k = 0.46. Figure 2 Shown is the best regulatory factor and the S-shaped growth curve fitting curve.

[0128] Step S3: using the support phasor machine optimized by the improved sparrow algorithm to classify the extracted power quality disturbance characteristic values.

[0129] The improved sparrow algorithm includes the following improvement process: Figure 4 As shown:

[0130] A mathematical model of sparrow population foraging is established. A population consisting of n sparrows can be expressed as:

[0131]

[0132] The fitness of the initial sparrow population is:

[0133]

[0134] Among them, x n,d Indicates that the nth sparrow is in the dth dimension; d represents the number of problems to be optimized; FX represents the fitness value, and f represents the individual fitness value of the sparrow;

[0135] The sparrow population is initialized using logical chaotic mapping, and the logical mapping expression is:

[0136] Z n+1 =kZ n (1-Z n );

[0137] Among them, Z n ∈(0,1); k∈(0,4) is the logical chaos parameter;

[0138] When the sparrow population begins to forage, the positions of the population detector, competitor, and warning detector are updated as follows:

[0139] The formula for updating the discoverer's position is:

[0140]

[0141] Among them, t is the current iteration number; i m is the maximum number of iterations; α∈(0,1] is a random number; R∈[0,1] represents the warning value; Sa∈[0.5,1] is the safety value; Q is a random number that obeys the normal distribution; L is a 1×d matrix with all elements being 1; S is the random step length of the Levy flight; ζ is the step length control parameter; is the current location of the finder; is the best position for the current iteration;

[0142] The competitor position update formula is:

[0143]

[0144] Among them, X W Indicates the position with the lowest population fitness; X b Indicates the global best position of the current discoverer; A is a 1×d matrix, and each element in the matrix is ​​randomly assigned 1 or -1;

[0145] The update formula of the warning position is:

[0146]

[0147] Among them, β is the step-size control parameter of a normal distribution with mean 0 and variance 1; ρ∈[-1,1] is a random number; f i is the fitness of the i-th sparrow, f b and f wThey are the global optimal fitness value and the global worst fitness value respectively. Aiming at the problem that the population diversity of the original sparrow algorithm is reduced and it is easy to fall into the local extreme value in the later stage of population iteration, the logical chaos mapping is introduced in the population initialization stage, and the Levy flight strategy is introduced in the position update of the discoverer and the competitor, which solves the shortcomings of the population diversity reduction and easy to fall into the local extreme value.

[0148] The support phasor machine optimized by the improved sparrow algorithm includes optimizing the penalty factor C and the kernel function parameter σ of the vector machine classification tree by using the improved sparrow algorithm, so as to construct the vector machine classification tree optimized by the improved sparrow algorithm.

[0149] The method of using the improved sparrow algorithm to optimize the supporting phasor machine to classify the extracted power quality disturbance characteristic values ​​includes the following subdivision steps:

[0150] Step S31: first input a power quality disturbance signal feature vector set, and use 80% of it as a training set and 20% as a test set;

[0151] Step S32: Set the value range of the penalty factor C and the kernel function parameter σ of the phasor support machine, use the logical chaos map to initialize the sparrow population, set the proportion of discoverers to 80%, the proportion of competitors to 20%, the proportion of early warning to 20%, the population size n=20, and the number of iterations i m =10, warning value R = 0.6; the individual positions of the sparrow population are composed of C and σ;

[0152] Step S33: The supporting phasor machine model learns the training set according to the initial penalty factor C and the kernel function parameter σ, and calculates the fitness value of each sparrow in the population to find the global optimal fitness f b And the global worst fitness f w ;

[0153] Step S34: using the Levy flight strategy to enhance the search capabilities of the discoverers and competitors in the population, updating the discoverer position according to the discoverer position update formula; the remaining sparrows are used as competitors, and their positions are updated according to the competitor position update formula, and 20% of the sparrows are randomly selected as early warning; their positions are updated according to the early warning position update formula, and the fitness value of the sparrow individual is calculated at the new position and compared with the optimal fitness value of the previous iteration. If the new fitness value is greater than the optimal fitness value, it is replaced, otherwise it is retained;

[0154] Step S35: If the current number of iterations is greater than the maximum number of iterations and meets the solution accuracy requirement, the algorithm terminates and outputs the optimal parameters C and σ of the supporting phasor machine model; otherwise, it returns to step S33 and iterates again;

[0155] Step S36: Use the optimal parameters C and σ to support the phasor machine classification model, and use the trained phasor machine classification model to classify the test set and output the power quality disturbance type.

[0156] Using the above steps, the optimal parameters of the SVM classifier are C = 325.5183 and σ = 112.7736. Figure 6 The classification results of the present application in a noise-free environment are shown, and it can be seen that the classification accuracy of the recognition method proposed by the present invention is as high as 99.82%. In a single disturbance, only one voltage interruption signal C7 is misclassified as a voltage sag signal C2 type, and in a compound disturbance, only two voltage fluctuations + transient oscillations + voltage interruption signals C17 are misclassified as voltage sag signals C2 type. This is because the definitions of voltage sag and voltage interruption are similar, and the disturbance characteristics are similar, so the classification recognition rate is not high, resulting in individual signals being difficult to distinguish.

[0157] In order to better fit the actual project, Gaussian white noise with signal-to-noise ratios of 15dB, 20dB, and 30dB is added to the power quality disturbance signal, and 500 disturbances of each type are randomly generated, of which 400 are used as training sets and 100 are used as test sets. Table 1 shows the recognition and classification accuracy under different signal-to-noise ratios. It can be seen that with the increase of noise, the classification accuracy of various disturbance signals decreases. In a 15dB high noise environment, the classification accuracy can still reach 97.94%, which shows that the recognition method proposed in the present invention has high recognition accuracy and anti-interference ability. Compared with the SVM optimized by the genetic algorithm GA, the improved sparrow algorithm of the present invention has a better optimization effect on the penalty factor C and the kernel function parameter σ of the SVM, and the classification accuracy is better than the SVM of the genetic algorithm in each noise environment.

[0158] Table 1 SVM classification accuracy under different signal-to-noise ratios

[0159]

[0160]

[0161] At present, there are various methods for identifying and classifying power quality disturbance signals. Now, in a noise environment of 20 and 30 dB, the recognition and classification effects of the present invention and other methods on single disturbances and compound disturbances are compared, and the comparison results are shown in Table 2. By comparison, it can be seen that the average classification accuracy of the present invention is the highest, indicating that the present invention has better noise resistance and robustness.

[0162] Table 2 Average classification accuracy of each method under different signal-to-noise ratios

[0163]

[0164] In summary, the present invention aims at the problem that the feature extraction accuracy of power quality disturbance signals in the current power system is not high and the recognition and classification accuracy is low, and provides an S-transformation power quality disturbance identification method based on adaptive selection of adjustment factors. The core of the present invention is to perform compressed sensing preprocessing on the collected voltage signal, increase the selection range of the S-transformation adjustment factor, select the best adjustment factor for each frequency band according to the energy concentration precision maximization rule, use the S-type growth curve to fit the best adjustment factor distribution to obtain the adaptive adjustment factor S-transformation, and then extract the corresponding features through the adaptive adjustment factor S-transformation, and finally improve the original sparrow algorithm, use the improved sparrow algorithm to optimize the parameters of SVM, and finally complete the disturbance identification and classification. The present invention can effectively improve the accuracy of power quality disturbance signal identification and classification, and has strong noise resistance and robustness.

[0165] The specific embodiments described herein are merely examples of the spirit of the present invention. Those skilled in the art may make various modifications or additions to the specific embodiments described or replace them in similar ways, but they will not deviate from the spirit of the present invention or exceed the scope defined by the appended claims.

[0166] Although this article uses more terms such as S-transform, power quality disturbance feature extraction, improved sparrow algorithm, supporting phasor machine, characteristic phasor set, etc., it does not exclude the possibility of using other terms. These terms are used only to more conveniently describe and explain the essence of the present invention; interpreting them as any additional limitation is contrary to the spirit of the present invention.

Claims

1. A method for identifying power quality disturbances based on adaptive selection of adjustment factors using S-transformation. It is characterized in that The steps include: Step S1: collecting power quality voltage signals, and performing compressed sensing noise reduction processing on the collected power quality voltage signals; Step S2: Processing the voltage signal after noise reduction by an improved S transformation method to obtain an S matrix, extracting characteristic curves of each disturbance signal from the S matrix, and extracting each disturbance characteristic phasor from the characteristic curve, and adding them to the power quality disturbance phasor set; The step S2 of processing the voltage signal after noise reduction by using the improved S transformation method specifically includes the following subdivision steps: Noise reduction output signal The improved S transform is: in, is the noise reduction output signal; τ is the time shift factor; f corresponds to the signal frequency; i is the imaginary unit; q is the adjustment factor; Let f→n / NT, τ→kT, then the improved S transform discrete form is: Where n, k are frequency control variables, T is the sampling time interval, N is the total number of sampling points, m is the shift control variable, k = 0, 1, ..., N-1; The expression of energy concentration is: Select the best value for each frequency band adjustment factor qb The optimal value is when M is the largest. qb ,get qb Distribution, using S-shaped growth curve fitting qb Distribution; Based on S-shaped growth curve fitting qb The formula is: Where a is the vertical scaling factor; b is the horizontal scaling factor; ε is the vertical translation factor; k 1 is the slope of the S-shaped growth curve; let f→n / NT, τ→kT, and improve the discrete form of the S transform according to the formula, and the discrete form of the S transform with adaptive selection of the adjustment factor can be obtained as follows: In the formula, is the noise reduction output signal, k,m,n=1,2,…,N; Step S3: using the support phasor optimized by the improved sparrow algorithm to classify the extracted power quality disturbance characteristic values; the improved sparrow algorithm described in step S3 includes the following improvement process: A mathematical model of sparrow population foraging is established. A population consisting of n sparrows can be expressed as: The fitness of the initial sparrow population is: Among them, x n,d Indicates that the nth sparrow is in the dth dimension; d represents the number of problems to be optimized; F X represents the fitness value, and f represents the individual fitness value of the sparrow; The sparrow population is initialized using logical chaotic mapping, and the logical mapping expression is: Z n+1 =kZ n (1-Z n ); Among them, Z n ∈(0,1); k∈(0,4) is the logical chaos parameter; When the sparrow population begins to forage, the positions of the population detector, competitor, and warning detector are updated as follows: The formula for updating the discoverer's position is: Among them, t is the current iteration number; i m is the maximum number of iterations; α∈(0,1] is a random number; R∈[0,1] represents the warning value; Sa∈[0.5,1] is the safety value; Q is a random number that obeys the normal distribution; L is a 1×d matrix with all elements being 1; S is the random step length of the Levy flight; ζ is the step length control parameter; is the current location of the finder; is the best position for the current iteration; The competitor position update formula is: Among them, X W Indicates the position with the lowest population fitness; X b Indicates the global best position of the current discoverer; A is a 1×d matrix, and each element in the matrix is ​​randomly assigned 1 or -1; The update formula of the warning position is: Among them, β is the step-size control parameter of a normal distribution with mean 0 and variance 1; ρ∈[-1,1] is a random number; f i is the fitness of the i-th sparrow, f b and f w are the global optimal fitness value and the global worst fitness value respectively.

2. According to claim 1, the S-transform power quality disturbance identification method based on adaptive selection of adjustment factors, It is characterized in that The compressed sensing noise reduction process of the collected power quality signal in step S1 includes the following subdivision steps: Step S11: collect the power quality disturbance voltage signal X=[x 1 x 2 … x n ]∈R N×1 , perform matrix transformation: Where Ψ is the Fourier transform basis, is the equivalent representation of X on Ψ, N is the length of the collected power quality disturbance voltage signal; Step S12: Construct a sparse cyclic measurement matrix Φ M×N , where M is the number of measurement points and N is the length of the collected power quality disturbance voltage signal; Step S13: Obtain the measurement signal Y∈R M×1 : Among them, A is the sensing matrix, Ψ is the Fourier transform basis, X is the voltage signal, φ is the measurement matrix, and Q is a random number that obeys the normal distribution; Step S14: Use the orthogonal matching pursuit algorithm to achieve reconstruction noise reduction and output the noise reduction signal 3. The S-transform power quality disturbance identification method based on adaptive selection of adjustment factors according to claim 2, It is characterized in that Step S12 describes the construction of the measurement matrix Φ M×N , including the following subdivision steps: Step S121: Construct a 1×N zero vector L and a diagonal matrix R N×N , the diagonal elements of R are randomly assigned to ±1; where N is the length of the voltage signal; Step S122: Randomly set the values ​​at K positions in the zero vector L to 1 to obtain a sparse vector L 1 ; Where K is the sparsity of the voltage signal on the sparse basis Ψ; Step S123: L 1 The vector is circularly shifted right by c positions to form a sparse circulant matrix H; Step S124: Combine the H matrix with the diagonal matrix R N×N Multiply them together to get the sparse circulant matrix Φ M×N ,Right now: Measurement matrix Φ M×N =L 1 R Among them, L 1 =DF;D∈R M×N is a sampling matrix, which randomly selects m dimensions for matrix dimensionality reduction. It is a submatrix consisting of m rows randomly selected from the n-dimensional unit matrix; F∈R N×N is an orthogonal matrix.

4. The S-transform power quality disturbance identification method based on adaptive selection of adjustment factors according to claim 3, It is characterized in that The orthogonal matching pursuit algorithm is used to implement reconstruction denoising in step S14, and includes the following subdivision steps: S141: Iteration number t = 1, support index set Λ and atom set A0 are empty sets, initial residual r0 = Y, calculate residual r t , Among them, Φ j is the jth column of matrix A; t is the column number of the tth iteration; |<r t ,Φ j >|To seek inner collection; S142: Update index set Λ=Λ t-1 ∪λ t , Update the atomic set A t =A t ∪Φ λt ; S143: Least squares calculation Among them, A t T is the matrix A t The transposed matrix of S144: Update residual At the same time, update the number of iterations t=t+1; S145: If the number of iterations t is less than K, execute step S141, otherwise execute step S146; S146: Output the noise-reduced signal 5. The S-transform power quality disturbance identification method based on adaptive selection of adjustment factors according to claim 1, It is characterized in that The support phasor machine optimized by the improved sparrow algorithm in step S3 includes optimizing the penalty factor C and the kernel function parameter σ of the vector machine classification tree by using the improved sparrow algorithm, thereby constructing the vector machine classification tree optimized by the improved sparrow algorithm.

6. The S-transform power quality disturbance identification method based on adaptive selection of adjustment factors according to claim 5, It is characterized in that The step S3 described in which the support phasor machine optimized by the improved sparrow algorithm is used to classify the extracted power quality disturbance characteristic values ​​includes the following subdivision steps: Step S31: first input a power quality disturbance signal feature vector set, and use α% of it as a training set and (100-α)% as a test set; Step S32: Set the value range of the penalty factor C and the kernel function parameter σ of the phasor support machine, use the logical chaos map to initialize the sparrow population, set the proportion of discoverers to β%, the proportion of competitors to (1-β)%, the proportion of early warning to θ%, the population size n, the number of iterations i m , warning value R; the individual position of the sparrow population is composed of C and σ; where 20≤θ≤30; n is not less than 20, i m Not less than 10, 0.5≤R≤0.8; Step S33: The supporting phasor machine model learns the training set according to the initial penalty factor C and the kernel function parameter σ, and calculates the fitness value of each sparrow in the population to find the global optimal fitness f b And the global worst fitness f w ; Step S34: using the Levy flight strategy to enhance the search capabilities of the discoverer and competitor in the population, updating the discoverer position according to the discoverer position update formula; the remaining sparrows are used as competitors, and their positions are updated according to the competitor position update formula, and θ% of sparrows are randomly selected as early warning; their positions are updated according to the early warning position update formula, and the fitness value of the sparrow individual is calculated at the new position, and compared with the optimal fitness value of the previous iteration, if the new fitness value is greater than the optimal fitness value, it is replaced, otherwise it is retained; Step S35: If the current number of iterations is greater than the maximum number of iterations and meets the solution accuracy requirement, the algorithm terminates and outputs the optimal parameters C and σ of the supporting phasor machine model; otherwise, it returns to step S33 and iterates again; Step S36: Use the optimal parameters C and σ to support the phasor machine classification model, and use the trained phasor machine classification model to classify the test set and output the power quality disturbance type.

7. According to claim 6, It is characterized in that The characteristic curves of each disturbance signal in step S2 include a fundamental frequency time amplitude curve, a frequency amplitude curve and a standard deviation curve of the S matrix.

8. According to claim 7, It is characterized in that The disturbance characteristic phasors include the following characteristic values: the average value F1 of the fundamental frequency time amplitude curve, the maximum value F2 of the amplitude-time curve, the maximum value F3 of the amplitude-time curve, the average value F4 of the third harmonic, the average value F5 of the fifth harmonic, the average value F6 of the seventh harmonic, the standard deviation F7 of the row vector of the S matrix, the standard deviation F8 of the column vector of the S matrix, the sum of the high-frequency contour values ​​F9, the number of peaks of the frequency-time curve F10, the maximum normalized amplitude of each column of the S matrix F11, the skewness F12, and the kurtosis F13.