Elamur Research

Physics-guided Neural Networks (PGNN): An Application in Lake Temperature Modeling

Paper · 2017 · Arka Daw, Anuj Karpatne, William Watkins et al.

Summary

A lake-temperature prediction can agree with the available measurements and still describe an implausible lake. Observations usually cover only particular depths and dates. Between those observations, a learned predictor may assign temperatures that imply denser water sitting above lighter water, contrary to the physical relationship used in this study. The paper introduces physics-guided neural networks, or PGNN, to address this gap between predictive accuracy and scientific consistency. Its central proposal is to give a neural network access to both measurements and scientific knowledge, while evaluating those sources of guidance separately.

The framework incorporates physics in complementary ways. A numerical lake simulator supplies an estimated temperature, which becomes an additional input alongside environmental drivers such as wind and air temperature. The network can use that estimate while learning corrections from observations. A separate training penalty discourages predictions that violate a known physical relationship. For the lake application, predicted temperatures are converted into water densities, and the penalty detects places where density decreases as depth increases. This penalty can be evaluated without measured temperatures, allowing a large collection of otherwise unlabeled depth–date combinations to influence learning.

The experiments concern Mille Lacs Lake and Lake Mendota. With training sets constructed around a target size of 3000 observations, PGNN achieves test root mean squared errors of 0.73 °C and 1.79 °C, respectively. The corresponding errors for the calibrated physical simulator are 1.69 °C and 2.77 °C. A neural network using environmental inputs alone also improves on the simulator’s temperature error, but often violates the density constraint. Adding simulated temperatures as inputs improves prediction further, yet does not by itself resolve those violations. The complete PGNN approach combines lower temperature error with much stronger adherence to the tested density relationship.

These results establish a useful distinction within machine learning: a simulator can provide informative features, while a scientific equation can impose an additional criterion for acceptable predictions. The contribution is the combination of those roles, supported by comparisons that isolate them. The evidence remains specific to temperature prediction in the studied lakes and to the particular density constraint. PGNN does not demonstrate that all relevant lake physics are satisfied, that a soft penalty guarantees valid predictions everywhere, or that the same gains will occur in every scientific application.

Interesting ideas

Treat simulation output as an informative feature

A simulator can help a learned predictor even when its own predictions contain substantial error. PGNN places the simulated temperature beside the environmental inputs, allowing the network to learn when the simulation is useful and when observations suggest a correction. This arrangement preserves information from an existing scientific system without forcing the final answer to equal its output. The idea applies wherever a numerical calculation captures meaningful structure but leaves systematic discrepancies: its estimate can become evidence for a learned correction instead of an unquestioned answer.

Use equations to learn from unlabeled cases

Scientific relationships can supply a training signal where measurements are unavailable. In the lake application, the network does not need the true temperature at every depth to discover that its predicted density ordering is inconsistent. It only needs its own temperature estimates, the temperature–density equation, and the ordering of depths. This gives the unlabeled grid a substantive role in training. Elsewhere, the same principle could apply when an output must satisfy a known balance, compatibility condition, or relationship with another quantity, provided that relationship can be evaluated meaningfully.

Check consequences in another variable

The network predicts temperature, but the consistency check operates on density. That change of variable matters because water’s density does not move monotonically with temperature across the relevant range. A rule that simply ordered temperatures by depth would miss the physical point. The reusable idea is to evaluate predictions through quantities that reveal their consequences. An apparently reasonable output may become clearly problematic after a scientifically justified transformation. Such a check is especially useful when the target variable alone does not make a violation easy to recognize.

Separate predictive error from validity

The evaluation reports temperature error on measured observations and physical inconsistency across a much larger grid. Those measurements answer different questions. The former asks how closely predictions match available evidence; the latter asks whether predictions satisfy a specified relationship beyond those observation points. Keeping them separate prevents an improvement in average error from concealing a serious structural defect. This is useful whenever outputs face requirements that are not fully represented by the supervised target, particularly when observations are sparse or unevenly distributed.

Isolate each route by which knowledge enters

PGNN0 receives simulated temperatures but does not receive the physical penalty. Comparing it with the ordinary neural network tests the value of simulator output as an input. Comparing it with PGNN tests the additional contribution of the equation-based objective. This experimental structure makes a hybrid system easier to understand. When a method introduces several sources of prior knowledge, intermediate variants can show which source changes accuracy, which changes consistency, and whether the benefits depend on their combination.

Match the evaluation split to the intended claim

The authors separate training and testing through contiguous periods rather than randomly mixing observations across time. Their concern is that temporally related observations could make a predictive system appear more general than it is. The broader lesson is to design evaluation and benchmarks around the structure that could create misleading success. For scientific prediction, that structure may involve time, location, or another source of dependence. The split should expose the relevant difficulty rather than merely produce convenient partitions.

Deep dive: Physics-guided Neural Networks (PGNN): An Application in Lake Temperature Modeling

Physics-guided neural networks combine lake simulations, observations, and density constraints to improve temperature prediction. · about 33 minutes to read

How Mova uses it

For Mova, the small transparent language system written in Rust, the useful connection is methodological. The lake equations themselves do not provide linguistic rules, and the paper supplies no evidence about a Mova implementation. A plausible application would preserve the distinction between an initial prediction, an independently stated constraint, and an evaluation that checks both. Any such application remains a proposed use rather than a reported feature.

One possible direction concerns explicit knowledge representation and reasoning. If Mova represents relationships in a form that can be inspected, it could assess a proposed interpretation against those relationships. The PGNN lesson is to identify a checkable consequence instead of assuming that a good task score already establishes consistency. For a language system, a candidate check might concern whether an interpretation agrees with an explicitly stored relation or with another part of the same analysis. That would be a linguistic design choice requiring its own justification; it would not inherit the authority of a physical law.

The hybrid-input idea offers another possible connection. A transparent rule component could produce a candidate analysis or a diagnostic signal, and another component could use that signal alongside evidence from the text. This resembles the role of the lake simulator’s output: a useful estimate that can be considered together with other inputs. The analogy does not require Mova to reproduce the neural architecture, numerical training procedure, or lake-specific objective. It suggests a way to retain access to explicit knowledge while allowing evidence to reveal its limitations.

The evaluation design is equally relevant. A proposed Mova extension could be assessed for task accuracy and for adherence to its declared constraints. An intermediate version could receive the rule component’s output without receiving a consistency objective, mirroring the conceptual distinction between PGNN0 and PGNN. Such a comparison would help determine whether the explicit component contributes useful information, whether the constraint catches additional errors, and whether either introduces unwanted restrictions.

The main caution is the status of the rules. The lake study begins from a stated physical relationship. A language-system constraint may instead encode a convention, an analytical choice, or a generalization with exceptions. Before adopting a penalty, Mova would need to make that scope visible. PGNN offers a disciplined pattern for combining evidence and constraints; it does not establish which linguistic constraints would be appropriate or how much weight they should receive.

The problem and its context

Sparse observations leave much of the prediction surface unchecked

The paper starts from a difficulty common to scientific prediction: the available labels may describe only a small and uneven portion of the phenomenon. A supervised learner is rewarded for matching those labels. If the observations omit important conditions, the learner can discover associations that look convincing within the recorded sample but behave badly elsewhere.

The authors argue that ordinary evaluation may fail to reveal this problem when both training and testing rely on limited observations. A predictor can perform well on the measured cases while exploiting relationships that do not extend to the broader system. Their objection is especially strong when predictions contradict established scientific understanding. A low error on a narrow set of measurements does not make an impossible physical configuration suitable for subsequent scientific analysis.

Lake temperatures make the issue concrete. Measurements vary across depths, seasons, and years. Some periods have many observations, while others have few or none. Even on a measured date, only particular depths may be sampled. A learned temperature profile can therefore pass close to the observed points while behaving implausibly below them.

This is more than a concern about interpolation quality. Temperatures imply water densities, and those densities imply whether a profile respects the relationship between density and depth used by the authors. An error metric computed only where temperatures were measured may overlook a violation elsewhere in the same profile.

Why temperature prediction matters

The ecological motivation is that water temperature influences the conditions in which aquatic organisms grow, survive, and reproduce. The paper connects warming water with changes involving invasive species and harmful algal blooms, drawing on the ecological studies it cites. It also identifies accurate temperature estimates as necessary for understanding changing conditions and examining future fish habitat.

Those applications require temperature information beyond the places and times where direct observations exist. The authors describe broad spatial coverage as incomplete, with some regions lacking observations altogether. A prediction method therefore has to do more than reproduce a dense historical record. It must provide useful estimates across gaps in measurement.

The task studied here concerns temperature at a specified depth and time. The spatial representation follows the vertical dimension of the lake. Environmental conditions at the surface, together with the processes that move and exchange heat, influence the resulting depth profile.

That framing gives the paper a clear target. It does not attempt to learn a complete ecological system. It asks whether a hybrid learning method can improve a particular physical quantity while respecting a meaningful relationship among temperature, density, and depth.

What a physical simulator already contributes

The paper uses the General Lake Model, abbreviated GLM, as its physical simulator. GLM represents processes that affect lake temperature, including solar heating at the surface, the weakening of radiation beneath the surface, mixing between layers, and heat loss associated with evaporation or longwave radiation.

Such a simulator provides substantial scientific structure before any neural network is trained. Its outputs reflect a mechanistic account of how environmental drivers influence the water column. This gives it a different source of information from a learner fitted directly to temperature observations.

The authors nonetheless emphasize that a physical simulator can remain imperfect. Some processes may be approximated because their full form is uncertain or computationally difficult. Parameters governing mixing, wind-related inputs, or water clarity may require adjustment for each lake. Calibration then searches for parameter settings that agree with observations.

That calibration has practical costs. It requires data, computational effort, and work tailored to an individual lake. The paper describes a tension between improving a lake-specific fit and making analysis feasible across many lakes. A simulator may therefore contain useful physics while still producing biased temperature estimates.

Why the paper does not choose either extreme

The authors place purely observational learning and exclusively physics-driven calculation at opposite ends of their conceptual picture. Each has something the other lacks. A neural network can extract relationships from measurements, but it has no inherent reason to honor a scientific equation. A simulator carries physical structure, but its chosen approximations and parameterization may limit how much it can learn from data.

The paper’s account of earlier hydrological debate reinforces this point. It refers to arguments that some physical approaches are too constrained by assumptions built into their parameterizations. The authors therefore do not treat scientific knowledge as a complete substitute for observation. They seek a combination in which data can reveal deficiencies in the physical calculation while physical knowledge limits implausible learned behavior.

The background also includes earlier hybrid approaches that predict corrections to a simulator. In residual learning, the learned component estimates the discrepancy between the simulator and observations. That correction is then added to the simulated value. The paper describes this as an established strategy and later compares it with the input-augmentation design used in PGNN.

The distinctive move is to combine hybrid prediction with an explicit scientific penalty. A simulator’s output may help the network predict accurately, but the network can still transform that input into an inconsistent answer. A separate equation-based objective addresses that remaining freedom.

Consistency as a second scientific requirement

The density constraint gives the authors an independently testable criterion. Their concern is not merely that the network lacks a verbal explanation. It is that its outputs can violate a relationship that can be calculated directly.

This connects the work to interpretability in a limited but practical way. A domain expert can inspect the consequence of predicted temperatures for density ordering. The result is a scientifically meaningful diagnostic of output behavior.

That diagnostic does not explain every network weight or every learned interaction. It instead makes one part of the output’s validity explicit. The paper’s larger argument is that scientific prediction benefits when such requirements participate in learning, instead of appearing only as objections after training is complete.

The method, step by step

Start with the inputs and the physical estimate

The framework begins with environmental drivers and a target quantity. In the lake application, the target is water temperature at a particular depth and date. The drivers include meteorological information, depth, and the day within the year. The paper gives solar radiation, wind speed, and air temperature as examples of the environmental measurements.

A conventional neural predictor would map those drivers directly to temperature:

f_NN: D → Y

Here, D denotes the collection of input drivers, Y denotes the target temperature, and f_NN denotes the neural mapping being learned. The arrow expresses the direction of prediction.

The physical simulator performs a related mapping:

f_PHY: D → Y_PHY

The function f_PHY is the physics-based calculation, and Y_PHY is its simulated temperature. This notation distinguishes the simulator’s estimate from the observed target Y. Agreement between them is desirable, but is not assumed.

PGNN combines the driver information with that estimate:

f_HPD: X = [D, Y_PHY] → Y

The abbreviation HPD names the hybrid combination of physics and data. X is the augmented input, formed by placing D and Y_PHY together. The function f_HPD learns a temperature prediction from that combined information.

This construction leaves room for different behavior depending on the simulator’s quality. If its estimate closely matches observations, the network can learn to rely on it. If the estimate has systematic errors, the network can use the drivers and measurements to learn adjustments. The design does not require the final correction to be additive.

Learning lake temperatures with physical guidance

The steps in order.

Learning lake temperatures with physical guidanceStep 1: Collect drivers and temperature observations1. Collect drivers and temperature observationsStep 2: Simulate temperatures with GLM2. Simulate temperatures with GLMStep 3: Combine drivers with simulated temperatures3. Combine drivers with simulated temperaturesStep 4: Predict temperatures using a neural network4. Predict temperatures using a neural networkStep 5: Convert predicted temperatures into densities5. Convert predicted temperatures into densitiesStep 6: Penalize unstable density ordering on unlabeled profiles6. Penalize unstable density ordering on unlabeled profilesStep 7: Optimize observation fit and physical consistency7. Optimize observation fit and physical consistency

Distinguish data fit from complexity control

The authors first state the usual supervised objective:

argmin_f {Loss(Ŷ, Y) + λ R(f)}

The symbol f denotes the candidate predictor being optimized. Ŷ denotes its predictions, while Y denotes observed targets. Loss measures disagreement between those predictions and observations. R(f) measures the predictor’s complexity, and λ controls how strongly that complexity term influences learning. The argmin operation selects a predictor that minimizes the expression.

Complexity control can discourage overly flexible solutions, but it does not specify which physical relationships predictions should satisfy. A simple-looking function can still be physically wrong. Conversely, matching observations closely does not establish behavior at unlabeled depths and dates.

The PGNN framework therefore introduces a separate source of guidance. It expresses known relationships involving the target and other physical variables, then measures violations of those relationships in the predictions.

Write physical knowledge as testable relationships

The paper presents a general equality form:

G(Y, Z) = 0

The function G represents a physical relationship that should hold exactly. Y is the target variable, and Z denotes other physical quantities needed to evaluate the relationship. A non-zero value indicates a discrepancy from the equality.

It also presents an inequality form:

H(Y, Z) ≤ 0

The function H represents a relationship whose acceptable values are nonpositive. Its positive values therefore indicate violations. The same roles for Y and Z apply.

These are templates rather than particular lake equations. The authors explain that such relationships may involve algebraic expressions or derivatives. They mention familiar physical equations as examples of the breadth of possible forms, but the lake implementation uses an algebraic conversion and an inequality across depth.

A general penalty follows:

Loss_PHY(Ŷ) = ‖G(Ŷ, Z)‖² + ReLU(H(Ŷ, Z))

Loss_PHY is the physical inconsistency penalty. The squared norm of G measures departure from the equality. ReLU is the rectified linear unit function: it preserves positive input and returns zero for nonpositive input. Applied to H, it penalizes the prohibited side of the inequality while assigning no penalty to acceptable values.

The crucial distinction is the use of Ŷ instead of a required observed target at every evaluated instance. If Z and the necessary inputs are available, the penalty can be calculated from the network’s outputs. An unlabeled case can therefore contribute to training even though its true temperature is unknown.

The authors require physical penalty terms that support the optimization procedure, describing continuity and differentiability as relevant criteria. Neural-network differentiation machinery then propagates the penalty’s effect back to the learned parameters.

Combine the objectives

The complete generic objective adds the physical term:

argmin_f {Loss(Ŷ, Y) + λ R(f) + λ_PHY Loss_PHY(Ŷ)}

The supervised loss and complexity term retain their earlier meanings. The coefficient λ_PHY determines the influence of the physical penalty relative to the other parts of the objective.

This is a soft-constraint formulation. Physical violations increase the objective, encouraging the optimizer to remove them. The equation does not itself restrict the predictor to a class in which violations are mathematically impossible.

That distinction matters for interpretation. The authors’ results show that the chosen penalty strongly improves consistency in their experiments. The construction should nonetheless be understood as training guidance whose effectiveness is measured, rather than as a universal proof of validity.

The labeled and unlabeled collections also play different roles. Measured temperatures support the supervised loss. The depth–date grid supports the physical loss, including at locations without temperature observations. Their combination narrows the set of attractive solutions more than either source of guidance alone.

Use a fully connected network for temperature

The lake implementation uses a multilayer perceptron. Each hidden layer combines its inputs linearly, adds a bias, and applies an activation function. The first hidden layer begins with the augmented input:

z₁ = W₁ᵀ x + b₁

The vector x contains the input attributes for an individual case. W₁ is the first layer’s weight matrix, the superscript T indicates transposition, b₁ is its bias vector, and z₁ is the resulting vector before activation.

Later hidden layers use the preceding layer’s activated outputs:

zᵢ = Wᵢᵀ aᵢ₋₁ + bᵢ, for i = 2 to L

The index i identifies a hidden layer, and L is the total number of hidden layers. The vector aᵢ₋₁ contains the previous layer’s activations. Wᵢ and bᵢ are the current layer’s weights and biases.

The activation step is:

aᵢ = f(zᵢ), for i = 1 to L

Here f denotes the hidden-layer activation function, instead of the entire predictor used in the earlier optimization notation. The vector aᵢ is the activated output of layer i. The paper’s formulation leaves the activation expressed generically.

The output layer produces the temperature estimate:

ŷ = w_L₊₁ᵀ a_L + b_L₊₁

The scalar ŷ is the predicted temperature for the case. The vector w_L₊₁ and scalar b_L₊₁ are the output layer’s weights and bias, and a_L is the final hidden representation.

The experiments use 3 hidden layers with 12 nodes in each layer. This is a direct feed-forward architecture. It receives temporal information through its inputs, but does not explicitly maintain a recurrent state describing the lake’s evolving history.

Fit temperatures with squared error

The supervised term averages squared temperature discrepancies:

Loss(Ŷ, Y) = (1/n) Σᵢ₌₁ⁿ (yᵢ − ŷᵢ)²

The number n is the count of labeled training instances. For instance i, yᵢ is the observed temperature and ŷᵢ is the predicted temperature. Squaring makes discrepancies non-negative, and averaging expresses the loss per labeled case.

The network weights also receive norm-based regularization:

λ R(W) = λ₁ ‖W‖₁ + λ₂ ‖W‖₂

W denotes the collection of network weights. The L₁ and L₂ norms are separate measures of their magnitude, controlled by λ₁ and λ₂. The expression above retains the norm form stated in the paper; the L₂ term is not rewritten as a squared norm.

These terms constrain the learned parameters in a general statistical sense. The physics term adds a more specific requirement about the meaning of the outputs.

Convert temperature into density

Water temperature alone is not the quantity that should be ordered monotonically with depth. The authors use an explicit physical conversion:

ρ = 1000 × (1 − ((Y + 288.9414) × (Y − 3.9863)²) / (508929.2 × (Y + 68.12963)))

The symbol ρ denotes water density, and Y denotes temperature. The numerical constants specify the temperature–density relationship used in the paper. Substituting a predicted temperature for Y produces a predicted density.

The conversion is nonlinear. The paper explains that water reaches its greatest density around 4 °C. Temperatures on different sides of that point therefore cannot be treated as if a higher temperature always implied the same direction of density change.

This is why the method does not simply demand that temperature increase or decrease with depth. It first asks what density each predicted temperature implies. The subsequent consistency check operates on that derived quantity.

Compare densities at ordered depths

The physical relationship used for the lake application is:

ρ[d₁, t] − ρ[d₂, t] ≤ 0, if d₁ < d₂

The indices d₁ and d₂ identify depths, with larger depth values lying farther below the surface. The index t identifies a shared time. The expression states that density at the shallower depth should not exceed density at the deeper depth.

For training, the authors organize unlabeled inputs on a regular grid. They compare neighboring depth positions at each date:

Δ[i, t] = ρ̂[dᵢ, t] − ρ̂[dᵢ₊₁, t]

The symbol ρ̂ denotes density calculated from a predicted temperature. The index i identifies a neighboring depth pair, and Δ[i, t] is the shallower predicted density minus the deeper predicted density at time t.

A positive Δ indicates the prohibited ordering. A nonpositive Δ satisfies the relationship for that pair. Applying ReLU keeps the magnitude of a positive violation and discards values that already satisfy the constraint.

The complete lake-specific physical loss averages those positive violations:

PHY.Loss(Ŷ) = (1 / (n_t (n_d − 1))) Σₜ₌₁ⁿ_ₜ Σᵢ₌₁ⁿ_𝑑₋₁ ReLU(Δ[i, t])

The symbols n_t and n_d denote the numbers of time positions and depth positions in the grid. The inner sum covers neighboring depth pairs; the outer sum covers time. The denominator normalizes by the number of comparisons. Ŷ denotes the temperature predictions from which the densities were derived.

Because this loss uses predicted temperatures and known depth ordering, it does not require observed temperatures at the grid positions. It can therefore guide the network through a much larger set of conditions than the labeled data alone.

Construct the labeled and unlabeled collections

The authors evaluate the framework using temperature observations and environmental inputs for each lake. They describe 11 input drivers and note that some attributes are derived through domain-recommended procedures, including Growing Degree Days. The physical simulator is run to supply the temperature feature used by the hybrid network.

The unlabeled collection covers a depth grid spaced at 0.5m and daily dates extending from 02 April 1980 to 01 Jan 2016. The period contains 13,058 dates. Cases with missing values are removed, leaving 299,796 unlabeled instances for Mille Lacs Lake and 662,781 for Lake Mendota.

These instances have inputs and simulated temperatures but no required observed temperature target. Their role is to provide locations where the network’s implied density profile can be checked.

For the labeled split, the authors reserve a central interval for testing and use observations from the periods on either side for training. They expand the central test interval around the median date until the remaining observations meet the chosen training-size condition. This construction seeks to reduce the temporal dependence that could arise from randomly interleaving observations.

Optimize with shared settings

The neural implementations use Keras with a Tensorflow backend and the AdaDelta optimization algorithm. Training uses batches of 1000 and allows at most 10,000 epochs.

The early-stopping procedure holds out 10% of the training data for validation and uses patience of 500. Gradients are clipped when their L₂ norm exceeds 1. Inputs are standardized to mean 0 and standard deviation 1, with the same transformation applied to test inputs.

Both weight-regularization coefficients are set to 1 throughout the reported experiments. The physical coefficient is scaled as follows:

λ_PHY = std(Y²) / std(ρ)

The function std denotes standard deviation. Y² is squared temperature, and ρ is density. The authors use this expression to account for scale differences between the temperature-error term and the density-based penalty.

Weights are initialized uniformly between 0 and 1. Neural results are reported across 50 runs with different initial weights, using the mean and standard deviation of the evaluation measures. This repeated initialization addresses variability in fitting the network; it does not create additional lakes or independent observational records.

The authors also state that their code and datasets are publicly released. That availability supports inspection of the experimental procedure, while the scientific interpretation still depends on the particular data, constraints, and comparisons.

Experiments and results

The lakes provide different prediction settings

Mille Lacs Lake and Lake Mendota differ in both the size of the observational record and the temperature structure discussed by the authors. Their reported areas are 536 km² and 40 km², respectively. Both have relatively extensive measurements compared with similar lakes, while still containing substantial gaps in coverage.

For Mille Lacs Lake, the observational collection contains 7,072 temperatures spanning 17 June 1981 through 01 Jan 2016. Lake Mendota contributes 13,543 observations from 30 April 1980 through 02 Nov 2015. Those totals describe the overall labeled collections, not the number of training examples used in the main comparison.

The central-period test design is applied separately to each lake. The main experiments construct training collections around n = 3000, and the calibrated physical baseline uses those training data. The full unlabeled collection is used to evaluate the physical loss for each lake.

The authors characterize Mille Lacs Lake as generally well mixed, with bottom and surface temperatures more similar. Lake Mendota exhibits stronger stratification. This distinction helps interpret why a procedure that works on the former may still face a harder prediction problem on the latter.

What the comparison includes

PHY is the calibrated GLM simulator. It provides the reference for a physics-based prediction without the learned hybrid correction.

The data-only comparison includes a support vector approach with an RBF kernel and LSBoost regression trees. These methods receive the environmental inputs but no simulated-temperature feature or physics penalty. Their inclusion tests whether flexible nonlinear regression alone can recover the same benefits.

The neural comparison is especially informative. NN receives the drivers alone. PGNN0 receives the drivers and the simulator’s temperature estimate, but is trained without the density penalty. PGNN receives the same augmented inputs as PGNN0 and adds the physical objective.

This arrangement separates access to simulation output from enforcement of the density relationship. It also makes clear why an improvement from NN to PGNN0 should not be attributed to the penalty: that intermediate variant does not use it.

The metrics assess different kinds of success

Root mean squared error, abbreviated RMSE, measures temperature discrepancy on the labeled test observations. It is reported in °C, so the metric describes error in the same unit as the target.

Physical inconsistency is evaluated differently. The authors calculate the fraction of time positions at which a predicted profile violates the density–depth relationship. This can be assessed across the unlabeled grid because the check uses predicted temperatures rather than measured targets.

The training penalty and the evaluation metric should not be conflated. The penalty averages positive density discrepancies across neighboring depths and dates. The reported inconsistency measure asks how often a time profile contains a violation. One concerns the magnitudes used to guide optimization; the other concerns the frequency of inconsistent profiles.

A low temperature RMSE therefore does not automatically imply a low inconsistency measure. Much of the paper’s empirical argument comes from showing that these quantities can move separately.

Mille Lacs Lake: lower temperature error can conceal invalid profiles

The temperature results for Mille Lacs Lake show that the environmental data contain useful information beyond the calibrated simulator. NN improves on PHY, and PGNN improves further.

Mille Lacs Lake test temperature RMSE

PGNN has the lowest reported error among these settings.

Mille Lacs Lake test temperature RMSEPHY: 1.69PHY1.69NN: 1.18NN1.18PGNN (this paper): 0.73PGNN (this paper)0.73
The numbers
System or settingRMSE °C
PHY1.69
NN1.18
PGNN (this paper)0.73

The paper states that the support vector and boosted-tree approaches have higher test RMSE than PHY on this lake. It also reports physical inconsistency greater than 0.8 for those approaches. The available prose does not provide their exact temperature errors, so their relative standing is clearer than their precise numerical separation.

NN’s better temperature score is accompanied by density violations at nearly 73% of time positions. This is the central warning of the experiment. The network extracts predictive relationships from the drivers, but those relationships do not reliably preserve the physical ordering of density.

PGNN0 lowers temperature error further than NN, according to the authors’ account. Yet its inconsistency remains approximately 72% of time positions. Giving the network a physically informed input is therefore insufficient to make its final predictions physically consistent.

The complete PGNN procedure produces physical inconsistency close to 0. Its improvement combines accuracy on measured temperatures with adherence to the tested relationship across the larger grid. The evidence supports the value of the added penalty rather than the assumption that a simulator-derived feature alone carries enough protection.

Lake Mendota: the same distinction under stronger stratification

The reported errors are higher for Lake Mendota. The authors connect this difficulty to its more stratified temperature structure and the resulting challenge of approximating the driver–temperature relationship.

Lake Mendota test temperature RMSE

The full PGNN objective improves on the simulator and the neural comparisons.

Lake Mendota test temperature RMSEPHY: 2.77PHY2.77NN: 2.07NN2.07PGNN0: 1.93PGNN01.93PGNN (this paper): 1.79PGNN (this paper)1.79
The numbers
System or settingRMSE °C
PHY2.77
NN2.07
PGNN01.93
PGNN (this paper)1.79

The progression is informative because each neural comparison changes a particular part of the setup. NN learns directly from drivers. PGNN0 adds the simulator’s estimate. PGNN adds the physical penalty to that hybrid arrangement.

The authors describe PGNN’s Lake Mendota predictions as physically consistent as well as more accurate on average. That result matters because the penalty could, in principle, have forced the network towards a less accurate but more orderly profile. Here, the reported comparison supports improvement in both assessed properties.

The result should still be interpreted at the level measured. The test concerns temperature observations within the lake’s historical record, and consistency concerns the stated density relationship on the evaluation grid. It does not establish performance for every physical process associated with stratification.

How to read the broader comparison

The paper refers to an earlier calibration study reporting median RMSE of 1.47 °C across 28 lakes. The authors use that result to contextualize the practical importance of improving temperature prediction.

It is not a directly matched benchmark. The earlier figure aggregates a different lake collection, whereas PGNN is evaluated on the particular datasets and temporal splits described here. Its role is background context, not an additional baseline trained and tested under the same protocol.

The strongest evidence for PGNN therefore comes from the within-study comparisons. Those hold the application and evaluation procedure sufficiently close to identify useful differences between data-only learning, simulation-assisted learning, and simulation-assisted learning with the physical penalty.

The neural comparisons also report variability over repeated initializations. Error bars in the paper represent the mean with a standard-deviation range across the 50 runs. Exact standard deviations are not stated in the results prose, so the numerical claims above concern the explicitly reported errors and qualitative descriptions of consistency.

What the ablations show

Simulation features and equation-based guidance do different jobs

PGNN0 is the most direct ablation. It retains the simulator output as an input and removes the physical penalty. The comparison asks whether the penalty contributes anything beyond the information already supplied by the simulator.

For Mille Lacs Lake, PGNN0 improves temperature accuracy relative to NN while remaining inconsistent for approximately 72% of time positions. That combination is decisive for the paper’s argument. The hybrid input carries useful predictive information, but a learned transformation can use that information without preserving the relevant physical relationship.

The comparison between PGNN0 and PGNN then isolates the effect of adding the density-based objective within the basic hybrid design. The full approach achieves stronger consistency together with lower reported temperature error. In Lake Mendota, the explicitly stated RMSE values also distinguish the benefit of the augmented input from the further benefit of the penalty.

This does not imply that every simulator feature will be useful or that every physical penalty will improve accuracy. It shows that the particular sources of knowledge make distinguishable contributions in these experiments.

Reducing labeled data tests dependence on observations

The training-size study focuses on Mille Lacs Lake. The authors vary the labeled training size from 3000 down to 800 and examine both test RMSE and physical inconsistency.

As labels are removed, the temperature errors of the data-driven approaches increase. NN becomes less accurate than PHY for training sizes below 1500. That result exposes a weakness that is less visible in the larger-data comparison: the flexible predictor’s advantage depends on having enough observations to learn useful relationships.

The hybrid approaches degrade more gradually. The authors identify training sizes of 1250 and 1500 as settings where PGNN’s error is lower than the baselines. Their interpretation is that physical guidance helps prevent solutions that fit a limited sample through unreliable associations.

At training size 800, PGNN and PGNN0 have similar temperature errors. This is an important boundary on the accuracy claim. The penalty does not create the missing temperature information, and its effect on RMSE becomes less distinctive in that setting.

Consistency remains the clearer separation. The authors describe PGNN as consistent across all evaluated time positions in this study, while NN and PGNN0 violate the density relationship on more than 50% of time positions on average. PHY also has inconsistency near zero, reflecting the structure of its physical calculation.

The analysis therefore supports a narrower and more useful conclusion than “physics replaces data.” Physical guidance helps the network use limited data while maintaining a specified property, but it does not remove dependence on informative observations.

Increasing the penalty changes consistency more than error

The sensitivity analysis varies λ_PHY for Mille Lacs Lake. This coefficient controls how strongly density violations influence training.

The reported trend is that larger values produce more consistent profiles. At the same time, test RMSE does not change substantially across the examined settings. The authors regard this as desirable: the constraint becomes more effective without an evident loss of predictive accuracy.

This analysis shows that the penalty is an active component of learning instead of a decorative addition to the objective. Adjusting its influence changes the targeted behavior.

It does not establish a universally safe range or a general rule for selecting λ_PHY. The paper provides a scale-based choice for its experiments and a sensitivity study for the lake setting, while leaving broader selection questions open.

Profiles reveal errors hidden between measurements

The density-profile examples make the aggregate metrics easier to interpret. For a selected date, the authors convert each method’s predicted temperatures into densities and plot those densities against depth. Observed temperatures are converted in the same way to provide reference points.

In the Mille Lacs example, the simulator’s density profile is displaced from observations, indicating bias. The neural approaches move closer to the measured values. However, PGNN0 begins to predict decreasing density as depth increases beyond 6m.

That example explains how a low test error can coexist with an implausible profile. The observed depths constrain isolated locations, while the deeper region leaves room for a physically inconsistent shape. PGNN’s profile remains consistent while also matching the observations closely in the authors’ analysis.

The Lake Mendota example shows a related problem. PGNN0 predicts a density decrease between 10m and 12m. PGNN is described as giving the closest density estimates to the observations while preserving the depth relationship.

These are illustrative profiles rather than a substitute for the full evaluation. Their value is explanatory: they show the spatial form of errors that the overall inconsistency metric counts.

Alternative hybrid designs isolate the architecture choice

The paper also compares the basic input-augmentation design with residual-based alternatives. A residual target is defined as:

Y_Res = Y − Y_PHY

Y_Res is the discrepancy between observed temperature Y and simulated temperature Y_PHY. A residual learner estimates that discrepancy, which is then added to the simulator output to obtain a corrected temperature.

The basic residual design predicts the correction from the drivers. HPD-Res instead receives both the drivers and the simulated temperature before predicting the correction. It therefore combines input augmentation with an additive connection to the simulator output.

These architecture experiments omit the physical penalty. That choice isolates the effect of the hybrid design rather than mixing it with constraint enforcement.

Across the reported comparisons, HPD-Res performs somewhat better than the other designs. Its advantage is more pronounced for Lake Mendota. In Mille Lacs Lake, the basic residual approach is weakest, while the basic hybrid design performs almost as well as HPD-Res.

The authors suggest that access to the simulator output may help identify its own biases, while the additive structure preserves the advantages of learning corrections. They present that explanation as a possibility requiring further investigation. They also note that these experiments use different random initializations and Keras versions from the earlier comparison, so their exact results should not be treated as directly interchangeable.

Limitations

The authors identify extensions beyond the tested architecture

The authors explicitly recognize that lake temperature has temporal and spatial dependencies that the chosen feed-forward network does not fully exploit. They propose recurrent architectures as a direction for future work.

That proposal matters because the current predictor receives information about date and depth without explicitly representing the evolving state of the lake. The physical penalty links predictions across neighboring depths during training, but it does not turn the architecture into a complete dynamical description.

The authors also call for closer coupling between scientific and learned components. Their basic hybrid design passes the simulator’s output into the network. It does not learn every process inside the simulator jointly with the network or establish that input augmentation is the best possible combination.

The alternative residual experiments reinforce this limitation. Architecture choices affect performance, and the paper does not settle how to choose among them for other scientific problems.

The authors do not provide theoretical guarantees

The conclusions identify sample complexity and convergence as open theoretical questions. The paper does not prove how many labeled cases are required, how much the physical penalty reduces that requirement, or when optimization reaches a particular kind of solution.

The smaller-training-set experiment is empirical evidence of useful behavior in the studied setting. It is not a general bound on the amount of data saved by adding scientific knowledge.

Similarly, the objective encourages physical consistency but does not provide an architectural guarantee that every possible prediction will satisfy the constraint. Optimization balances several terms, and the resulting behavior must be checked.

This distinction remains relevant even when the measured inconsistency is close to zero. A favorable result on a large evaluation grid is strong evidence about that grid. It is not a proof covering every unseen environmental condition or every possible depth and time.

The tested physical property is deliberately narrow

A careful reader should distinguish the density constraint from complete physical validity. GLM represents a broader collection of lake processes than the penalty directly checks. The neural objective here does not enforce every energy transfer, mixing process, or water-budget relationship described in the simulator background.

A temperature profile can satisfy the density ordering while still having inaccurate temperatures or incorrect changes over time. Many different profiles can meet the same inequality. The constraint rules out a category of undesirable behavior; it does not uniquely identify the true lake state.

The scope of the reported phrase “physically consistent” is therefore important. In the evaluation, it refers to compliance with the stated density–depth relationship. Reading it as confirmation of all lake physics would go beyond the test.

The derived density values also come from predicted temperatures through a specified conversion. The penalty is not an independent density measurement. Its usefulness depends on the relevance of that conversion and ordering rule to the intended application.

The evaluation covers a limited set of environments

The experiments use Mille Lacs Lake and Lake Mendota. Their different thermal structures provide useful variation, but they do not establish performance across a broad range of lakes.

The paper does not report transfer to an unseen lake or a single predictor tested across unrelated scientific systems. Its generic formulation motivates those possibilities, while its empirical support comes from lake-specific training and evaluation.

The physical baseline is calibrated using observations. PGNN therefore draws on a pipeline that already includes labeled information in the simulator as well as in the neural fitting stage. The work does not show that the hybrid system eliminates calibration costs or can achieve the same results without a useful simulator.

The data-rich character of these lakes relative to similar lakes also deserves attention. The training-size study investigates reduced labels within an existing historical record. That differs from establishing performance in a region with no suitable observational record.

The temporal split has a particular interpretation

The test period lies in the middle of the observational history, with training observations drawn from the periods before and after it. The design addresses concerns about temporal dependence between randomly assigned observations.

It is therefore a historical-gap evaluation. The paper does not establish the same result for a deployment in which all test dates occur after all training dates.

That distinction does not invalidate the experiment. It specifies what generalization has been examined. Predicting an unobserved interval within a record and forecasting future conditions can require different kinds of evidence.

The physical loss is also evaluated using the entire available unlabeled grid. The learner can therefore receive constraint guidance at depth–date positions that lack supervised temperature labels, including within the broader evaluation period. The experiment demonstrates the value of that unlabeled access, instead of a setting where all information about the test-period inputs is unavailable.

The metrics do not capture every consequence of an error

The inconsistency metric records the fraction of time profiles with a violation. It does not, by itself, describe how large each violation is or how much of the profile is affected.

The training loss includes violation magnitude, but the reported frequency measure answers a different question. A reader should therefore avoid interpreting a particular inconsistency fraction as a complete description of physical error severity.

RMSE also summarizes rather than exhausts predictive behavior. It evaluates agreement at measured temperatures and can be influenced by where those observations occur. Sparse coverage remains relevant even when a test split has been carefully constructed.

The profile examples address some of that concern by showing behavior away from observed depths. They remain selected illustrations. The paper does not turn them into a comprehensive analysis of every date, season, and depth-dependent error pattern.

Interpretation and scientific discovery remain further steps

The authors propose examining PGNN outputs to diagnose deficiencies in the physical simulator. They also suggest stronger connections with interpretability and the use of other scientific relationships.

Those are research directions rather than completed demonstrations of mechanistic discovery. A network correcting a biased simulator does not automatically reveal which omitted process caused the bias.

Likewise, satisfying a known equation makes an output easier to assess along that dimension, but does not explain the full internal computation. The paper establishes a practical form of scientific guidance and validation, leaving deeper explanations and broader guarantees unresolved.

What came after

No documented later-work account is available here to establish which subsequent papers adopted or extended PGNN. The evidence supports describing the research directions the authors proposed, while leaving their later realization unclaimed.

One direction is to represent lake dynamics more explicitly. The authors suggest recurrent neural architectures because temperature depends on conditions across time as well as depth. Such a development would extend the chosen feed-forward predictor, but the paper does not provide results for it.

Another direction concerns the relationship between the learned correction and the simulator. The residual comparisons already show that different combinations behave differently. The authors call for tighter integration and for further investigation of when each hybrid design is appropriate.

They also propose using improved predictions to investigate the simulator’s shortcomings. The relevant question would move from whether the hybrid prediction is better to what its corrections reveal about missing or simplified physical processes. The paper identifies that possibility without establishing a completed diagnostic procedure.

A further line of work would formalize the learning consequences of scientific penalties. The authors ask for theory concerning data requirements and optimization behavior. Such analysis would help distinguish the empirical advantages observed in the lakes from conditions under which those advantages could be expected more generally.

Finally, the paper proposes extending the idea beyond the particular temperature–density relationship. Other scientific equations could guide other prediction tasks, and the conclusions also raise the possibility of generative learning shaped by physical knowledge. These suggestions express the intended reach of PGNN: scientific relationships can participate in learning even when direct labels are unavailable. The lake experiments establish a concrete example of that principle, with clear evidence for its usefulness and clear limits on how broadly the results can be read.

Cite

Cite as Arka Daw, Anuj Karpatne, William Watkins, Jordan S. Read and Vipin Kumar. 2017. Physics-guided Neural Networks (PGNN): An Application in Lake Temperature Modeling. arXiv (Cornell University).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1710.11431 · arXiv 1710.11431

@misc{daw2017physics,
  title = {{Physics-guided Neural Networks (PGNN): An Application in Lake Temperature Modeling}},
  author = {Arka Daw, Anuj Karpatne, William Watkins, Jordan S. Read and Vipin Kumar},
  year = {2017},
  doi = {10.48550/arxiv.1710.11431},
  eprint = {1710.11431},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1710.11431}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/daw-2017-physics-guided-neural-networks-pgnn/

References

25 references, from the paper's own bibliography.

  1. Tim Appenzeller. The scientists’ apprentice. Science, 3570 (6346):0 16–17, 2017. OpenAlex ↗ · Scholar ↗
  2. D Graham-Rowe, D Goldston, C Doctorow, M Waldrop, C Lynch, F Frankel, R Reid, S Nelson, D Howe, SY Rhee, et al. Big data: science in the petabyte era. Nature, 4550 (7209):0 8–9, 2008. OpenAlex ↗ · Scholar ↗
  3. TO Jonathan, AM Gerald, et al. Special issue: dealing with data. Science, 3310 (6018):0 639–806, 2011. OpenAlex ↗ · Scholar ↗
  4. Terrence J Sejnowski, Patricia S Churchland, and J Anthony Movshon. Putting big data to good use in neuroscience. Nature neuroscience, 170 (11):0 1440–1441, 2014. OpenAlex ↗ · Scholar ↗
  5. Hoshin V Gupta and Grey S Nearing. Debates—the future of hydrological sciences: A (common) path forward? using models and data to learn: A systems theoretic perspective on the future of hydrological science. Water Resources Research, 500 (6):0 5351–5359, 2014. OpenAlex ↗ · Scholar ↗
  6. Upmanu Lall. Debates—the future of hydrological sciences: A (common) path forward? one water. one world. many climes. many souls. Water Resources Research, 500 (6):0 5335–5341, 2014. OpenAlex ↗ · Scholar ↗
  7. Jeffrey J McDonnell and Keith Beven. Debates—the future of hydrological sciences: A (common) path forward? a call to action aimed at understanding velocities, celerities and residence time distributions of the headwater hydrograph. Water Resources Research, 500 (6):0 5342–5350, 2014. OpenAlex ↗ · Scholar ↗
  8. John J Magnuson, Larry B Crowder, and Patricia A Medvick. Temperature as an ecological resource. American Zoologist, 190 (1):0 331–343, 1979. OpenAlex ↗ · Scholar ↗
  9. James J Roberts, Kurt D Fausch, Douglas P Peterson, and Mevin B Hooten. Fragmentation and thermal risks from climate change interact to affect persistence of native trout in the colorado river basin. Global Change Biology, 190 (5):0 1383–1398, 2013. OpenAlex ↗ · Scholar ↗
  10. Frank J Rahel and Julian D Olden. Assessing the effects of climate change on aquatic invasive species. Conservation biology, 220 (3):0 521–533, 2008. OpenAlex ↗ · Scholar ↗
  11. James J Roberts, Kurt D Fausch, Mevin B Hooten, and Douglas P Peterson. Nonnative trout invasions combined with climate change threaten persistence of isolated cutthroat trout populations in the southern rocky mountains. North American Journal of Fisheries Management, 370 (2):0 314–325, 2017. OpenAlex ↗ · Scholar ↗
  12. Ted D Harris and Jennifer L Graham. Predicting cyanobacterial abundance, microcystin, and geosmin in a eutrophic drinking-water reservoir using a 14-year dataset. Lake and Reservoir Management, 330 (1):0 32–48, 2017. OpenAlex ↗ · Scholar ↗
  13. Hans W Paerl and Jef Huisman. Blooms like it hot. Science, 3200 (5872):0 57–58, 2008. OpenAlex ↗ · Scholar ↗
  14. MR Hipsey, LC Bruce, and DP Hamilton. Glm—general lake model: Model overview and user information. Perth (Australia): University of Western Australia Technical Manual, 2014. OpenAlex ↗ · Scholar ↗
  15. James L Martin and Steven C McCutcheon. Hydrodynamics and transport for water quality modeling. CRC Press, 1998. OpenAlex ↗ · Scholar ↗
  16. Emily K Read, Lindsay Carr, Laura De Cicco, Hilary A Dugan, Paul C Hanson, Julia A Hart, James Kreft, Jordan S Read, and Luke A Winslow. Water quality data for national-scale aquatic research: The water quality portal. Water Resources Research, 530 (2):0 1735–1745, 2017. OpenAlex ↗ · Scholar ↗
  17. I Colin Prentice, Wolfgang Cramer, Sandy P Harrison, Rik Leemans, Robert A Monserud, and Allen M Solomon. Special paper: a global biome model based on plant physiology and dominance, soil properties and climate. Journal of biogeography, pages 117–134, 1992. OpenAlex ↗ · Scholar ↗
  18. François Chollet. keras. https://github.com/fchollet/keras, 2015. OpenAlex ↗ · Scholar ↗
  19. Matthew D Zeiler. Adadelta: an adaptive learning rate method. arXiv preprint arXiv:1212.5701, 2012. our card
  20. Xing Fang, Shoeb R Alam, Heinz G Stefan, Liping Jiang, Peter C Jacobson, and Donald L Pereira. Simulations of water quality and oxythermal cisco habitat in minnesota lakes under past and future climate scenarios. Water Quality Research Journal, 470 (3-4):0 375–388, 2012. OpenAlex ↗ · Scholar ↗
  21. Urban Forssell and Peter Lindskog. Combining semi-physical and neural network modeling: An example ofits usefulness. IFAC Proceedings Volumes, 300 (11):0 767–770, 1997. OpenAlex ↗ · Scholar ↗
  22. Michael L Thompson and Mark A Kramer. Modeling chemical processes using prior knowledge and neural networks. AIChE Journal, 400 (8):0 1328–1340, 1994. OpenAlex ↗ · Scholar ↗
  23. Omer San and Romit Maulik. Machine learning closures for model order reduction of thermal fluids. Applied Mathematical Modelling, 60:0 681–710, 2018a. OpenAlex ↗ · Scholar ↗
  24. Omer San and Romit Maulik. Neural network closures for nonlinear model order reduction. Advances in Computational Mathematics, 440 (6):0 1717–1750, 2018b. OpenAlex ↗ · Scholar ↗
  25. Zhong Yi Wan, Pantelis Vlachas, Petros Koumoutsakos, and Themistoklis Sapsis. Data-assisted reduced-order modeling of extreme events in complex dynamical systems. PloS one, 130 (5):0 e0197704, 2018. OpenAlex ↗ · Scholar ↗