Requirements

Data

We acquire for each magnet:

  • Measured current
  • Programmed current
  • Measured field
  • Measured field derivative

at a fixed sampling rate of 1 kHz

Since 2025 we in addition have the measured voltage of the coil of the magnet, .

The experimental data that we acquire can then be expressed as

We can use either the measured, or programmed for the modeling. The programmed is preferred.

Model

As we are aiming to resolve small errors in our data that arise due to hysteresis, we construct the following model:

where is a polynomial fit of the data using least squares fitting. is a model that we fit using one of our approaches.

The approaches for fitting are the following:

  • Transformers for Time Series
    • Standard transformers (fixed context length)
    • Decoder-only transformers
    • “Recurrent” transformers like Transformer-XL
  • Physics-based neural networks
    • PhyLSTM to solve a differential equation like Bouc-Wen model
    • Preisach Neural Networks
  • Deterministic physics approaches
    • Like solving the Preisach model

Modeling approaches

We can model with an encoder-decoder style prediction scheme.

An alternative is to model by either differentiating the measured , or computing the , or using the measured directly, and then integrating the to retrieve , however this requires an integration constant to start from.

Results

(‘validation RMSE (’, ‘non-cycled’)(‘validation RMSE (’, ‘cycled’)(‘validation RMSE (’, ‘AR’)(‘test RMSE (’, ‘non-cycled’)(‘test RMSE (’, ‘cycled’)(‘test RMSE (’, ‘AR’)
EDLSTM0.3562960.4973440.4334321.47941.540616.00721
ATTNLSTM0.4158640.4429250.5857092.364851.538525.73712
TFLSTM0.2658730.3543660.3680441.092611.282515.27817
TFT0.4227390.6559040.9871591.528291.320775.80831
TFT0.1760990.4221750.6341030.3328510.4302020.457526