1 Introduction

With the continuous expansion of the scale of the State Grid, people pay more attention to the real-time fault monitoring and protection of the smart grid [1]. Combined with the development of the power measurement technology and the software calculation, the smart grid computer network communication technology is assembled [2, 3]. The smart grid computer network based on computer technology and wireless communication is widely used in the field of power network control, and plays an important role in power transmission, power transmission, distribution and so on [4, 5]. In the process of power transmission and distribution, electric energy testing is needed to improve the accurate measurement and scheduling ability of electric energy [6]. However, the existence of power disturbance seriously affects the accuracy of power test. It is necessary to optimize the identification and detection of power disturbance, improve the accuracy of power measurement, and study the accurate 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. 1.

    A power interference detection algorithm based on wavelet analysis and neural network is proposed.

  2. 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. 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. 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.

2 Power disturbance signal model and characteristic decomposition

2.1 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:

$$g(t) = \sqrt s f(s[t - \tau ])$$
(1)

In which, \(f(t)\) is the transmission signal of power disturbance, \(s = (c - v)/(c + v)\), which is called time scale factor, which is called scale. \(\tau = 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, \(\sqrt 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 \(\psi (t)\) is obtained [23].

$$W_{\psi } y(a,b) = \langle y,\psi_{a,b} \rangle = \int\limits_{ - \infty }^{ + \infty } {y(t)\frac{1}{{\sqrt {\left| a \right|} }}\psi^{*} \left( {\frac{t - b}{a}} \right){\text{d}}t}$$
(2)

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:

$$\psi_{a,b} (t) = \left[ {U(a,b)\psi (t)} \right] = \frac{1}{{\sqrt {\left| a \right|} }}\psi \left( {\frac{t - b}{a}} \right)$$
(3)

In which, \(U(a,b)\) is the affine group unitary transformation for the mother wavelet [25], and the factor \(1/\sqrt {\left| a \right|}\) ensures the energy normalization of the unitary transformation.

2.2 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 \(\psi (t)\), and the variables are replaced, \(a = 1/s\), \(b = \tau\), rewritten formula (3):

$$f_{s,\tau } (t) = \left[ {U(1/s,\tau )f(t)} \right] = \sqrt {\left| s \right|} f(s(t - \tau ))$$
(4)

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:

$$X\left( u \right) = \sqrt {\frac{1 - j\cot \alpha }{{2\pi }}} \int_{ - \infty }^{ + \infty } {x\left( t \right)\exp \left[ {j\frac{{t^{2} + u^{2} }}{2}\cot \alpha - j\csc \alpha } \right]} {\text{d}}t$$
(5)

In which, \(x\left( t \right)\) denotes the time–frequency joint distribution characteristic function of the signal, and \(\alpha\) is the time-window function [29].

3 Methods

3.1 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 two-dimensional 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:

$$u(t) = \frac{1}{\sqrt T }{\text{rect}}\left( \frac{t}{T} \right)\exp \left\{ { - j[2\pi K\ln \left( {1 - \frac{t}{{t_{0} }}} \right)]} \right\}$$
(6)

In which, \({\text{rect}}(t) = 1,\,|t| \le 1/2\). The frequency modulation law of power disturbance signal is a hyperbolic function, that is:

$$f_{i} (t) = \frac{K}{{t_{0} - t}}\quad |t| \le \frac{T}{2}$$
(7)

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:

$$\begin{aligned} W_{u} u(a,b) & = e^{j2\pi K\ln a} \times \frac{K}{\sqrt a }\left\{ {\left[ {\frac{{ae^{{\frac{{j2\pi f_{\min } }}{a}(b - b_{a} )}} }}{{f_{\min } }} - \frac{{e^{{j2\pi f_{\max } (b - b_{a} )}} }}{{f_{\max } }}} \right]} \right. \\ & \quad \left. { + j2\pi (b - b_{a} )\left[ {Ei(j2\pi f_{\max } (b - b_{a} ))} \right. - \left. {Ei\left( {\frac{{j2\pi f_{\min } }}{a}(b - b_{a} )} \right)} \right]} \right\} \\ \end{aligned}$$
(8)

In which, \(b_{a} = (1 - a)(\frac{1}{{af_{\max } }} - \frac{T}{2})\), \(Ei( \bullet )\) represents a time window weighting.

3.2 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 higher-order spectral characteristic of power disturbance signal is extracted as:

$$\theta (t) = 2\pi \int_{ - T/2}^{t/a} {\left( {\frac{K}{{t_{0} - t^{{\prime }} }}} \right){\text{d}}t^{{\prime }} = - 2\pi K\ln \left( {1 - \frac{t}{{at_{0} }}} \right) + \theta_{0} }$$
(9)

In which, \(\theta_{0} = - 2\pi K\ln (1 + \frac{T}{{2t_{0} }})\), the instantaneous frequency of electrical disturbance is:

$$f_{{i_{a} }} (t) = \frac{1}{2\pi }\frac{{{\text{d}}\theta }}{{{\text{d}}t}} = \frac{K}{{at_{0} - t}} = \frac{K}{{t_{0} - t + (a - 1)t_{0} }}$$
(10)

A neural network classifier is used to classify and identify the extracted features. The neural network model is shown in Fig. 1.

Fig. 1
figure 1

Neural network model

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:

$$x^{\prime}_{sj} (k) = \left\{ {\begin{array}{*{20}l} {1,} \hfill & {u_{sj}^{{\prime }} (k) > 1} \hfill \\ {u_{sj}^{{\prime }} (k),} \hfill & { - 1 \le u_{sj}^{{\prime }} (k) \le 1} \hfill \\ { - 1,} \hfill & {u_{sj}^{{\prime }} (k) < - 1} \hfill \\ \end{array} } \right.$$
(11)

Perturbation eigenvalue of input is:

$$f_{{i_{a} }} (t) = f_{i} [t - (a - 1)t_{0} ]$$
(12)

The identification parameter is:

$$b_{m} = t_{0} (1 - a)$$
(13)

Then:

$$f_{{i_{a} }} (t) = f_{i} (t + b_{m} )$$
(14)

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.

Fig. 2
figure 2

Scale scaling and time translation model for feature classification of power disturbance

In Fig. 2, by wavelet analysis and neural network classification, the time domain components of power disturbance detection are obtained as follows:

$$u_{a} (t - b_{m} ) = \frac{1}{\sqrt a }u(t)\quad - \frac{aT}{2} + b_{m} < t < \frac{aT}{2} + b_{m}$$
(15)

Write the output of the power disturbance detection component in a unified form:

$$W_{u} u(a,b_{m} ) = \frac{1}{\sqrt a }\left( {\frac{a + 1}{2} - \frac{{\left| {a - 1} \right|}}{{B/f_{0} }}} \right)$$
(16)

In which, the characteristics of the extracted feature are classified by neural network automatically to realize the optimal identification and detection of power disturbance.

4 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.

Fig. 3
figure 3

Signal model of power disturbance

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.

Fig. 4
figure 4

Wavelet transform of power disturbance signal

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.

Fig. 5
figure 5

Performance comparison of detection and recognition

5 Results and discussion

In order to improve the performance of electric energy testing, it is necessary to design the detection of power disturbance. A detection algorithm of power disturbance based on wavelet analysis and neural network is proposed. 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. 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 anti-disturbance ability of power test.