Using Graphkit-Genco Grid Foundation Model to Recover the Aged Admittance Matrix

#32
by sergioajini - opened

Using Graphkit-Genco Grid Foundation Model to Recover the Aged Admittance Matrix

Participants: Mohammad Hassan Sohan Ajini; Abdorasoul Ghasemi
Affiliation: Research Centre for Computational Science and Mathematical Modelling, Coventry University, Coventry, UK
Contact emails: sohanajinm@coventry.ac.uk; Abdorasoul.Ghasemi@coventry.ac.uk
GitHub repository and reproducibility guide: https://github.com/mohamad-hasan-sohan-ajini/genco-challenge
Full paper (PDF): https://github.com/mohamad-hasan-sohan-ajini/genco-challenge/blob/main/GridFM__to_estimate_Aged_grid_Admittance_Matrix.pdf

The GitHub repository is the reference page for this submission. It hosts the complete paper as a PDF and provides the source code, configurations, and instructions needed to reproduce the synthetic network ageing, data generation, impedance estimation experiments, and reported results and plots. This post summarises the paper and reproduces the key figures inline; the PDF contains the complete research paper, including the bibliography and full discussion.

Summary

We investigate whether the GENCO grid foundation model can recover changes in a power network's admittance matrix caused by transmission-line ageing. Accurate line resistance and reactance values are essential for power flow (PF), optimal power flow, and state estimation, but network models may rely on nominal parameters that drift over time.

We first show that mismatches between the supplied admittance matrix and the network underlying the observations produce systematic changes in GENCO's voltage prediction errors. We then propose a gradient-based impedance estimation algorithm that freezes GENCO's weights and optimises only the transmission-line resistance and reactance multipliers. No dedicated inverse PF model is trained. Experiments on the IEEE 118-bus and IEEE 57-bus networks show substantial improvements in line-impedance estimation and in voltage magnitude and phase-angle prediction errors.

1. Introduction

Grid foundation models can support multiple power-system tasks through shared network representations and physically informed learned relationships. GENCO (GEometric Neural Corrective Optimizer) is a neural solver developed for PF, optimal power flow, and state estimation within a unified architecture.

Ageing, environmental exposure, thermal stress, and conductor degradation can change transmission-line resistance and reactance. These changes affect network losses and the fidelity of subsequent grid studies. Directly remeasuring line parameters can be costly or impractical, particularly where measurement coverage is limited.

Our central question is: Can we use a pretrained forward PF foundation model to infer unknown changes in network impedance, without training a separate inverse model? We explore both the detection of impedance mismatch from GENCO's prediction residuals and the recovery of aged line parameters through backpropagation.

2. Problem Statement and Solution Approach

We assume that the network topology, nominal line parameters, and operational observations are available, but the true aged impedances are not. We seek updated resistance and reactance values that make GENCO's predicted bus voltages more consistent with observations from the aged network.

A key difficulty is identifiability: reducing PF prediction error does not automatically guarantee recovery of the true impedances, since different parameter sets can yield similar operating states. We therefore examine convergence across independent synthetic ageing scenarios and use these experiments to inform the stopping criterion.

2.1. Line ageing model

We construct aged IEEE 118-bus networks by sampling line ages from a right-truncated Weibull distribution with shape parameter k = 2.5, scale λ = 40 years, and maximum age 60 years. For a line with sampled age A_i, the synthetic fractional impedance increase is

Di=0.5(Ai60)2. D_i = 0.5\left(\frac{A_i}{60}\right)^2.

The same line-specific ageing factor 1 + D_i is applied to its nominal resistance and reactance, producing increases between 0% and 50%. This is a synthetic ageing model, not an empirically calibrated degradation law. We generate independent realisations using random seeds 0–4.

k2p5_scale40_weibull_distribution-page-1

Figure 1. Right-truncated Weibull age distribution used to construct synthetic line ageing scenarios.

2.2. Detecting impedance drift through GENCO residuals

We compare two conditions using SCADA-like PF observations:

Matched parameters: GENCO receives the admittance matrix corresponding to the network that generated the observations. Even as ageing increases error dispersion, signed voltage angle errors remain approximately centred around zero. For the IEEE 118-bus experiments, the mean signed phase-angle error ranges from 0.0240° to 0.0438° for nominal matched conditions and 0.0237° to 0.2336° for aged matched conditions.

Mismatched parameters: GENCO receives the nominal admittance matrix, but observations come from the aged network. The phase-angle prediction errors exhibit a pronounced systematic shift, with mean signed errors between 1.254° and 1.866° across five seeds. Voltage magnitude errors also increase.

This difference suggests that systematic changes in GENCO's prediction residuals can provide evidence of impedance drift and motivate estimation of updated network parameters.

nominal_vs_aged_pf_error_histograms_replot-page-1

hidden_aging_error_histograms_replot-page-1

Figure 2. IEEE 118-bus prediction errors under (a) matched nominal/aged conditions and (b) aged PF observations with matched/mismatched admittances.

3. Impedance Estimation Algorithm

We use GENCO as a frozen, differentiable surrogate PF model. Its learned weights are not updated; instead, we introduce independent, learnable multipliers for the resistance and reactance of each eligible line:

R^l=αlRl0,X^l=βlXl0,αl,βl∈[1,1.5]. \hat R_l = \alpha_l R_l^0, \qquad \hat X_l = \beta_l X_l^0, \qquad \alpha_l,\beta_l \in [1,1.5].

Here, R_l^0 and X_l^0 are nominal impedances. The resulting line parameters are converted into admittances and passed to GENCO with the aged network's operating observations.

We minimise the mean squared discrepancy between GENCO-predicted and reference bus voltage magnitudes and phase angles. Gradients are propagated through GENCO to the line multipliers while the model parameters remain fixed. Optimisation uses Adam with learning rate 0.003, full-dataset gradient accumulation before each parameter update, and projection of multipliers onto [1, 1.5].

The reported IEEE 118-bus evaluation uses 250 optimisation epochs, with convergence and potential overfitting examined over five independent ageing realisations (seeds 0–4). The method reuses the existing forward model: no new inverse PF model or impedance-estimation decoder is trained.

GENCO_diagram_Ri_Xi-page-1

Figure 3. GENCO-based impedance estimation framework: the forward model is frozen, while gradients update only the resistance and reactance multipliers.

resistance_mismatch_rmse_seeds0-4_replot-page-1

reactance_mismatch_rmse_seeds0-4_replot-page-1

Figure 4. Resistance and reactance estimation RMSE over 250 optimisation epochs for the IEEE 118-bus network, seeds 0–4.

4. Results

4.1. IEEE 118-bus: recovery of aged line impedances

The proposed optimisation reduces the mismatch between the estimated and aged resistances and reactances for every evaluated seed. The table reports nominal-to-aged RMSE before optimisation and estimated-to-aged RMSE after 250 epochs (per unit):

Seed R RMSE: nominal R RMSE: estimated R reduction X RMSE: nominal X RMSE: estimated X reduction
0 0.007851 0.005306 32.42% 0.030203 0.018199 39.75%
1 0.007062 0.005127 27.41% 0.025700 0.015182 40.93%
2 0.008474 0.005388 36.42% 0.031549 0.018433 41.57%
3 0.008010 0.005433 32.17% 0.029272 0.017257 41.04%
4 0.007895 0.005576 29.38% 0.030815 0.017111 44.47%

Across the five seeds, resistance RMSE falls by 27.41%–36.42%, while reactance RMSE falls by 39.75%–44.47%. Parity plots of estimated versus aged impedances show that most points lie near the ideal y = x line, although deviations remain, particularly at larger impedance values.

resistance_estimated_vs_aged_replot-page-1

reactance_estimated_vs_aged_replot-page-1

Figure 5. IEEE 118-bus parity plots comparing estimated and aged resistances and reactances, with low-impedance insets.

4.2. IEEE 118-bus: improvement in PF predictions

We compare voltage prediction errors under three admittance configurations, always using reference PF observations from the aged network: actual aged, nominal, and estimated.

Using nominal impedances produces broader and shifted prediction-error distributions, especially for voltage phase angles. Replacing them with the estimated impedances substantially narrows the distributions and moves them closer to the aged-parameter reference. The estimated parameters do not completely reproduce the true-aged baseline, but they substantially reduce the errors associated with unmodelled impedance drift.

Figure 6 illustrates the error improvement under the three input-admittance configurations.

estimated_impedance_pf_error_histograms_replot-page-1

Figure 6. IEEE 118-bus voltage magnitude (left) and phase-angle (right) errors using nominal (red), aged (green), and estimated (blue) impedances with aged PF observations.

5. Conclusion

Our experiments show that a relatively straightforward gradient-based procedure, applied to a frozen GENCO model, can recover meaningful information about ageing-related changes in transmission-line parameters. The approach improves both impedance estimates and PF predictions without training an inverse PF model.

The results also suggest that GENCO can be useful for more than direct regression of power-system operating states: its gradients with respect to electrical parameters contain information that can support a parameter-identification task. This does not by itself establish full model interpretability, but it motivates further research into gradient-based analysis of grid foundation models, ageing-related grid studies, and broader inverse power-system problems.

Appendix: Validation on the IEEE 57-Bus Network

We repeat the method on an independently aged IEEE 57-bus network (seed 0) to assess whether the approach extends beyond the IEEE 118-bus case.

Impedance estimation. Resistance RMSE decreases from 0.035411 to 0.011023 p.u. (68.87% reduction), and reactance RMSE decreases from 0.071755 to 0.030217 p.u. (57.89% reduction).

57-resistance_mismatch_rmse_seeds0_replot-page-1

57-reactance_mismatch_rmse_seeds0_replot-page-1

Figure 7. IEEE 57-bus resistance and reactance RMSE during impedance estimation (seed 0).

The estimated-versus-aged parity plots also show close agreement.

57-resistance_estimated_vs_aged_replot-page-1

57-reactance_estimated_vs_aged_replot-page-1

Figure 8. IEEE 57-bus estimated-versus-aged resistance and reactance parity plots (seed 0), including low-impedance insets.

The IEEE 57-bus case has larger nominal line impedances on average than the IEEE 118-bus case, giving the same percentage ageing a larger absolute effect; the stronger improvements in this experiment suggest that the method can remain effective under more substantial mismatches.

Prediction-error behaviour. Matched nominal and matched aged conditions can both have small baseline GENCO prediction offsets, so the aim is to reduce the additional error caused by impedance mismatch rather than force every residual to zero.

57-nominal_vs_aged_pf_error_histograms_replot-page-1

Figure 9. IEEE 57-bus prediction errors under nominal-matched and aged-matched conditions.

When nominal impedances are used with aged PF observations, the mismatch introduces substantially broader error distributions.

57-hidden_aging_error_histograms_replot-page-1

Figure 10. IEEE 57-bus prediction errors using nominal versus actual aged admittances with the same aged PF observations.

With the estimated admittances, voltage magnitude RMSE falls by 93.04% and phase-angle RMSE by 92.90% relative to the nominal-impedance mismatch case, when computed over all 57 buses.

57-estimated_impedance_pf_error_histograms_replot-page-1

Figure 11. IEEE 57-bus voltage magnitude and phase-angle error distributions using nominal, aged, and estimated impedances.

Together, the IEEE 57-bus and 118-bus experiments provide evidence of applicability across networks with different line-impedance characteristics.

Reproducibility and Resources

Reference repository: https://github.com/mohamad-hasan-sohan-ajini/genco-challenge
Complete paper (PDF, including all figures): https://github.com/mohamad-hasan-sohan-ajini/genco-challenge/blob/main/GridFM__to_estimate_Aged_grid_Admittance_Matrix.pdf
Step-by-step reproduction guide: https://github.com/mohamad-hasan-sohan-ajini/genco-challenge#readme

The repository provides scripts and configurations for generating the original and synthetically aged IEEE networks, using GridFM Datakit to produce PF datasets, running GENCO inference, optimising impedance multipliers, and regenerating the figures and metrics. The README documents the environment, ageing parameters, seeds, dataset configuration, model checkpoints, experiment commands, and plotting workflow. Reproducing the results requires generating the corresponding datasets and running the documented experiments. The ageing experiments are synthetic, and the reported final PF comparisons reuse the impedance-estimation scenarios rather than a separate held-out evaluation set.

We welcome discussion of GENCO-based inverse problems, impedance identifiability, and potential extensions to measured operational data.

Sign up or log in to comment