[Paper Review] Embedding Power Flow into Machine Learning for Parameter and State Estimation
This paper proposes a physics-informed machine learning framework that embeds the Newton-Raphson power flow solver directly into a PyTorch-based training loop to jointly estimate power system parameters and states. By differentiating through a fixed number of NR iterations, the method enables efficient, end-to-end optimization with high accuracy even under incomplete measurements, outperforming prior ML approaches in generalization and convergence speed.
Modern state and parameter estimations in power systems consist of two stages: the outer problem of minimizing the mismatch between network observation and prediction over the network parameters, and the inner problem of predicting the system state for given values of the parameters. The standard solution of the combined problem is iterative: (a) set the parameters, e.g. to priors on the power line characteristics, (b) map input observation to prediction of the output, (c) compute the mismatch between predicted and observed output, (d) make a gradient descent step in the space of parameters to minimize the mismatch, and loop back to (a). We show how modern Machine Learning (ML), and specifically training guided by automatic differentiation, allows to resolve the iterative loop more efficiently. Moreover, we extend the scheme to the case of incomplete observations, where Phasor Measurement Units (reporting real and reactive powers, voltage and phase) are available only at the generators (PV buses), while loads (PQ buses) report (via SCADA controls) only active and reactive powers. Considering it from the implementation perspective, our methodology of resolving the parameter and state estimation problem can be viewed as embedding of the Power Flow (PF) solver into the training loop of the Machine Learning framework (PyTorch, in this study). We argue that this embedding can help to resolve high-level optimization problems in power system operations and planning.
Motivation & Objective
- Address the inefficiency of iterative, nested optimization in traditional power system state and parameter estimation by integrating the power flow solver into a machine learning training loop.
- Overcome limitations of prior ML approaches that train on distorted input-output distributions by directly modeling the inverse of the power flow map via differentiable NR iterations.
- Enable high-accuracy state and parameter estimation under incomplete observability, where only PMUs at PV buses and SCADA data at PQ buses are available.
- Achieve robust generalization to unseen operating conditions by embedding physical laws (power flow equations) directly into the neural network training process.
- Demonstrate that a small, fixed number of Newton-Raphson iterations can be effectively differentiated and optimized within a machine learning framework, enabling fast and accurate inference.
Proposed method
- Embed the Newton-Raphson power flow solver as a differentiable module within a PyTorch training loop, allowing automatic differentiation through the iterative solution process.
- Formulate the state and parameter estimation problem as a supervised learning task where the model predicts voltage magnitudes and angles from active/reactive power injections.
- Use an exponential parameterization of line admittances (gₖ = exp(γₖ), bₖ = -exp(βₖ)) to ensure physical plausibility without requiring regularization.
- Construct the Jacobian matrices for active and reactive power injections using tensor operations that explicitly encode the power flow equations and their derivatives.
- Train the model using a loss function that minimizes the mismatch between predicted and observed power injections, leveraging backpropagation through the NR iterations.
- Implement the method as a differentiable physics-informed neural network (PINN) where the power flow equations are enforced implicitly through the architecture and training process.
Experimental results
Research questions
- RQ1Can embedding the Newton-Raphson power flow solver directly into a machine learning training loop improve the efficiency and accuracy of joint state and parameter estimation in power systems?
- RQ2How many fixed Newton-Raphson iterations are sufficient to achieve high-quality estimation performance while maintaining differentiability for end-to-end training?
- RQ3To what extent does the proposed method generalize to operating conditions not seen during training, especially under incomplete measurement scenarios?
- RQ4How does the choice of parameterization (e.g., exponential vs. standard admittance parameterization) affect convergence and physical consistency of the estimated parameters?
- RQ5Can the method achieve better performance than prior ML-based approaches that bypass the power flow solver or use distorted training data distributions?
Key findings
- The proposed Newton-Raphson informed Machine Learning (NR-ML) framework enables efficient, end-to-end training by differentiating through a fixed number of NR iterations, eliminating the need for nested iterative loops.
- Only 3–5 Newton-Raphson iterations are sufficient to achieve high-accuracy state estimation, with convergence observed within a few hundred epochs.
- Parameter estimation requires longer training than state estimation due to the higher sensitivity and nonlinearity of the inverse problem, but converges to accurate values.
- The method generalizes well to unseen operating points, achieving high-quality reconstruction even for regimes significantly different from the training data, demonstrating strong extrapolation capability.
- The exponential parameterization of line admittances (gₖ = exp(γₖ), bₖ = -exp(βₖ)) ensures physical plausibility without requiring additional regularization, simplifying the training process.
- The framework successfully handles incomplete observations—only PMU data at PV buses and SCADA data at PQ buses—by embedding the power flow equations directly into the learning process, enabling robust inference under limited observability.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.