NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Bayesian deep learning for partial differential equation parameter discovery with sparse and noisy data

Christophe Bonneville, Christopher J. EarlsJ. Comput. Phys. x 2021

Abstract

Scientific machine learning has been successfully applied to inverse problems and PDE discovery in computational physics. One caveat concerning current methods is the need for large amounts of ("clean") data, in order to characterize the full system response and discover underlying physical models. Bayesian methods may be particularly promising for overcoming these challenges, as they are naturally less sensitive to the negative effects of sparse and noisy data. In this paper, we propose to use Bayesian neural networks (BNN) in order to: 1) Recover the full system states from measurement data (e.g. temperature, velocity field, etc.). We use Hamiltonian Monte-Carlo to sample the posterior distribution of a deep and dense BNN, and show that it is possible to accurately capture physics of varying complexity, without overfitting. 2) Recover the parameters instantiating the underlying partial differential equation (PDE) governing the physical system. Using the trained BNN, as a surrogate of the system response, we generate datasets of derivatives that are potentially comprising the latent PDE governing the observed system and then perform a sequential threshold Bayesian linear regression (STBLR), between the successive derivatives in space and time, to recover the original PDE parameters. We take advantage of the confidence intervals within the BNN outputs, and introduce the spatial derivatives cumulative variance into the STBLR likelihood, to mitigate the influence of highly uncertain derivative data points; thus allowing for more accurate parameter discovery. We demonstrate our approach on a handful of example, in applied physics and non-linear dynamics.

Introduction

In computational physics, "inverse problems" involve discovering the mathematical equations (PDEs) that govern observed phenomena, such as fluid flow or heat transfer. While recent "Scientific Machine Learning" (SciML) methods like SINDy or Physics-Informed Neural Networks (PINNs) have shown promise, they typically require large amounts of high-quality, "clean" data. In real-world scenarios, however, data is often sparse (limited sensors) and noisy (measurement errors). Standard deep neural networks are prone to overfitting this noise, leading to wild oscillations in calculated derivatives. Since PDE discovery relies heavily on these derivatives, even small errors in the network's fit can lead to completely wrong physical models. This research introduces a robust pipeline that leverages uncertainty quantification to filter out the influence of unreliable data points.

Methodology

The proposed framework consists of a two-stage Bayesian pipeline designed to handle the challenges of sparse and noisy experimental data.

1. Bayesian Neural Network (BNN) Fitting

Instead of training a single "best-fit" network, the weights of the BNN are treated as probability distributions. The authors employ Hamiltonian Monte-Carlo (HMC) to sample these distributions, allowing the network to provide not just a prediction, but a confidence interval (uncertainty) for every point in space and time. This prevents the model from chasing noise and provides a natural regularization.

2. Derivative Library and STBLR

The trained BNN acts as a surrogate for the physical system. By differentiating the BNN, a library of candidate terms (e.g., $u, u_x, u_{xx}, u u_x$) is constructed. Because the weights are distributions, the resulting derivatives are also distributions with associated expected values and variances. The core innovation is the Sequential Threshold Bayesian Linear Regression (STBLR). This sparse regression finds the terms that comprise the PDE by using the BNN's variance to weight the regression; data points with high uncertainty are automatically discounted.

The Bayesian pipeline: from noisy measurements (a) to BNN surface fitting (b) and derivative estimation (c).

Experimental Results

The framework was evaluated using synthetic data from three fundamental physical models: Burgers’ Equation, the Korteweg-De Vries (KdV) Equation, and the Heat Equation. These were tested with varying levels of Gaussian noise (up to 5%) and high sparsity (only 16 sensors).

The Bayesian approach consistently outperformed frequentist baselines (Standard DNN + Ordinary Least Squares). For instance, in the Burgers' equation test with 5% noise, the standard method failed to identify the diffusion term and underestimated the non-linear term, while the BNN/STBLR approach recovered parameters with high accuracy.

Comparison between the discovered PDE parameters and the ground truth for a noisy system.

For the KdV equation, the standard DNN's discovered PDE led to an $\ell^2$ error of 232.9, whereas the Bayesian framework achieved a significantly lower error of 108.1. Qualitatively, the solutions to the PDEs discovered by the Bayesian method closely match the ground truth dynamics, whereas standard methods often produce unstable or physically incorrect results in high-noise scenarios.

Conclusion and Future Work

This work demonstrates that treating uncertainty as a feature allows for robust physics discovery from imperfect data. By integrating BNNs with STBLR, the model naturally ignores regions where data is too sparse or noisy to provide reliable physics. While computationally intensive due to HMC sampling, this approach offers a level of interpretability and robustness that black-box models lack. Future research will focus on improving inference efficiency through methods like Variational Inference and scaling the framework to higher-dimensional 3D systems.

Summary updated

BibTeX
@article{bonneville2021bayesian,
  author = {Christophe Bonneville and Christopher J. Earls},
  title = {{Bayesian deep learning for partial differential equation parameter discovery with sparse and noisy data}},
  journal = {J. Comput. Phys. x},
  year = {2021},
}
Figure