arXiv:2608.26216physics.plasm-phAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.26216

Real-time virtual circuits for plasma shape control via neural network emulators: integration and testing in the MAST-U PCS

Matthew J. Marshall, Edward Jones, Graham J. McArdle, Alasdair Ross, Kamran Pentland, Nicola C. Amorisco, Charles Vincent, Martin Kochan, Colin Hogben, Graham Jones, Adam Stephen, George K. Holt, Adriano Agnello

Matthew J. Marshall a^{a}, Edward Jones b^{b}, Graham J. McArdle b^{b}, Alasdair Ross a^{a}, Kamran Pentland b^{b}, Nicola C. Amorisco b^{b}, Charles Vincent b^{b}, Martin Kochan b^{b}, Colin Hogben b^{b}, Graham Jones b^{b}, Adam Stephen b^{b}, George K. Holt b^{b} and Adriano Agnello a^{a}

2026

a^{a}Hartree Centre, STFC, Daresbury Laboratory, Daresbury, WA4 4AD, United Kingdom

b^{b}UKAEA, Culham Campus, Abingdon, OX14 3DB, United Kingdom

ARTICLE INFO

Keywords:

real-time control

shape control

MAST-U

neural network emulators

real-time inference

ABSTRACT

The deployment of advanced, AI-enabled control algorithms in tokamak experiments requires robust integration with existing plasma control system (PCS) architectures and extensive pre-experimental validation. In this contribution, we describe the integration and testing of neural-network-emulated virtual circuits for plasma shape control within the MAST Upgrade (MAST-U) PCS environment. The neural network models predict the plasma shape using the plasma current, poloidal field coil currents, and plasma profile parameters. In this paper, we explain how they are deployed via a real-time C++ inference server that interfaces with the PCS, returning the shape prediction and its Jacobian, and how, from the latter, virtual circuit matrices and updated coil current requests are computed for real-time actuation. Emphasis is placed on the validation workflow and best practices adopted to ensure confidence in the proposed control framework prior to experimental deployment. This work demonstrates practical AI-based shape control components for fusion control systems, with direct relevance for upcoming MAST-U experiments and future devices.

1. Introduction

To achieve net energy production, future magnetic fusion devices will require accurate and responsive plasma position and shape control in order to access high performance operational regimes [1, 2]. Recent work has shown that machine-learning methods can be integrated into plasma control systems (PCS) at several different levels of the control stack. Early neural-network (NN) work already established the feasibility of real-time learned feedback for tokamak position and shape control [3]. More recently, reinforcement-learning controllers have been trained in simulation and deployed directly on TCV for magnetic control of diverse plasma configurations, including advanced shapes [4], with subsequent work addressing practical issues such as training time, steady-state offsets, and routine controller generation [5]. Related developments on DIII-D have demonstrated reconstruction-free magnetic control using raw magnetic diagnostics in the PCS [6], while broader AI-control infrastructure has enabled the deployment of multiple machine-learning predictors and controllers within integrated real-time experiments [7]. These results highlight that the central challenge is not only the learning algorithm itself, but the full deployment chain: simulator-based testing, real-time-compatible execution, diagnostic and actuator interfacing, constraint handling, and experimental validation.

In this paper, we detail the integration and testing of a new AI-enabled plasma shape controller within the MAST Upgrade (MAST-U) PCS. The NN-based shape controller takes in real-time measurements of the plasma current, poloidal field (PF) coil currents, and plasma current density profile parameters, returning state-aware virtual circuits (VCs) to the PCS, which are used to compute updated PF coil current requests for real-time shape actuation. Compared to the conventional VCs, computed offline prior to a plasma shot, these emulated VCs provide state-aware shape sensitivity, enabling adaptivity to unforeseen plasma trajectories on milliseconds timescales—a capability well-suited to MAST-U which explores a wide range of highly shaped plasma configurations [8, 9].

This work completes the validation process for AI-enabled shape control, building on the prior validation of the emulated VCs accuracy against Grad-Shfranov (GS) solutions in static scenarios [10] and in closed-loop simulations [11]. Here, we demonstrate that the fully PCS-software integrated real-time VC (RTVC) controllers produce the

matthew.marshall@stfc.ac.uk (M.J. Marshall); edward.jones1@ukaea.uk (E. Jones)

ORCID(s): 0000-0003-1454-2890 (M.J. Marshall); 0000-0001-6814-9117 (G.K. Holt); 0000-0001-9775-0331 (A. Agnello)

M. Marshall, E. Jones, et al.: Preprint submitted to Elsevier

Page 1 of 10 expected output during pre-shot testing and “piggyback” commissioning shots (to R2>0.99R^2 > 0.99 levels), while retaining the conventional shape control capabilities.

In Section 2, we review the existing shape control capability on MAST-U PCS. In Section 3, we detail the architecture of the RTVC Server, the system that serves real-time inference of NN models, covering the real-time constraints, the communication model between it and PCS, and the outputs produced. In Section 4, we detail the RTVC Algorithm that integrates RTVC Server into PCS, what transformations are made for downstream control, and in-silico testing of this integration with timing and command validation. In Section 5, we present final validation of the control scheme in several commissioning shots on MAST-U. Finally, in Section 6, we discuss opportunities there are to improve on the control scheme, including generalisation for RTVC Server's use to other aspects of tokamak control.

References (22)