Frequency estimation in three-phase power systems with harmonic contamination: A multistage quaternion Kalman filtering approach

Sayed Pouria Talebi, Danilo P. MandicarXiv 2016 · DOI

Abstract

Motivated by the need for accurate frequency information, a novel algorithm for estimating the fundamental frequency and its rate of change in three-phase power systems is developed. This is achieved through two stages of Kalman filtering. In the first stage a quaternion extended Kalman filter, which provides a unified framework for joint modeling of voltage measurements from all the phases, is used to estimate the instantaneous phase increment of the three-phase voltages. The phase increment estimates are then used as observations of the extended Kalman filter in the second stage that accounts for the dynamic behavior of the system frequency and simultaneously estimates the fundamental frequency and its rate of change. The framework is then extended to account for the presence of harmonics. Finally, the concept is validated through simulation on both synthetic and real-world data.

Introduction: The Challenge of Grid Stability

Maintaining a stable system frequency—typically 50 or 60 Hz—is fundamental to the health of power grids. Frequency deviations serve as critical indicators of imbalances between power generation and consumption, and if left unaddressed, can lead to severe equipment damage or widespread outages. As modern power systems transition toward decentralized smart grids and micro-grids, the ability to monitor these fluctuations in real-time with high precision becomes increasingly vital.

Traditional frequency estimation methods often rely on the Clarke transform to map three-phase signals into a complex (2D) domain. However, complex numbers lack the necessary dimensionality to represent "unbalanced" systems accurately—scenarios where the three phases are not perfectly symmetrical. This limitation often results in information loss and degraded estimation performance. Furthermore, many existing algorithms function primarily as measurement tools without modeling the underlying frequency dynamics, such as the Rate of Change of Frequency (ROCOF), which is a crucial early-warning signal for grid instability.

Methodology: A Multistage Quaternion Filtering Approach

To overcome these limitations, this paper proposes a multistage approach utilizing Quaternions—a four-dimensional number system. By representing three-phase voltages ($v_a, v_b, v_c$) as a single "pure quaternion" signal, the system can be modeled in a unified framework that preserves the geometric relationships between phases.

Block diagram of the proposed two-stage frequency estimation framework.

The proposed architecture consists of two primary stages:

  1. Stage 1: Quaternion Extended Kalman Filter (QEKF): The three-phase voltages are processed by a QEKF. Utilizing $\mathbb{HR}$-calculus for quaternion derivatives, this stage estimates the instantaneous "phase increment." The use of quaternions allows the filter to track the elliptical paths traced by unbalanced voltages in 3D space without the data loss inherent in 2D simplifications.
  2. Stage 2: Real-valued Extended Kalman Filter (EKF): The phase increment estimate from Stage 1 serves as the input for a second, standard EKF. This stage employs a state-space model based on a Taylor series expansion of frequency, allowing for the simultaneous estimation of both the fundamental frequency and the ROCOF.

Harmonic Handling

In environments with "harmonic contamination" (interference at integer multiples of the base frequency), the framework is extended into a parallel architecture. Multiple QEKFs run concurrently—one dedicated to the main frequency and others to specific harmonics (e.g., the 3rd harmonic). The fundamental frequency estimate is fed back into the harmonic filters, significantly enhancing their tracking accuracy.

Performance Evaluation and Key Results

The algorithm, termed the Quaternion Frequency Estimator (QFE), was rigorously tested against synthetic "stress tests" (including 80% voltage sags, phase shifts, and frequency ramps) and real-world voltage sag data.

Frequency and ROCOF estimation performance showing the refinement from the first to the second stage.

Key Insights

  • Dimensionality and Geometry: Three-phase power is inherently a multi-dimensional geometric problem. Quaternions provide a natural mathematical language for this geometry, whereas complex numbers are a forced simplification that fails under unbalanced conditions.
  • Decoupling Dynamics: By splitting the estimation into two stages, the authors decouple geometric signal tracking from physical frequency dynamics. As shown in the results, the second stage significantly smooths the noisy estimates from the first stage while accurately capturing the ROCOF.
  • Superior Robustness: In both synthetic and real-world scenarios, the QFE demonstrated significantly lower steady-state variance compared to state-of-the-art Complex-valued Frequency Estimators (CFE), providing a more reliable signal for grid control systems.

Conclusion and Future Directions

The multistage quaternion approach offers a robust solution for real-time frequency and ROCOF monitoring in modern power systems. While the parallel architecture for harmonic tracking increases computational demand, the gains in precision and stability under unbalanced conditions are substantial. Future work may involve exploring higher-order Taylor expansions in the Stage 2 EKF to capture even more volatile grid dynamics and developing adaptive methods for tuning noise covariance parameters in diverse grid environments.

Summary updated

BibTeX
@misc{talebi2016frequency,
  author = {Sayed Pouria Talebi and Danilo P. Mandic},
  title = {{Frequency estimation in three-phase power systems with harmonic contamination: A multistage quaternion Kalman filtering approach}},
  year = {2016},
  eprint = {1603.02977},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1603.02977},
}
Figure