Identification and detection algorithm of electric energy disturbance in microgrid based on wavelet analysis and neural network

In the presence of power disturbance, the test accuracy of power is not good, in order to improve the performance of power testing, it is necessary to carry out the power disturbance detection design. A power disturbance detection algorithm based on wavelet analysis and neural network is proposed. The time domain and frequency domain decomposition are used to decompose the characteristic of the power disturbance signal, and the wavelet analysis method is used to improve the adaptive focusing performance of the power disturbance signal. The one-dimensional power disturbance function is mapped to the two-dimensional function of time scale and time shift by continuous wavelet transform, and the higher-order spectral characteristic quantity of the power disturbance signal is extracted, and the extracted characteristic quantity is automatically classified by neural network. The optimal identification and detection of power disturbance are realized. The simulation results show that the algorithm has higher accuracy and higher recognition ability, which improves the accurate probability of power disturbance detection and the anti-disturbance ability of power test.

detection method of power disturbance. It has great significance in power output measurement and power dispatch management [7].
Traditionally, there are time domain analysis, frequency domain analysis, time-frequency distribution feature detection method, statistical feature analysis method and high-order spectral feature extraction method for power disturbance detection [8,9]. Combined with the method of extracting impulse response of time-frequency pulse, the signal testing is realized, and the performance of signal detection is improved, and some research results are obtained. Among them, in reference [10], a power disturbance detection technique based on adaptive lifting wavelet transform is proposed, which uses time-domain and frequency-domain decomposition to decompose the signal characteristic [11,12]. Signal detection and output testing of power disturbance are realized by using high resolution echo detection technology, but the anti-jamming ability and signal to noise ratio of signal output are not strong [13]. An energy disturbance signal detection technique based on energy spectral density function feature clustering is proposed [14]. The method of information fusion is used to detect the wideband feature of the signal and to realize the weak correlation feature test and signal detection of the power disturbance signal. However, this method is greatly influenced by Nyquist sampling time interval, and the accuracy of detecting power disturbance with high power interference is not high [15].
In order to solve the above problems, this paper proposes a power disturbance detection algorithm based on wavelet analysis and neural network [16]. The time domain and frequency domain decomposition are used to decompose the characteristic of the power disturbance signal, and the wavelet analysis method is used to improve the adaptive focusing performance of the power disturbance signal [17,18]. The one-dimensional power disturbance function is mapped to the two-dimensional function of time scale and time shift by continuous wavelet transform, and the higher-order spectral characteristic quantity of the power disturbance signal is extracted, and the extracted characteristic quantity is automatically classified by neural network [19]. The optimal identification and detection of power disturbance are realized. Finally, a simulation experiment is carried out to demonstrate the superior performance of the proposed method in improving the decomposition power of the energy characteristic of power disturbance detection [20].
The specific contributions of this paper include: 1. A power interference detection algorithm based on wavelet analysis and neural network is proposed. 2. Use time domain and frequency domain decomposition to decompose the characteristics of power interference signals, and use wavelet analysis method to improve the adaptive focusing performance of power interference signals. 3. The one-dimensional power interference function is mapped to the two-dimensional function of time scale and time shift through continuous wavelet transform, and the high-order spectral feature quantity of the power interference signal is extracted, and the extracted feature quantity is automatically classified. 4. Realize the best identification and detection of power interference.
The rest of this paper is organized as follows. Section 2 discusses Power disturbance signal model and characteristic decomposition, followed by the methods is discussed in Sect. 3. The experiment is discussed in Sect. 4. Section 5 concludes the paper with summary and future research directions.

Power disturbance signal model
In order to detect and identify the power disturbance accurately [21], the signal model should be constructed first, and a wideband echo model is given as: , which is called time scale factor, which is called scale. τ = 2R/c , it represents the expansion and expansion of power disturbance signal. R is the radial distance between the power output node and the receiving node, √ s is the normalized factor [22]. The one-dimensional function of power disturbance is mapped to the two-dimensional function of time scale a and time shift b by continuous wavelet transform. The square integrable function y(t) is used for the continuous wavelet transform, the mother wavelet ψ(t) is obtained [23].
By the strict periodic frequency domain decomposition [24], the time domain and frequency domain are combined to obtain the frequency domain characteristic quantity of the power disturbance signal: In which, U (a, b) is the affine group unitary transformation for the mother wavelet [25], and the factor 1/ √ |a| ensures the energy normalization of the unitary transformation.

Characteristic decomposition of power disturbance signals
Time domain and frequency domain decomposition are used to decompose the characteristic of power disturbance signal, and wavelet analysis method is used to improve the adaptive focusing performance of power disturbance signal [26]. The power disturbance f (t) is taken as the mother wavelet function ψ(t) , and the variables are replaced, a = 1/s , b = τ , rewritten formula (3): Formula (4) clearly shows that the power disturbance model is closely related to the wavelet transform. If the power disturbance signal is taken as the mother wavelet function, the wavelet transform has distinct physical meaning and is a natural mathematical tool for wideband signal processing [27,28]. The linear time-frequency representation model of power disturbance signal is obtained as follows: In which, x(t) denotes the time-frequency joint distribution characteristic function of the signal, and α is the time-window function [29].

Wavelet analysis of power disturbance
Based on the characteristic decomposition of power disturbance signal in time domain and frequency domain, the optimal detection algorithm of power disturbance is designed. In this paper, the power disturbance identification and detection algorithm based on wavelet analysis and neural network is proposed. Combined with wavelet analysis method to improve the adaptive focusing performance of power disturbance signal, the one-dimensional power disturbance function is mapped to twodimensional function of time scale and time shift by continuous wavelet transform, and the high power disturbance signal is extracted [30]. High-order spectral characteristics are extracted, the rectangular envelope signal of power disturbance is: In which, rect(t) = 1, |t| ≤ 1/2 . The frequency modulation law of power disturbance signal is a hyperbolic function, that is: In which, K = Tf max f min /B , t 0 = f 0 T /B f 0 is the arithmetic centre frequency of power disturbance [31], f min , f max are the lowest and highest frequency of power disturbance. The transform of small wave of electric energy disturbance signal into: , Ei(•) represents a time window weighting.

Feature extraction and neural network classification and recognition
The one-dimensional power disturbance function is mapped to the two-dimensional function of time scale and time shift by continuous wavelet transform, and the higherorder spectral characteristic of power disturbance signal is extracted as:

���
In which, θ 0 = −2π K ln(1 + T 2t 0 ) , the instantaneous frequency of electrical disturbance is: A neural network classifier is used to classify and identify the extracted features. The neural network model is shown in Fig. 1.
The neural network in Fig. 1 is a multivariable controlled object with m input and n output. Using a PIDNN multivariable classifier with m output, the output of each neuron in the hidden layer is obtained: Perturbation eigenvalue of input is: The identification parameter is: Then: The feature classification of power disturbance is carried out on the time scale. The scale-time translation model of power disturbance feature classification is shown in Fig. 2. In which, the characteristics of the extracted feature are classified by neural network automatically to realize the optimal identification and detection of power disturbance.

Experiment
In order to test the application performance of this algorithm in power disturbance detection, the simulation experiment is carried out. The experiment is designed with Matlab simulation tool. The time width of power disturbance signal is 0.01 s, the local stationary bandwidth is 0.4, and the energy normalization are obtained. The signal model output of the power disturbance is shown in Fig. 3.
Signal model of power disturbance is used to test objective. The feature extraction of high-order spectrum is carried out, and the time-frequency decomposition is carried out by wavelet transform, combining neural network classifier for feature classification, the feature extraction and detection output are shown in Fig. 4.
It shows that the beam focusing ability of power disturbance detection using this method is good, which shows that the disturbance detection has strong anti-jamming ability. Different methods are used to test the performance of power disturbance detection, and the results are shown in Fig. 5. The analytical Fig. 5 shows that the accurate probability of detecting and identifying power disturbance by this method is high. signal, and wavelet analysis method is used to improve the adaptive focusing performance of power disturbance signal. One-dimensional power disturbance function is mapped to time by continuous wavelet transform. The two-dimensional function of scale and time translation is used to extract the high-order spectral characteristic of the power disturbance signal. The neural network is used to classify the extracted feature to realize the optimal identification and detection of the power disturbance. The simulation results show that the algorithm has higher accuracy and higher recognition ability, which improves the accurate probability of power disturbance detection and the antidisturbance ability of power test.