GS-DeepNet: mastering tokamak plasma equilibria with deep neural networks and the Grad–Shafranov equation

Semin Joung, Young-chul Ghim, Jaewook Kim, S. Kwak, Daeho Kwon, Chih‐Jen Sung, Dong Ju Kim, Hyun-Seok Kim, J.g. Bak, S.w. YoonScientific 2023 · DOI

TL;DR

GS-DeepNet is a novel unsupervised deep learning framework that reconstructs tokamak plasma equilibria in real-time by solving the Grad–Shafranov (GS) equation. By using a "self-teaching" architecture of two coupled neural networks, it eliminates the need for slow iterative numerical solvers and subjective human intervention, providing high-fidelity physics-consistent results with built-in uncertainty estimation.

What Problem Does This Paper Address?

To achieve sustainable nuclear fusion, a tokamak must maintain a "plasma equilibrium"—a delicate state where the outward pressure of the 100-million-degree plasma is perfectly balanced by inward magnetic forces (the Lorentz force). This state is mathematically described by the Grad–Shafranov (GS) equation.

Identifying this equilibrium in real-time is notoriously difficult. It is an "inverse problem" (we measure magnetic fields outside the plasma to guess what’s happening inside) and a "free-boundary problem" (the shape of the plasma changes constantly). Traditional numerical solvers like EFIT are iterative and often require human experts to manually select which sensor data to include to ensure the math converges. This subjectivity and computational lag hinder the reactive, high-speed control needed for next-generation fusion reactors like ITER.

Methods

The authors introduce GS-DeepNet, which moves away from traditional numerical algorithms in favor of a physics-informed, unsupervised deep learning approach.

The "Self-Teaching" Architecture

The system consists of two distinct neural networks that constrain one another:

  1. Maxwell Net (NN1): Takes spatial coordinates $(R, Z)$ and external magnetic measurements as input. It outputs the poloidal flux function ($\psi$), ensuring the solution follows Maxwell’s equations.
  2. Force-Balance Net (NN2): Takes the output from the Maxwell Net and calculates the plasma pressure gradient and poloidal current.

The networks are trained together so that the "force balance" calculated by NN2 matches the magnetic structure generated by NN1. An auxiliary Boundary Detection Module identifies the plasma's edge (the Last Closed Flux Surface) in real-time.

Novel Optimization

To handle the "ill-posed" nature of the problem (where many different internal states could theoretically produce the same external measurements), the researchers employed Singular Value Decomposition (SVD) and transfer learning. This allows the model to find the most physically probable solution without needing "ground truth" labels from other solvers.

Datasets

The model was trained and validated using experimental data from the KSTAR (Korea Superconducting Tokamak Advanced Research) device:

  • Source: 50 experimental plasma discharges from the 2019 KSTAR campaign, covering various phases (Ohmic, L-mode, and H-mode).
  • Scale: Approximately $10^4$ time slices, resulting in roughly $2 \times 10^7$ total data points when accounting for spatial grid positions.
  • Inputs: Data from 31 magnetic pick-up probes and 45 flux loops installed inside the KSTAR vacuum vessel.

Key Insights and Ideas

  • Unsupervised Physics: Unlike previous AI attempts that simply "mimic" traditional solvers, GS-DeepNet solves the GS equation from scratch. It doesn't need a "teacher" solver; it uses the laws of physics as its loss function.
  • End-to-End Objectivity: Traditional methods require humans to prune "bad" sensor data. GS-DeepNet uses all available magnetic measurements, reducing human bias and potentially capturing more nuanced plasma states.
  • Built-in Uncertainty: By using Monte Carlo dropout, the network provides a measure of how certain it is about its reconstruction—a critical feature for safety-critical reactor control.
  • Flexible Resolution: Because the network takes $(R, Z)$ coordinates as direct inputs, it can provide higher spatial resolution in critical areas (like the magnetic axis) than fixed-grid numerical solvers.

Key Results

  • Speed: GS-DeepNet can estimate a full 2D flux surface on a $41 \times 41$ grid in less than 1 ms using a single GPU (NVIDIA RTX A4000), making it ideal for real-time control.
  • Accuracy: The model achieved a coefficient of determination ($R^2$) near 0.99 when compared against actual magnetic measurements.
  • Validation: The reconstructed internal profiles (pressure and magnetic pitch angle) showed excellent agreement with independent diagnostic systems like Thomson scattering and the Motional Stark Effect (MSE) system.

Limitations and Future Work

  • Geometry Specificity: The current boundary detection module is specifically tuned for KSTAR’s geometry. While the authors state the main network is transferable, the auxiliary module would need recalibration for other tokamaks.
  • Internal Data Integration: While the model predicts internal profiles well, it currently only uses external magnetic data for its primary training. The authors propose an "extended GS-DeepNet" that could incorporate real-time internal diagnostics (like MSE) to further constrain the solution.
  • Edge Uncertainty: The authors noted that uncertainty estimates are higher at the plasma edge than in the core, suggesting that further work is needed to interpret these "error bars" for automated control systems.

Summary updated

Abstract

The force-balanced state of magnetically confined plasmas heated up to 100 million degrees Celsius must be sustained long enough to achieve a burning-plasma state, such as in the case of ITER, a fusion reactor that promises a net energy gain. This force balance between the Lorentz force and the pressure gradient force, known as a plasma equilibrium, can be theoretically portrayed together with Maxwell's equations as plasmas are collections of charged particles. Nevertheless, identifying the plasma equilibrium in real time is challenging owing to its free-boundary and ill-posed conditions, which conventionally involves iterative numerical approach with a certain degree of subjective human decisions such as including or excluding certain magnetic measurements to achieve numerical convergence on the solution as well as to avoid unphysical solutions. Here, we introduce GS-DeepNet, which learns plasma equilibria through solely unsupervised learning, without using traditional numerical algorithms. GS-DeepNet includes two neural networks and teaches itself. One neural network generates a possible candidate of an equilibrium following Maxwell's equations and is taught by the other network satisfying the force balance under the equilibrium. Measurements constrain both networks. Our GS-DeepNet achieves reliable equilibria with uncertainties in contrast with existing methods, leading to possible better control of fusion-grade plasmas.
BibTeX
@inproceedings{joung2023gs,
  author = {Semin Joung and Young-chul Ghim and Jaewook Kim and S. Kwak and Daeho Kwon and Chih‐Jen Sung and Dong Ju Kim and Hyun-Seok Kim and J.G. Bak and S.W. Yoon},
  title = {{GS-DeepNet: mastering tokamak plasma equilibria with deep neural networks and the Grad–Shafranov equation}},
  booktitle = {Scientific},
  year = {2023},
  doi = {10.1038/s41598-023-42991-5},
}
Figure