Parameters Estimation of Time-Varying Harmonics

The increasing use of power electronic devices in power systems has been producing significant harmonic distortions, what can cause problems to computers and microproces‐ sor based devices, thermal stresses to electric equipments, harmonic resonances, as well as aging and derating to electrical machines and power transformers [1–3]. The most impor‐ tant problems that have been reported in the literature concerns to the difficulty of the frequency control within the micro-grids and the increase of the total harmonic distortion. These two factors may negatively impact on the protection system, power quality analysis and intelligent electronic devices (IEDs), in which digital algorithms assume that the fundamental frequency is constant. Based on this fact, there has been an increasing interest in signal processing techniques for detecting and estimating harmonic components of timevarying frequencies. Their correct estimation has become an important issue in measure‐ ment equipment and compensating devices. Although many methods have been proposed in the literature, it still remains difficult to detect and estimate harmonics of time-varying frequencies [4, 5]. The harmonic components (voltage or current) can change its frequen‐ cies due to continuous changes in the system configuration and load conditions, to the rapid proliferation of distributed resources, and to possibilities of new operational scenarios (e.g., islanded microgrids). Also the need for massive monitoring of networks is unquestionable within the concept of smart grids. An important line of research in the smart grids context is to identify and estimate time-varying harmonics that may appear in the current and voltage signals, and from this information, correct and adjust the digital algorithms that are part of protection equipments, power quality monitors and IEDs.


Power quality and smart grid
The term "smart grid" has different definitions in the literature. Regardless of the precise definition, the term smart grid can be seen as a new paradigm, covering from conception to operation of the power systems, that makes intensive use of information and communication technologies, decentralized control approaches, powerful signal processing and computational intelligence techniques, renewable and distributed generation and storage energy facilities, self-generation, etc [11] to offer flexibility, robustness, and efficiency regarding generation, transmission, distribution, and consumption of electrical energy.
One of the promises of the smart grid is to improve the power quality. Therefore, the reliability or continuity of service is one of the consequences that will result from the implementation of the self-healing aspects of the Smart Grid. However power quality issues should not form an unnecessary barrier against the development of smart grids or the introduction of renewable sources of energy. The smart properties of future grids should rather be a challenge for new approaches in an efficient management of power quality [11].
An adequate power quality should guarantees electromagnetic compatibility between all equipment connected to the grid. Then, an important issue for the successful and efficient operation of smart grids is the introduction of advanced, flexible, robust, and cooperative set of signal processing and computational intelligent techniques for power quality analysis. With this set of techniques, an effective and extensive smart monitoring system can be devised and deployed. Such a monitoring system have to allow for the monitoring of such as voltage, current, bidirectional energy consumption at distribution transformers, substations transformers, smart meters, distribution feeders, distribution switching devices, and strategically installed power quality monitors in the power systems.

Harmonic estimation techniques: Before and after smart grid
Consider the monitored power line signal, after processed by the analog anti-aliasing filter, be expressed by where A m (t) and ϕ m (t) are, respectively, the amplitude and phase of the m-th harmonic, N h is the maximum harmonic order, η(t) is the additive noise and Ω 0 denotes the angular fundamental synchronous frequency. Based on the definition of instantaneous frequency deviation [6,7], the frequency of the m-th harmonic can be defined as Assuming Ω 0 constant, note that any variation in ψ m (t) can be expressed by the term d ϕ m (t) dt .
As ψ m (t) = mψ 1 (t) (the frequency of the m-th harmonic is equal to m times the fundamental frequency), from (2) we have The goal of harmonic estimation techniques is to provide estimates of the parameters A m (t) and ϕ m (t) using the discrete version x n of the signal x(t). Some of the existing techniques estimate these parameters considering that the fundamental angular frequency ψ 1 (t) is constant and nominal (steady) and some estimate the same parameters considering ψ m (t) timevarying.
Basically, we can say that before smart grids, the most used techniques for harmonic estimation assumed that ψ 1 (t) was constant and nominal. This is the reason that DFT is the standard algorithm adopted in international standards and implemented in the majority of equipments. It can be explained because, generally, in interconnected power systems the power frequency is high controlled and very near the nominal value. Thus, powerful harmonic estimation methods are not needed, except in especial applications. However, with the inclusion of new power generation technologies such as renewable energy source generation and distributed generation energy, the fundamental frequency of micro grids and isolated systems will suffer significant variations (this fact is already noted in actual power systems). In this new scenarios, very common in smart grids, new harmonic estimation techniques will be very needed and essential.

Methods for estimating steady-state harmonics
Methods for estimating steady-state harmonics are more simple than time-varying ones, and its algorithms do not use information of the fundamental frequency of the signal under estimation. In what follows, we describe four algorithms.

Discrete fourier transform
The most common and the most used technique for steady-state harmonic estimation is the discrete Fourier transform (DFT) [8][9][10]. The DFT method is simple and easy to be implemented in monitoring systems, but its application for time-varying harmonics is not recommended.
Given the discrete signal x n , the amplitude and phase of the k-th harmonic component can be straightforwardly estimated by the recursive equations: in which w 0 = Ω 0 / f s is the discrete synchronous angular frequency, f s is the sampling rate and N is the number of samples within a integer number of cycles of the fundamental power signal.

Power Quality Issues
The DFT algorithm is very simple and its implementation is easy for real-time application. However, if the fundamental frequency is not nominal and constant, then the estimates can carry significant errors.

Demodulation
The demodulation technique presented in [15] can be used to estimate the parameters of harmonics as point out in [16]. In similar way to the DFT technique the demodulation technique can give erroneous results if its filter is fixed.
The k-th harmonic parameters can be estimated by and in which Y c k n and Y s k n are evaluated by respectively, where h n is the impulse response of a low-pass filter and * denotes the linear convolution operator.

Goertzel
The Goertzel technique uses a second-order infinite impulse response filter to estimate the parameters of the k-th harmonic [17]. The Goertzel algorithm is more efficient than the Fast Fourier Transform (FFT) when the number of harmonics to be calculated is low.
The amplitude and phase of the k-th harmonic is estimated, respectively, by and in which Y c k n and Y s k n are evaluated by and

Linear least squares
The linear least squares (LS) algorithm estimates several harmonics in one evaluation instead of a unique estimate [18]. Its advantage is the acquisition of several harmonics in only one evaluation. However the computational burden is high.
Basically, the LS algorithm has as a result the vector given by  ( 1)) cos(2 ( 1)) cos In this kind of technique, the number of harmonic has to be known a priori. Otherwise, the performance can be considered reduced, also, the computational complexity is higher due to the matrix operations.

Methods for estimating time-varying harmonics
Methods for estimating time-varying harmonics consider that not only the amplitudes and phases of harmonics change, but also the fundamental frequency, and consequently, the harmonics frequencies. Thus, the frequency estimation is generally required to improve the algorithms.

Discrete fourier transform with sampling frequency control
The main weakness of the DFT is to estimate the harmonics when the sampling frequency is not synchronous with the fundamental frequency. In order to guarantee this synchronism we can control the sampling frequency as shown in Fig. 1. This method reduces and can also eliminate the errors caused by the mismatch between the fundamental frequency and the sampling frequency, however, it requires a robust and controllable ADC converter and a frequency estimation algorithm. As a result, its use is not recommended.

Discrete fourier transform with signal resample
An alternative to the problem of synchronization of the sampling frequency when the sampling frequency is constant and not controllable is resampling the original signal before the harmonic estimation with the DFT. The drawback of this approach is the high computation complexity required by the resample process. Also, a frequency estimation technique is required to control the resampling process. Fig. 2 shows the block diagram of this strategy.

Discrete fourier with window
An interesting way of improving the DFT algorithm is using a window in each block of data before the evaluation of the DFT.
for N odd.

Demodulation
An interesting method based on demodulation technique for estimating time-varying harmonics is presented in [16]. This technique can provide very accurate estimates with a reasonable computational complexity.
The block diagram of the demodulation technique is depicted in Fig. 3. The LP blocks implement identical low-pass filters and the blocks COS and SIN implement the demodulation signals expressed by where ψ 1 n is the estimated fundamental frequency in rad. respectively, where d c k n is the output of the low-pass filter at the top and d s k n is the output of the low-pass filter at the bottom in Fig. 3.
In this technique, it is applied a approach to control the demodulation signals (blocks COS and SIN) and the frequency response of the low-pass filters (blocks LP) by the power frequency estimate, which is implemented by the block FREQ. The low pass filters are finite impulse response (FIR) filters which are controlled by a frequency estimator.

Non linear least squares
The nonlinear least squares (NLS) uses the same expressions of the linear least squares for evaluate the harmonics [18]. The advantage of this approach is the improving of the estimates related to the linear version, however, the additional searching of the optimal frequency introduces additional delay in the technique and computational burden.
The NLS algorithm test several values of w 0 near its nominal value in order to minimize the euclidian norm of the following vector:

Performance analysis
In order to analyze the performance of the described techniques the following signal is considered: where v n~N(0, σ 2 ) is a white zero-mean Gaussian noise so that the signal-to-noise ratio (SNR) between the fundamental component and the additive noise is 60 dB (it should be noted that the SNR of the signal obtained from a power system usually ranges between 50 and 70 dB [19]). Fig. 4 shows time estimations of the amplitude of the 3rd harmonic considering a 50% drop in the amplitude of signal when the fundamental frequency is equal to 60 Hz. Estimation delays of 2 cycles of the fundamental component are noted because the twocycles version of each technique was considered. However, when the fundamental frequency is set to 60.5 Hz such techniques exhibit significant errors in the estimates (time variations), as can be seen in Fig.  5. Otherwise, the time-varying techniques significantly improve the estimates. These results are depicted in Fig. 6. Table 1 shows the maximum of the absolute instantaneous error of all techniques after convergence of the algorithms (after the 50% drop in the amplitude of signal).
The best results are achieved with the demodulation and NLS techniques. Considering only these last two techniques, the errors were evaluated when the fundamental frequency varies between 59.5 Hz to 60.5 Hz for the 25th harmonic (See Fig. 7). Also, it is important to note that the improvement achieved by the DFT with hanning and triangular windows is significant compared with the standard DFT method as can be seen by Figs. 5 and 6. In order to better show this improvement, the errors, considering the DFT, DFT with triangular window and DFT with hanning window, were evaluated when the fundamental frequency varies between 59.5 Hz and 60.5 Hz for the 25th harmonic (Fig. 8).

What is next and needed?
Most existing end-user equipment (computer, television, lamps, etc) emit almost exclusively at the lower odd integer harmonics, but there are indications that modern devices including certain types of distributed generators emit a broadband spectrum [11][12][13][14]. The measurement of these low levels of harmonics at higher frequencies will be more difficult than for the existing situation with higher levels and lower frequencies. This might require the development of new measurement techniques including a closer look at the frequency response of existing instrument transformers. Consequently, harmonic estimation of higher order harmonics will be very important and needed. In this case the sampling frequency should be increased to satisfy the Nyquist criterion and faster analog to digital converter (ADC) must be used to deal with this requirement.
Power electronic based photovoltaic solar and wind energy equipment may emit disturbances causing voltage fluctuations and unbalance. These types of electric sources will have large presence in the future grids very large. In order to deal with this new scenario, the harmonic estimation algorithms must be immune to higher voltage fluctuations and interharmonics.
An important issue associated with smart grid in regarding to harmonic estimation is the real time estimation of several harmonics instantaneously, including higher-order harmonics. Higher-order harmonics will be more and more important to estimate due its influence in sensitive electronics devices. Also, the dynamic and diversity of smart grid will demand different set of techniques to analyze the behavior of the time-varying harmonics. For deal with these issues, the use of reconfigurable hardware that allow the exchange of features between existing monitoring devices is of ultimate importance.

Concluding remarks
Several methods and techniques were developed so far for estimating steady-state and timevarying harmonics. Although several techniques can deal with time-varying harmonics, the implementation of them is incipient. However, the needs and demands related to smart grids is pushing forward the development of new techniques as well as discussion of new measurement standards for time-varying harmonics.
Although smart grids offers the opportunity to improve the quality, efficiency and reliability for power systems, the increase of disturbances levels is inevitable. Thus, new challenges related to the power quality will be introduced.

Author details
Cristiano A. G. Marques