# Machine learning for physical sciences

Turbulent mixing at the boundary between disciplines with differing inertia and viscosity

May 15, 2017 — December 7, 2022

In physics, typically, we are concerned with identifying True Parameters for Universal Laws, applicable without prejudice across all the cosmos. We are hunting something like the Platonic ideals that our experiments are poor shadows of. Especially, say, quantum physics or cosmology.

In machine learning, typically we want to make generic predictions for a given process, and quantify how good those predictions can be given how much data we have and the approximate kind of process we witness, and there is no notion of universal truth waiting around the corner to back up our wild fancies. On the other hand, we are less concerned about the noisy sublunary chaos of experiments and don’t need to worry about how far our noise drives us from universal truth as long as we make good predictions in the local problem at hand. But here, far from universality, we have weak and vague notions of how to generalise our models to new circumstances and new noise. That is, in the Platonic ideal of machine learning, there are no Platonic ideals to be found.

(This explanation does no justice to either physics or machine learning, but it will do as framing rather than getting too deep into the history or philosophy of science.)

Can these areas have something to say to one another nevertheless? After an interesting conversation with Shane Keating about the difficulties of ocean dynamics, I am thinking about this in a new way; Generally, we might have notions from physics of what “truly” underlies a system, but where many unknown parameters, noisy measurements, computational intractability and complex or chaotic dynamics interfere with our ability to predict things using only known laws of physics; Here, we want to come up with a “best possible” stochastic model of a system given our uncertainties and constraints, which looks more like ML problem.

At a basic level, it’s not controversial (I don’t think?) to use machine learning methods to analyse data in experiments, even with trendy deep neural networks. I understand that this is significant, e.g. in connectomics.

Perhaps a little more fringe is using machine learning to reduce computational burden via surrogate models, e.g. Carleo and Troyer (2017).

The thing that is especially interesting to me right now is learning the whole model in ML formalism, using physical laws as input to the learning process.

To be concrete, Shane specifically was discussing problems in predicting and interpolating “tracers”, such as chemical or heat, in oceanographic flows. Here we know lots of things about the fluids concerned, but less about the details of the ocean floor and have imperfect measurements of the details. Nonetheless, we also know that there are certain invariants, conservation laws etc, so a truly “nonparametric” approach to dynamics is certainly throwing away information.

There is some nifty work in learning symbolic approximations to physics, like the *SINDy* method. However, it’s hard to imagine scaling this up (at least directly) to big things like large image sensor arrays and other such weakly structured input.

Researchers like Chang et al. (2017) claim that learning “compositional object” models should be possible. The compositional models are learnable objects with learnable pairwise interactions, and bear a passing resemblance to something like the physical laws that physics experiments hope to discover, although I’m not yet totally persuaded about the details of this particular framework. On the other hand, unmotivated appealing to autoencoders as descriptions of underlying dynamics of physical reality doesn’t seem sufficient.

There is an O’Reilly podcast and reflist about deep learning for science in particular. There was a special track for papers in this area in NeurIPS.

Related: “sciml” which often seems to mean learning ODEs in particular, is important. See various SciML conferences, e.g. ICERM

Sample images of atmospheric rivers correctly classified (true positive) by our deep CNN model. Figure shows total column water vapor (color map) and land sea boundary (solid line). Y. Liu et al. (2016)

## 1 Data-informed inference for physical systems

See Physics-based Deep Learning (Thuerey et al. 2021). Also, see Brunton and Kutz’s Data-Driven Science and Engineering web material around their book (Brunton and Kutz 2019). Also, the seminar series by the authors of that latter book is a moving feast of the latest results in this area. For Neural dynamics in particular, Patrick Kidger’s thesis seems good (Kidger 2022).

## 2 ML for PDEs

See ML PDEs.

## 3 Causality, identifiability, and observational data

One ML-flavoured notion is the use of observational data to derive the models. Presumably if I am modelling an entire ocean or even river, doing experiments is out of the question for reasons of cost and ethics, and the overall model will be calibrated with observational data. We need to wait until there is a flood to see what floods do. This is generally done badly in ML, but there are formalisms for it, as seen in graphical models for causal inference. Can we workout the confounders and do counterfactual inference? Is imposing an arrow of causation already doing some work for us?

Small subsystems might be informed by experiments, of course.

## 4 Likelihood free inference

Popular if you have a simulator that can simulate from the system. See likelihood free inference.

## 5 Emulation approaches

## 6 The other direction: What does physics say about learning?

See why does deep learning work or the statistical mechanics of statistics.

Related, maybe: the recovery phase transitions in compressed sensing.

## 7 But statistics is ML

Why not “*statistics* for physical sciences”? Isn’t ML just statistics? Why thanks, Dan, for asking that. *Yes it is*, as far as content goes. But the different disciplines licence different uses of the tools. Pragmatically, using predictive modelling tools that ML practitioners advocate has been helpful in doing better statistics for ML. When we talk about statistics in physical processes we tend to think of your grandpappy’s statistics, parametric methods where the parameters are the parameters of physical laws. The modern emphasis in machine learning is in nonparametric, overparameterised or approximate methods that do no necessarily correspond to the world in any interpretable way. Deep learning etc. But sure, that is still statistics if you like. I would have needed to spend more words explaining that though, and buried the lede.

## 8 Applications

## 9 Incoming

## 10 References

*Acta Numerica*.

*Water Resources Research*.

*Advances In Neural Information Processing Systems*.

*Biology Letters*.

*Proceedings of the National Academy of Sciences*.

*Journal of Nonlinear Science*.

*Data-Driven Science and Engineering: Machine Learning, Dynamical Systems, and Control*.

*Proceedings of the National Academy of Sciences*.

*Science*.

*Proceedings of ICLR*.

*Machine Learning and the Physical Sciences Workshop at the 33rd Conference on Neural Information Processing Systems (NeurIPS)*.

*Journal of Hydrology*.

*arXiv:2110.13041 [Physics]*.

*International Journal of Wildland Fire*.

*Acta Numerica*.

*Physical Review Research*.

*Computer Methods in Applied Mechanics and Engineering*.

*Journal of Agricultural, Biological and Environmental Statistics*.

*Frontiers in Environmental Science*.

*arXiv:2012.11857 [Cs, Math, Stat]*.

*Advances in Water Resources*.

*Frontiers in Applied Mathematics and Statistics*.

*ICLR*.

*ICLR*.

*ACM Transactions on Graphics*.

*Journal of Glaciology*.

*Nature Reviews Physics*.

*Philosophical Transactions of the Royal Society A: Mathematical, Physical and Engineering Sciences*.

*arXiv:2001.08055 [Physics, Stat]*.

*Water*.

*Physica D: Nonlinear Phenomena*.

*arXiv:2107.10127 [Math, Stat]*.

*arXiv:2007.00631 [Cs, Stat]*.

*arXiv:1605.01156 [Cs]*.

*Journal of the American Statistical Association*.

*arXiv:2107.10879 [Physics]*.

*SIAM Review*.

*Geoscientific Model Development*.

*arXiv:2107.11253 [Nlin, Physics:physics, Stat]*.

*Npj Computational Materials*.

*arXiv:2203.16797 [Cs, Stat]*.

*Water Resources Research*.

*Probabilistic Engineering Mechanics*.

*arXiv:1910.01751 [Cs, Stat]*.

*Advances In Neural Information Processing Systems*.

*Advances In Neural Information Processing Systems*.

*Physical Review Letters*.

*Chaos: An Interdisciplinary Journal of Nonlinear Science*.

*Journal of Computational Physics*.

*Journal of Open Source Software*.

*Physica D: Nonlinear Phenomena*.

*MIT Web Domain*.

*arXiv:2003.11755 [Cs, Stat]*.

*Journal of Computational Physics*.

*Science*.

*arXiv:2109.07573 [Physics]*.

*Environmental Modelling & Software*.

*Water Resources Research*.

*Machine Learning and the Physical Sciences Workshop at the 33rd Conference on Neural Information Processing Systems (NeurIPS)*.

*arXiv:1910.09349 [Cs, Stat]*.

*Machine Learning and the Physical Sciences Workshop at the 33rd Conference on Neural Information Processing Systems (NeurIPS)*.

*Proceedings of the 37th International Conference on Machine Learning*.

*Journal of Computational and Theoretical Nanoscience*.

*NeurIPS*.

*Artificial Neural Networks and Machine Learning – ICANN 2011*. Lecture Notes in Computer Science.

*Water Resources Research*.

*arXiv:2104.04764 [Physics]*.

*arXiv:2006.15641 [Cs, Stat]*.

*Physics-Based Deep Learning*.

*Proceedings of the 34th International Conference on Machine Learning - Volume 70*. ICML’17.

*Neural Networks*, Computational Intelligence in Earth and Environmental Sciences,.

*44th AIAA Aerospace Sciences Meeting and Exhibit*.

*SIAM Journal on Scientific Computing*.

*Journal of Hydrology*.

*Spatial Statistics*.

*Journal of Computational Physics*.

*SIAM Journal on Scientific Computing*.

*Journal of Computational Physics*.

*Journal of Computational Physics*.