PoSE

PoSE

Bayesian Distribution System State Estimation with Flow Matching

Nan Lin, Peter Palensky, Pedro P. Vergara

Intelligent Electrical Power Grids Group, Delft University of Technology

TL;DR. PoSE learns only what the grid operator does not know: the joint distribution of the secondary-substation injections, by flow matching on historical data. The power flow, the topology and the measurements enter only at sampling, through a noise-aware Kalman-type correction. Every posterior sample is a physically consistent operating point, and one trained prior serves any measurement set, noise level and topology.

Add measurements, watch the posterior tighten

IEEE 33-bus feeder. Each cloud is one secondary substation; each dot is one sample.

How it works

Learn the prior once; bring in the physics and the meters at sampling

DSSE on a medium-voltage feeder is underdetermined: with few real-time measurements, pseudo-measurements of the secondary substations carry most of the information. In Bayesian terms they are the prior, and an unobservable feeder is an ill-posed inverse problem. PoSE keeps the two factors of the posterior p(s | y, c) ∝ p(y | s) p(s | c) apart.

01

Learn the prior

A conditional flow matching model learns p(s | c), the joint distribution of the substation injections given month, time of day and day type. It is trained once on historical data and contains no sensor or noise information.

02

Sample

Starting from Gaussian noise, an Euler sampler integrates the flow in 200 steps. At every step the network gives an endpoint estimate ẑ of the standardized injections.

03

Correct with measurements and power flow

A Kalman-type update pulls the endpoint estimate towards the measurements at every step. The residual uses the AC power flow h; the gain uses the LinDistFlow matrix, the Tweedie covariance of the endpoint and the measurement noise plus the linearization error.

z̃ = ẑ + Kt ( y − h(μ + σ ⊙ ẑ) ),   Kt = ΣtHz⊤ ( HzΣtHz⊤ + Reff )−1

The correction is exact for a Gaussian prior and linear measurements, and its cost is set by the sensors rather than the grid size: PoSE-fast forms the endpoint covariance only along the measured directions. Each posterior sample is passed through the AC power flow, so every sampled voltage and branch current satisfies the power flow equations, and the probability that a voltage or thermal limit is violated is read directly from the samples.

One prior, any meters

The same weights serve any measurement set, noise level and topology

Reconfiguration changes the feeder model but not the substation injections, so the learned prior carries over unchanged. Only the power flow model and its linearization are rebuilt.

Estimators trained on measurement–state pairs

The network learns the power flow and one measurement set. A new meter set, noise level or topology means a new model.

52–59 s to retrain a supervised estimator for one topology on one H100.

PoSE

The measurement set, its noise and the feeder model enter only through the correction. The prior is never retrained.

0.4–1.8 s to rebuild h, H and Σlin for a new topology.

Results

Most accurate on two feeders, calibrated on the 33-bus feeder

IEEE 33-bus feeder with three years of measured household load and rooftop PV data: three measurement sets, two noise levels and two PV penetrations, 1,000 test snapshots each. The unbalanced three-phase 240-bus Iowa feeder has 455 node-phases and a 386-dimensional injection state.

6.7–7.5%
lower injection CRPS than a full-covariance Gaussian prior, in all 12 settings
0.870–0.877
coverage of the 90% intervals, against an attainable 0.882. Supervised estimators cover 37–78%
240-bus
unbalanced three-phase Iowa feeder, lowest injection, voltage and branch-current errors of all estimators
0.2–0.6 s
per snapshot with PoSE-fast, at the same accuracy. Without retraining, it beats Gaussian priors and retrained supervised estimators on seven reconfigured topologies
Two dot plots. (a) Injection CRPS relative to WLS, PoSE with the largest reduction. (b) Coverage of 90 percent intervals, PoSE just left of the attainable line, Gaussian priors to its right, supervised estimators far left.
Accuracy and calibration. Injection accuracy and calibration of each estimator, one marker per measurement set and noise level (six per PV scenario), 1,000 test snapshots each. (a) Injection CRPS relative to WLS, the reference of the main table. (b) Coverage of the central 90% intervals of the active injections. The vertical line is the coverage that exact samples attain with K = 100, 0.882.
Four panels over one test week. Net injection at bus 13, voltage at bus 17, branch 12 current, and posterior densities at bus 13; PoSE bands tighten on the truth and stay asymmetric.
One week of operation and the shape of the posterior. Estimates over the test week of 8–14 July 2011 on the high-PV feeder, S2 at nominal noise, 100 samples. (a) Net active injection at bus 13. (b) Voltage magnitude at bus 17, the unmeasured bus with the most true voltage violations in the week. (c) Current of branch 12, which feeds bus 13, in percent of its rating. Bands are the central 50% and 90% sample intervals of PoSE-fast, dashed lines those of WLS, and shading marks true violations. (d) Kernel density estimates of the bus-13 injection at the marked snapshot under the learned prior and the PoSE-fast posteriors for S1, S2 and S3, with the WLS posterior for S2 dashed. The PoSE-fast posteriors are asymmetric.

Injection CRPS (kW) and coverage of 90% intervals, S2 at nominal noise, IEEE 33-bus feeder.

MethodCRPS, base PVCoverageCRPS, high PVCoverage
WLS8.270.94111.560.952
Correlated Gaussian6.940.9067.870.904
Pooled Gaussian6.760.9027.680.900
Gaussian mixture6.910.8797.890.881
Supervised MLP7.780.4158.610.490
Supervised flow6.870.7657.840.762
PoSE (ours)6.420.8747.330.876

Video

PoSE in about two minutes

Citation

BibTeX

@misc{lin_pose,
  author        = {Lin, Nan and Palensky, Peter and Vergara, Pedro P.},
  title         = {Bayesian Distribution System State
                   Estimation with Flow Matching},
  year          = {2026},
  eprint        = {2610.40728},
  archivePrefix = {arXiv},
  primaryClass  = {cs.LG},
  doi           = {10.48550/arXiv.2610.40728}
}