← All research

Research

GlassNet: Feed-to-Glass Formulation Surrogate

active
machine learningpytorchsurrogate modelingglass chemistrynuclear engineering

PytorchNN_GlassApp ↗


The problem

A vitrification facility receives waste as a lab report: elemental analytes, a received volume, maybe an oxide breakdown. Before anything melts, the feed has to be formulated. Some combination of glass formers has to balance the sodium, keep viscosity inside the melter window, survive the product consistency test, and carry as much waste as the acceptance limits allow. Each candidate recipe is a walk through a chain of property models, and each formulation is a constrained optimization. Planning a mission years out can afford that cost. A lab receiving a batch wants a first-pass assessment the same day.

The campaign builder in this lab solves those optimizations mission-wide, and in recent work I exported its decisions as a training corpus: 3,503 campaign-level formulations across 34 waste scenarios and 10 waste families, every row carrying the feed oxide blend, the optimal recipe, the final glass composition, and thirteen property outputs. GlassNet is what that corpus becomes when you want the answer in milliseconds instead of minutes.

The approach

Assemble what physics hands you for free

GlassNet is a three-head network with an analytical core. A shared trunk reads 57 feed oxide fractions plus two auxiliary inputs, all quantile-transformed to Gaussian. Head A predicts the waste loading. Head B predicts ten glass-former fractions conditioned on that loading, decoded through a renormalized sigmoid so the recipe sums to exactly one minus the waste loading, whatever the network outputs. The glass composition is never predicted. It is assembled from the mass balance glass = WL·feed + Σ xₖeₖ, an identity the dataset obeys to 4×10⁻⁴ wt%. Composition sums to 100 by construction, the mass ledger closes by construction, and the network spends its capacity only where learning is needed. Head C predicts the thirteen properties from the assembled glass, in transformed space.

Training in phases, deterministic and fast

Trunk and waste-loading head train first, the recipe head second against a frozen trunk, then an end-to-end fine tune, with the property head trained on true compositions. The whole run is deterministic and finishes in about six seconds on a laptop CPU.

Two splits, because they fail differently

A stratified random split hides how much sibling scenarios overlap in composition space, so the headline numbers come from holding out entire waste families the network never sees. Properties are also scored by flag agreement at the published acceptance limits, and only where the data straddle the limit. The rebuilt training corpus contains failing and near-limit rows, which optimizer-generated datasets normally starve you of, so the flag statistics mean something.

An app that shows its work

The Streamlit app takes a lab report directly. Elemental analytes convert to the oxide basis with exact stoichiometry (Al to Al₂O₃ at ×1.8895, Na to Na₂O at ×1.3480), or you enter oxides raw. Every prediction ships with three views computed from the trained weights: a PCA map of all 3,503 training feeds with your feed’s position and nearest-neighbor envelope, autograd attribution ranking what drives the waste loading, and a 50-pass Monte Carlo dropout consensus reporting the spread of the network’s own answers. A batch volume scales glass tonnage and per-former powder mass; composition and properties stay batch-invariant, as the physics requires.

Verified results

  • Waste loading: 0.62 wt% mean absolute error on rows from entirely unseen waste families, 0.82 wt% on the random split.
  • Recipe: 0.0051 mean absolute fraction of former mass, under one percent, close to the optimizer noise floor in the labels themselves.
  • Viscosity at 1150 °C: 0.10% median relative error, 100% flag agreement at the acceptance limit.
  • Acceptance screening: zero false acceptances on the viscosity, conductivity, crystallization, and alkali-ratio limits; 98.5% flag agreement on the product consistency test, whose limit the rebuilt data genuinely straddle.
  • Composition: 1.34 wt% mean per-row worst-oxide error, 0.40 wt% p95 per oxide.
  • Against a closed-form ridge baseline on identical transformed inputs: 4.5 wt% waste-loading error versus 0.62. A linear model cannot cross family boundaries; the network holds level across them. That factor of seven is the argument for the capacity in one comparison.
  • Speed: one feed in under 50 ms on a CPU core, the whole 3,503-row corpus in under a second, against minutes per formulation through the optimizer.

What’s next

The open gate is measurement. These errors are known against the formulation model, not against real glass, and a validation program against measured properties is what would make the surrogate admissible as a screening instrument. After that: active learning on the near-limit compositions the network flags, and closing the loop into mission planning, where a millisecond answer to “is there a passing glass for this blend” changes what the planner can ask. A white paper documenting the architecture, training, and validation backs the numbers; request a copy through the contact page.