When hydrogen is blended into a natural-gas pipeline, operators still need to track how each pipe is performing: its friction, its effective diameter, and any slow degradation. Today's tools estimate these quantities by fitting a flow model to sparse pressure and flow sensors. Blending breaks that habit in a specific way. A pocket of hydrogen-rich gas moving down a pipe changes the pressure drop, and so does a pipe whose inner wall is fouling. If the model's thermodynamics are even slightly wrong, the fitting procedure cannot tell the two apart. It reports a pipe whose friction "drifts" every time a hydrogen front passes.
We propose to build and test an estimator that tracks pipe parameters as they change over time while composition also varies across the network. It has two ingredients that current estimators lack. First, it uses a real-gas equation of state, meaning a thermodynamic model that corrects the ideal gas law for molecular interactions at pipeline pressures. Second, it uses the fact that composition travels with the flow, which is slow, while pressure signals travel at the speed of sound, which is fast. Our central claim is falsifiable. Ideal-gas estimators applied to blended networks will produce spurious parameter drift that is phase-locked to the local passage of composition fronts. A composition-aware, real-gas estimator removes that artifact and still recovers genuine drift.
Core Claim
In the friction-dominated regime that governs slow pipeline transients, the pressure drop along a pipe of length $L$ and diameter $D$ satisfies approximately
$$p_{\mathrm{in}}^2 - p_{\mathrm{out}}^2 \approx \frac{\lambda L}{D}\, \bar{c}^2\, \phi|\phi|,$$
where $\lambda$ is the friction factor, $\phi$ is mass flux per unit area, and $\bar{c}^2$ is the pipe-averaged value of $p/\rho$. With a real gas, $p/\rho = Z(p,T,\eta)RT/M(\eta)$, where $Z$ is the compressibility factor, $M$ is the mixture molar mass, and $\eta$ is the hydrogen mass fraction. Every paper that currently estimates pipe parameters models only homogeneous natural gas. Every paper that models blending sets $Z=1$ or uses a linear blend of constituent sound speeds. An estimator that fits $\lambda$ with a wrong $\bar{c}^2$ absorbs the error, so that
$$\frac{\hat{\lambda}(t)}{\lambda(t)} \approx \frac{\bar{c}^2_{\mathrm{true}}(t)}{\bar{c}^2_{\mathrm{model}}(t)}.$$
This ratio changes with $\eta$ and $p$, and therefore with time as fronts move. The estimated friction inherits a false time dependence whose timing is set by advection lag.
The artifact exists because of two facts working together. Methane and hydrogen depart from ideal behavior in opposite directions at pipeline pressures, and the file records that real mixture equations of state carry substantial uncertainty (Nonideal Compressible Fluid Dynamics of Dense Vapors and Supercritical Fluids). The artifact is also avoidable, because genuine wear and composition-induced changes have different space–time signatures. Wear is fixed to a pipe and evolves slowly or in steps. Composition effects move at flow velocity from injection nodes. As far as the file shows, nobody has named this confounding, measured it, or designed around it.
We are candid about the role of non-ideal compressible fluid dynamics here. Pipelines at 3–6 MPa (Dynamic Optimization and Optimal Control of Hydrogen Blending Operations in Natural Gas Networks) are nowhere near the dense-vapor regime where exotic wave behavior such as rarefaction shocks appears. We borrow two things from that field. The first is its computational machinery: tabulated real-gas properties replace expensive direct equation-of-state calls, as SU2 does with Span-Wagner models (Accuracy assessment of the Non-Ideal Computational Fluid Dynamics model for siloxane MDM from the open-source SU2 suite). The second is its attitude toward thermodynamic uncertainty: mixing-rule error is a quantity to be propagated, not ignored.
Relation to Prior Work
Three estimation papers motivate the gap and supply our method.
State and Parameter Estimation for Natural Gas Pipeline Networks Using Transient State Data jointly estimates states and per-pipe friction by nonlinear least squares over 24-hour periodic horizons. It reports state errors below 1.5% at noise up to 1.5%, and marked degradation at 10% noise.
Dynamic State and Parameter Estimation for Natural Gas Networks using Real Pipeline System Data scales this approach to a 78-node industrial network with about 40% sensor coverage. It finds that estimated friction departs from planning values.
Physics-Informed Recurrent Network for Gas Pipeline Network Parameters Identification embeds linearized pipe equations in a recurrent network whose weights are physical constants. It reports parameter errors below 0.2% on GasLib.
All three assume a single homogeneous gas, ideal or constant-sound-speed thermodynamics, and time-invariant parameters. We reuse the least-squares formulation of the first two as our computational backbone. We change the physics (species transport and a real-gas mixture model) and the parameterization (time-varying $\lambda(t)$).
Four blending papers supply the forward model and constrain the design.
Optimal Control of Transient Flows in Pipeline Networks with Heterogeneous Mixtures of Hydrogen and Natural Gas and Dynamic Optimization and Optimal Control of Hydrogen Blending Operations in Natural Gas Networks give lumped-element transient models with species advection, but assume known, fixed parameters and ideal gas. The first reports that a 4% composition swing produces pressure deviations up to 3.5 MPa, which shows how large composition-driven pressure signals are relative to plausible wear signals.
Modeling and Optimization of Steady Flow of Natural Gas and Hydrogen Mixtures in Pipeline Networks shows that smooth-by-absolute-value nodal mixing outperforms integer and complementarity formulations for reversing flows. We adopt that formulation.
Transitions from Monotonicity to Chaos in Gas Mixture Dynamics in Pipeline Networks imposes an important constraint. Under moderate-frequency, high-amplitude injections, blended networks can become chaotic. In that regime, long-horizon least-squares fits are ill-posed in principle, and estimation windows must shrink.
Optimization of Hydrogen Blending in Natural Gas Networks for Carbon Emissions Reduction explicitly leaves non-ideal equations of state such as AGA8 to future work. That is the thermodynamic step we take, but on the inverse problem rather than the steady forward one.
From time-varying estimation we take the parameter priors. The random-walk state-space view, as used in Using a population-based Kalman estimator to model the COVID-19 epidemic in France, and the change-point view of Bayesian SIR model with change points with application to the Omicron wave in Singapore give two ways to represent $\lambda(t)$. We need both, because fouling is gradual while events like partial blockages are abrupt.
We deliberately do not use smooth Gaussian-process priors like those in Manifold-constrained Gaussian process inference for time-varying parameters in dynamic systems. That paper itself notes they cannot capture jumps. How (Not) to Hybridize Neural and Mechanistic Models for Epidemiological Forecasting warns that flexible time-varying components drift into unobserved dimensions under partial observability. That is the same failure we predict for composition absorbing into friction, seen from the machine-learning side.
Research Program
We will build a moving-horizon estimator: a least-squares fit repeated over a sliding time window. The forward model is the lumped-element isothermal pipe model with species advection and smooth nodal mixing, with one change. The state relation $p=\rho\,Z(p,T,\eta)RT/M(\eta)$ is evaluated from a smooth table fitted to GERG-2008 or AGA8 mixture properties, so the solver sees differentiable derivatives.
The unknowns fall into three groups. The first is the network state: densities, flows, and nodal hydrogen fractions. The second is the injection composition profile at each hydrogen source, which is assumed unmeasured or measured only coarsely. The third is per-pipe friction $\lambda_e(t)$. We model friction as a sum of a slow random-walk component and a sparse jump component, the jumps penalized by an L1 term on first differences. The objective is weighted pressure and flow misfit at sensor nodes plus these priors. It is solved with IPOPT in Julia/JuMP, matching the existing estimation literature, over windows shortened adaptively when the injection regime is near the chaotic boundary identified in the chaos paper.
The analytical contribution is an identifiability study built on the aliasing relation above. We will linearize the estimator around blended operating points and compute the sensitivity (Fisher information) of the observations with respect to $\lambda_e(t)$ and with respect to the injection profile. The goal is to characterize, as a function of sensor placement, composition-sensor coverage, and injection excitation, when the two are separable. We expect separability to come from the transport delay. A composition change at an injection node reaches pipe $e$ after a lag set by upstream flow velocities, so it leaves a delayed, moving fingerprint across successive pipes, whereas wear leaves a stationary one. Where flow is slow or reverses, this fingerprint weakens. We expect identifiability to fail there, and we will report where.
Finally, the file flags mixture equation-of-state uncertainty as large. We therefore treat one mixture correction coefficient as uncertain, sampled from a prior. This tests whether our estimator's advantage survives a thermodynamic model that is itself imperfect.
Baselines
The naive reference point is the planning model: static friction values from nominal pipe roughness, ideal-gas mixture thermodynamics with the linear sound-speed blend, and no estimation. It is run forward with the true boundary conditions. It shows how much any estimation buys.
The strongest existing competitor is joint state and static-parameter least squares in the style of State and Parameter Estimation for Natural Gas Pipeline Networks Using Transient State Data and Dynamic State and Parameter Estimation for Natural Gas Networks using Real Pipeline System Data. We extend it minimally with species advection so it can run on blended data at all, keeping ideal-gas thermodynamics and one constant friction per pipe. Its reported reference performance is state estimation relative error "generally below 1.5% for noise levels up to 1.5%" on the 25-node synthetic network. The 10% noise results are described only qualitatively as marked deterioration.
We also report Physics-Informed Recurrent Network for Gas Pipeline Network Parameters Identification on the GasLib topologies, whose reported static parameter error is below 0.2% on homogeneous gas. That number was obtained with no blending and no drift, so we will re-run it on our blended data rather than compare against the published figure.
The most dangerous simple competitor is an Extended Kalman Filter with random-walk friction and ideal-gas mixture thermodynamics. It is the textbook answer to "parameters that change over time."
For fairness, every method sees the same simulated sensor streams, the same noise levels (1.5% and 10%, matching the prior paper), the same sensor coverage, and the same composition-sensor availability. Each method gets the same hyperparameter-tuning budget on a held-out simulation seed; for the filter, this means tuning its process-noise level.
Two ablations isolate our ingredients. The first keeps our estimator but reverts to ideal-gas thermodynamics, isolating the equation of state. The second keeps real-gas thermodynamics but fixes composition to its time-averaged value, isolating composition tracking.
We will say we beat the baselines if three things hold. First, our friction trajectory error is lower than the static and filter baselines in scenarios with true drift. Second, our spurious drift in no-drift blended scenarios is at least several times smaller. Third, our 24-hour-ahead pressure forecasts stay within the error band the static estimator achieves on pure natural gas.
Why not just…?
Why not just run a Kalman filter with a random-walk friction and the existing ideal-gas blend model? Our core claim predicts this is exactly what fails. A random walk gives the filter permission to move $\lambda$, and a thermodynamic mismatch that varies with $\eta$ gives it a reason to. It will track the front rather than the wall. This is directly testable: in simulated scenarios with constant true friction, we measure the cross-correlation between the filter's estimated friction and the local hydrogen fraction delayed by the advection lag. If that correlation is negligible, our central claim is wrong, and we will say so.
Why not just calibrate friction once with a real-gas model and keep it fixed? If pipes do not change within operating horizons, this is sufficient, and the time-varying component is unnecessary. The real-data evidence that planning values are off (Dynamic State and Parameter Estimation for Natural Gas Networks using Real Pipeline System Data) shows miscalibration but not drift within the month-long record. We therefore treat this as a real threat. The "real-gas, static" configuration is run in every scenario. In scenarios without injected drift we expect it to tie with our method. Only in step-change and ramp scenarios should our method win. If it does not win there either, the time-varying part of the proposal is not earned.
Why not just install gas chromatographs so composition is measured everywhere? With full composition sensing, the confounding largely disappears, and the ideal-versus-real-gas question reduces to a known-input correction. This alternative is the most honest threat. Composition analyzers are sparse in practice, and the file records only about 40% coverage even for pressure and flow meters. To settle it, we sweep composition-sensor coverage from injection nodes only up to all nodes and report where our advantage vanishes. That turns the threat into a sensor-placement recommendation.
Why not just learn the mapping from sensors to parameters with a large recurrent network? On homogeneous networks, a physics-structured recurrent model matched accuracy with roughly a thousandth of the parameters of an LSTM, about 100 versus about 100,000 on GasLib-135 (Physics-Informed Recurrent Network for Gas Pipeline Network Parameters Identification). Unstructured latent models are also known to drift under partial observability (How (Not) to Hybridize Neural and Mechanistic Models for Epidemiological Forecasting). A black-box model has no mechanism for attributing a pressure change to wall friction rather than composition, which is the attribution we care about. We include an LSTM trained on the same simulations as a sanity reference, not as a main competitor.
Proposed Experiments
Synthetic ground truth. We generate data with a finer-grid, real-gas mixture simulator on four topologies: the 4-node cyclic network of Optimal Control of Transient Flows in Pipeline Networks with Heterogeneous Mixtures of Hydrogen and Natural Gas, the 8-node looped network of Dynamic Optimization and Optimal Control of Hydrogen Blending Operations in Natural Gas Networks, and GasLib-40 and GasLib-135 with hydrogen injection added at selected supply nodes. On each we inject four friction histories: constant, slow ramp, single step, and step plus ramp. Injection profiles span fixed blends, the 8–12% fluctuating profile of the transient-control paper, and sinusoidal injections chosen to lie in the monotone, periodic, and chaotic regimes mapped in Transitions from Monotonicity to Chaos in Gas Mixture Dynamics in Pipeline Networks. The resulting data have known true friction trajectories and known true composition fields.
Metrics. We report five: friction-trajectory error per pipe; spurious-drift amplitude together with its lagged correlation with local composition; detection delay and false-alarm rate for step events; state error at unmetered nodes; and 24-hour pressure forecast error.
Real-data negative control. On the 78-node industrial dataset, which carries no hydrogen, our estimator should recover static friction values consistent with the prior analysis and report no drift correlated with anything compositional. This checks that it does not hallucinate dynamics.
Decisive checks. The first decides whether the confounding is real. Under constant true friction on blended networks, the ideal-gas estimators (the static baseline allowed to vary, the Kalman filter, and our own ideal-gas ablation) must show friction estimates whose fluctuations track $\bar{c}^2_{\mathrm{true}}/\bar{c}^2_{\mathrm{model}}$ along each pipe with the predicted advection delay. The real-gas estimator must not. The second decides whether the fix is worth having. Under a true step in friction, the real-gas time-varying estimator must localize the step in both pipe and time, while the static real-gas estimator smears it and the ideal-gas estimators bury it under front-induced artifacts. The third decides where it breaks. The identifiability analysis must correctly predict which pipes lose separability, for example low-velocity or flow-reversing loop segments and chaotic-regime injections, and the empirical errors must rise there and nowhere else. The third check also contains the mixing-rule stress test: if a plausible error in the mixture correction coefficient restores most of the spurious drift, the conclusion becomes a claim about required thermodynamic accuracy rather than about estimator design.
References
- Nonideal Compressible Fluid Dynamics of Dense Vapors and Supercritical Fluids
- Dynamic Optimization and Optimal Control of Hydrogen Blending Operations in Natural Gas Networks
- Accuracy assessment of the Non-Ideal Computational Fluid Dynamics model for siloxane MDM from the open-source SU2 suite
- State and Parameter Estimation for Natural Gas Pipeline Networks Using Transient State Data
- Dynamic State and Parameter Estimation for Natural Gas Networks using Real Pipeline System Data
- Physics-Informed Recurrent Network for Gas Pipeline Network Parameters Identification
- Optimal Control of Transient Flows in Pipeline Networks with Heterogeneous Mixtures of Hydrogen and Natural Gas
- Modeling and optimization of steady flow of natural gas and hydrogen mixtures in pipeline networks
- Transitions from Monotonicity to Chaos in Gas Mixture Dynamics in Pipeline Networks
- Optimization of Hydrogen Blending in Natural Gas Networks for Carbon Emissions Reduction
- Using a population-based Kalman estimator to model the COVID-19 epidemic in France: estimating associations between disease transmission and non-pharmaceutical interventions
- Bayesian SIR model with change points with application to the Omicron wave in Singapore
- Manifold-constrained Gaussian process inference for time-varying parameters in dynamic systems
- How (Not) to Hybridize Neural and Mechanistic Models for Epidemiological Forecasting