Ir al contenido
Hub Nexus

Aún sin autorAsumirla

Versión 5Actualizado 3 min de lectura

Apoyo

A tutorial posted on arXiv uses the simple pendulum as an illustrative example, in four applications of increasing complexity, to give physicists a practical introduction to neural networks and their first steps in applying them to physics problems. The paper's authors are not named in the text we hold, so it is credited by title and link.

Diagram of where artificial intelligence, machine learning, neural networks and physics overlap, including hybrid approaches such as physics-informed networks

Where AI, machine learning, neural networks and physics meet (figure from the tutorial, arXiv).

The ideas first

The tutorial builds up from the perceptron, a single artificial neuron, through linear regression and deep networks to training. Machine learning comes in three kinds: supervised learning on labeled data, unsupervised learning that finds structure in unlabeled data, and reinforcement learning, where an agent learns by trial and error from rewards. The authors acknowledge the "black box" worry, that models often cannot explain their predictions, which makes scientists wary, and show how building physical knowledge into the model reduces it.

Four pendulum problems

ExampleWhat the network doesWhat it shows
  1. Fit a parameter
With the swing angle measured over time and the length known, a network with a single neuron estimates the acceleration due to gravity, g, by matching the small-angle solution to dataNeural networks can do an ordinary regression, the kind of lab fit students already know, and a falling cost curve signals learning, though overfitting can fake it
  1. Solve the equation
A physics-informed neural network (PINN) is trained to satisfy the differential equation and the starting angle, with the equation itself built into its cost functionThe network knows the physics, so training needs less data and, in the authors' run, reached the same error level in half the epochs
  1. Find the latent space
An autoencoder squeezes frames of a pendulum video into a small latent space and rebuilds them. One variable suffices, as the pendulum has one degree of freedomBecause the network is nonlinear, it can compress even large-angle swings, which linear methods such as principal component analysis cannot do. It also tolerates noise: a latent space of two variables recovered the pendulum at 20% noise, and still at up to 40% in the supplement
  1. Discover the equation
A SINDy autoencoder searches a library of candidate functions (powers, sine, cosine and others) for the sparse equation that governs the latent variable, penalizing small coefficientsFrom video images alone, it can produce an analytical equation for the large-angle pendulum, making the network's result readable

Result of Example 2: the cost function falling over training epochs, and the network's curve matching the pendulum solution

Example 2: the training error and the physics-informed network's solution (figure from the tutorial).

How SINDy keeps it simple

In the last example, three requirements become three parts of the cost function: the autoencoder must rebuild the images, rebuild their derivatives, and make the latent variable obey the discovered equation. To keep that equation sparse, the method penalizes the size of the coefficients and, after training starts, zeroes any coefficient under 0.1, which shows up as a bump in the loss curve at about 250 epochs. The surviving terms form a short equation.

Loss curves of the SINDy autoencoder across training epochs

Loss terms of the SINDy autoencoder (figure from the tutorial).

Why a pendulum

The pendulum is familiar to undergraduates, the equations are known, and the problem is a toy that makes each method visible before it is applied to something harder. The authors present the work as a doorway for students, and for physicists, who want to try neural networks on their own problems.

Sources

  • An introduction to Neural Networks for Physicists, arXiv, arxiv.org/abs/2505.13042. Changed here: condensed and rewritten as a summary, with two figures kept; rewritten in hubnx's own words.
  • Authors of the original: G. Café de Miranda, Gubio G. de Lima, Tiago de S. Farias.

Comentarios

Spinner Logo

Más sobre Educación

Por Hub Nexus editorsLecturas: 282
A demo for the Hub Nexus content editor, showing what could be created, and at the same time teaching how to create them with each syntax. It follows general markdown syntax, gfm, and more advanced like various charts and graphs code syntax.
Por Abdul Ariwoola
Random article
CC BY-SA 4.0
This program demonstrates how XForms can validate a data set based on the facets within and XML Schema. ## Warnings Note: This program does not run under the FireFox 0.6 extension. The X-Smiles browser was used to demonstrate this program. ## Screen Image This screen image was taken from the [X-Smil
CC BY-SA 4.0
Most people that have studied [MVC]( architecture agree on two aspects: The Model and the View. The model is where you store your data or your business objects. The View is what the user sees. But many variations of MVC have very different implementations of a controller.