본문 펼치기
### Robust Confinement State Classification with Uncertainty Quantification through Ensembled Data-Driven Methods
Yoeri Poels <sup>†</sup> <sup>_,_</sup> <sup>1</sup> <sup>_,_</sup> <sup>2</sup> , Cristina Venturini <sup>†</sup> <sup>_,_</sup> <sup>1</sup> , Alessandro Pau <sup>1</sup> , Olivier Sauter <sup>1</sup> , Vlado Menkovski <sup>2</sup> , the TCV team <sup>3</sup> and the
WPTE team <sup>4</sup>
1École Polytechnique Fédérale de Lausanne, Swiss Plasma Center, CH-1015 Lausanne, Switzerland
2Eindhoven University of Technology, Mathematics and Computer Science, NL-5600MB Eindhoven, The Netherlands
3See author list of B. P. Duval _et al._ 2024 _Nucl._ _Fusion_ 64 112023
4See author list of E. Joffrin _et al._ 2024 _Nucl._ _Fusion_ 64 112019
†Equal contribution, sorted alphabetically.
E-mail: yoeri.poels@epfl.ch, cristina.venturini@epfl.ch
February 2025
Abstract
Maximizing fusion performance in tokamaks relies on high energy confinement, often achieved through distinct operating
regimes. The automated labeling of these confinement states is crucial to enable large-scale analyses or for real-time control
applications. While this task becomes difficult to automate near state transitions or in marginal scenarios, much success
has been achieved with data-driven models. However, these methods generally provide predictions as point estimates, and
cannot adequately deal with missing and/or broken input signals. To enable wide-range applicability, we develop methods
for confinement state classification with _uncertainty quantification_ and _model robustness_ . We focus on off-line analysis
for TCV discharges, distinguishing L-mode, H-mode, and an in-between dithering phase (D). We propose ensembling
data-driven methods on two axes: model formulations and feature sets. The former considers a dynamic formulation based
on a recurrent Fourier Neural Operator-architecture and a static formulation based on gradient-boosted decision trees. These
models are trained using multiple feature groupings categorized by diagnostic system or physical quantity. A dataset of 302
TCV discharges is fully labeled, and we release it publicly to encourage the community to build upon this work. We evaluate
our method quantitatively using Cohen’s kappa coefficient for predictive performance and the Expected Calibration Error
for the uncertainty calibration. Furthermore, we discuss performance using a variety of common and alternative scenarios,
the performance of individual components, out-of-distribution performance, cases of broken or missing signals, and evaluate
conditionally-averaged behavior around different state transitions. Overall, the proposed method can distinguish L, D and
H-mode with high performance, can cope with missing or broken signals, and provides meaningful uncertainty estimates.
1. Introduction
In magnetic confinement fusion, the energy confinement
time of the plasma is one of the key parameters for
maximizing fusion performance. This quantity is known
to scale with various plasma parameters, for example
the plasma shape, the particle density or the strength of
the magnetic field, among others [1]. However, distinct
operating regimes have been discovered that provide betterthan-expected scaling, which fall under the umbrella term of
high-confinement mode (H-mode) regimes [2]. Operating in
these high-performance regimes is crucial to maximize the
performance of current-day and future devices [3].
To accelerate large-scale analysis of confinement states,
or for real time control-scenarios, we need automatic
confinement state detection algorithms. This task becomes
difficult near state transitions or in marginal scenarios,
however, much success has been achieved with data-driven
models. Past works have developed methods for fulldischarge confinement state identification on Alcator CMod [4], COMPASS [5], DIII-D [6, 7], EAST [8], HL2A [9], KSTAR [10,11], JET [12,13], and TCV [14,15].
Still, these methods generally do not consider two key
aspects. For one, predictions are generally provided as
point estimates, giving no information about the associated
prediction uncertainty. This additional dimension is critical
to identify when model predictions can be trusted, for
example in control scenarios or to ensure high-quality
analyses. Additionally, the ability to deal with missing
and/or broken input signals is generally not addressed. To
enable wide-range applicability, models must be robust
to these failure modes. Notably, some related works do
incorporate a notion of uncertainty [13,16,17], however, not
in the full discharge setting or with expressive models such
as neural networks (NNs).
To incorporate the notions of _uncertainty quantification_
and _model robustness_, we propose the use of ensembled datadriven methods. We combine methods on two axes: different
types of models, and different sets of input signals. The
former allows us to incorporate different inductive biases,
i.e. varying the assumptions made by the algorithm. As a
consequence we expect to reduce failure modes connected to
model properties [18,19]. The latter decreases the sensitivity
to overfitting on patterns identified in signals. We exploit the
fact that one can measure the confinement state in various
different ways, reducing the dependence on specific signals,
and allow for easily handling missing and/or corrupted data.
Collectively, the use of different models and inputs enables
for better confidence estimates by examining variability in
the individual predictions [20,21].
The problem is formulated as a supervised classification
task with model confidence, along with the ability to
deal with missing and/or broken input signals. We
incorporate neural network-based methods for exploiting
sequential patterns and use decision tree-based methods
for static predictions. The former further develops works
on neural network-based classification for confinement
states [4–9, 11, 12, 14, 15], using the Fourier Neural
Operator (FNO) [22] with a recurrent structure [23], whereas
the latter is implemented with gradient-boosted decision
trees (GBDT) using XGBoost [24]. On the feature axis
we define input feature sets both categorized by their
approximate ‘domain’ and combinations thereof, and use
both raw diagnostic measurements and engineer physically
meaningful features. The model+input combinations are
fit using multiple data-splits that cover varying (mutually
exclusive) groups of experimental topics to encourage model
generalization. Individual configurations are empirically
calibrated to ensure meaningful uncertainties, and are
combined through a weighted linear combination, allowing
for robust classification with uncertainty quantification.
The model is developed for the Tokamak à Configuration Variable (TCV). We aim to distinguish between the
aforementioned low confinement mode (L-mode) and high
confinement mode (H-mode), and an ‘in-between’, dithering phase (D). A dataset of 302 fully labeled discharges—a
confinement state label at each timestep—is used to fit and
evaluate our proposed method. We publicly release the labels for this ‘TCV confinement state database’, encouraging
the community to build upon this work.
Evaluations are carried out to validate the method’s
prediction accuracy, the soundness of the provided
confidence estimates, and the ability to deal with bad/missing
data. We consider the Cohen’s kappa coefficient and
Expected Calibration Error as quantitative metrics covering
accuracy and uncertainty. Qualitatively, we provide an
extensive evaluation covering specific use-cases: ITER
Baseline Scenario (IBL) plasmas [25], extrapolation to
out-of-distribution regimes ( _δ_ top _>_ 0 _._ 3 and _βN_ _>_ 1 _._ 7),
quasi-continuous exhaust (QCE) regimes [26], and unusual
scenarios such as negative triangularity configurations [27].
In short, our contributions can be summarized as follows:
_•_ We create a dataset of confinement states for 302 TCV
discharges, covering a wide variety of plasma regimes.
This dataset is publicly available at [RELEASED UPON
PUBLICATION].
_•_ We develop a method for robust confinement state
classification with uncertainty quantification, using
ensembles of different models and different feature
sets. We use NN- and random forest-based models
along with varying input sets including both raw
2
measurements and engineered features. Through an
ensembling procedure we can predict the confinement
state with a meaningful prediction confidence and can
deal with missing/corrupt signals.
_•_ We extensively evaluate the proposed method both
quantitatively and qualitatively. Metrics are evaluated
both for prediction accuracy and uncertainty calibration.
We explore performance on a variety of plasma
scenarios, consider extrapolation to out-of-distribution
regimes, and extensively evaluate model robustness and
the behavior of the confidence estimates.
2. Problem Formulation
In a tokamak discharge, operation starts in a state which
does not display significant fusion performance, which we
refer to as low (L) confinement mode. Most experiments
subsequently aim at transitioning to a more performing
state, high (H) confinement mode. The transition between
these two states has been experimentally discovered on
ASDEX [2] and since then extensive studies have been
conducted to explain the reasons behind this switch and
the physics mechanisms involved. Nonetheless, at present,
no specific set of rules exists to automatically distinguish
between the two states on a large scale. The situation is
rendered more difficult by the presence of intermediate states,
displaying a transitional nature that makes them particularly
difficult to distinguish. These states often appear around
state transitions, but can also appear within L or H phases.
In this context, on TCV we often observe rapid oscillations
which we refer to as the Dithering (D) state [28,29].
The identification of plasma confinement states is
typically carried out on a shot by shot basis by an expert.
The task consists of inspecting various diagnostic signals
and looking for specific signatures; for example, a trace
from Edge Localized Modes (ELMs) in H _α_ emissions is a
potential indicator of being in H-mode. Given the difficult
and time consuming nature of this process, scaling it up to
large datasets becomes challenging, highlighting the utility
of an automated approach.
We define the problem setting of automated detection
of the confinement state as learning a function _f_ that maps
measured and computed plasma quantities to a prediction of
the confinement state. This is described as follows:
_f_ : x <sup>u</sup> <sup>_,_</sup> <sup>t</sup> <sup>_in_</sup> _∈_ R <sup>_U×Tin_</sup> _→_ y <sup>s</sup> <sup>_,_</sup> <sup>t</sup> <sup>_out_</sup> _∈_ R <sup>3</sup> <sup>_×Tout_</sup> _,_ (1)
where x <sup>u</sup> <sup>_,_</sup> <sup>t</sup> <sup>_in_</sup> represents the input matrix with _U_ input signals
and _T_ <sup>_in_</sup> time samples, and y <sup>s</sup> <sup>_,_</sup> <sup>t</sup> <sup>_out_</sup> represents the output
prediction matrix of states s = _{L, D, H}_ for _T_ <sup>_out_</sup> time
samples. Note that _T_ <sup>_in_</sup> and _T_ <sup>_out_</sup> need not be the same; in
practice we do not predict at each measurement for efficiency
reasons, i.e. _T_ <sup>_out_</sup> _< T_ <sup>_in_</sup> .
For each timestep, the output predictions sum to one
3
and are nonnegative, i.e.
_∀t∈_ t _out_ <sup>�</sup> _s∈_ s <sup>_ys,t_</sup> <sup>= 1</sup> <sup>_,_</sup> _∀t∈_ t _out,s∈_ s _y_ <sup>_s,t_</sup> _>_ 0 _,_ (2)
Consequently, we can interpret our function as the
conditional distribution between the input measurements and
the confinement state, _p_ ( _y|x_ ). We then define our prediction
confidence (i.e. certainty) as the probability of the maximum
class:
_confidence_ = max _s∈_ s <sup>_p_</sup> <sup>(</sup> <sup>_y_</sup> <sup>=</sup> <sup>_s|x_</sup> <sup>)</sup> <sup>_,_</sup> (3)
This quantity should be calibrated, e.g., if it is 0.8,
we expect—on a sufficiently large sample—a prediction
accuracy of 80%.
Additionally, we assume that not all input signals in
x are always present and perfectly acquired. Over time
there are periods where a diagnostic is not available, or
instances where it failed to acquire correctly. It is crucial
that the method is robust to these failure modes to ensure the
applicability to as many experiments as possible.
3. Dataset
We present a database of 302 TCV discharges labeled
with confinement states ‘Low’, ‘Dithering’, or ‘High’ over
their entire duration. Discharges were selected to cover
a large variety of confinement behaviors: H-modes with
steady edge-localized modes (ELMs), ELM-free regimes,
dithering phases near the transition threshold, H-L back
transitions, among others. The dataset includes experiments
from various missions, such as studies on the ITER baseline
scenario, disruption avoidance, L-H transitions, density
limits, and the effects of heating methods and plasma
shaping. Labeling and data extraction was handled using the
DEFUSE framework [30].
_3.1._ _Confinement State Labeling_
In total, the dataset covers 451 _._ 67 s of plasma dynamics, an
average time of 1 _._ 50 s per discharge. Of this time, 302 _._ 20 s
is spent in L-mode, 24 _._ 08 s in dithering and 125 _._ 38 s in Hmode, see Figure 1 for a depiction of the time distribution
and the transitions between the different states. States
are labeled at a precision of 10 kHz, giving a total of
approximately 4.5 million timeslices. The dataset covers
experiments between 2003 and 2024, see Figure 2 for the
distribution of shots over time. To illustrate the types of
plasma scenarios we plot the distribution of key parameters
in Figure 3.
The labeling was done by a single expert to ensure
consistency throughout the whole dataset; we found that
inconsistent labeling is one of the biggest detractors to
model performance [15]. For this annotation, one of the
main identifiers of a change in confinement is the plasma
emission, which is generally visible in the photodiode signal.
Figure 1: Overview of the total time and transitions present
in the dataset. The top shows the cumulative time spent in the
different states, whereas the bottom depicts the total number
of state transitions. The left depicts the total number of
transitions, whereas the right excludes unstable or transient
transitions, which we define as those where the plasma
changes state within 10 ms before or after a transition.
Distribution of experiments over time
75
50
25
0
2003 2007 2011 2015 2019 2023
Figure 2: The distribution of the dates of the discharges
present in the dataset. It includes TCV plasmas from several
decades, with the majority from the last 10 years.
Kinetic profiles are also a key indicator, albeit generally less
available; contextual quantities such as the plasma stored
energy are also used. In certain marginal scenarios however,
it can be difficult to label the state with high certainty. We
aim for consistency in these scenarios to maximize model
performance, however potential biases of the human expert
cannot be avoided in the supervised learning setting.
_3.2._ _Signals_
In this work, we utilize a broad set of signals to automatically
identify the confinement state. These signals are selected
to measure plasma quantities in a variety of ways, adding
redundancy to increase robustness and reliability. We
split them into a set of categories that group them by
diagnostic systems or physical quantities. The categorization
we consider consists of _shaping,_ _emissions,_ _magnetics,_
_density, temperature, power, energy content, radiation_, and
a miscellaneous _other_ category. An overview of all signals
and the categorization is provided in Table 1.
Overview of labels
Time over 302 shots (1.50s average)
<mark>L</mark> D <mark>H</mark>
<mark>302s</mark> <mark>2</mark> 4 <mark>s</mark> <mark>125s</mark>
<mark>L</mark>
<mark>302s</mark>
D
<mark>2</mark> 4 <mark>s</mark>
L
D
H
Transitions
951 350
1204 522
96 776
L D H
to
L
D
H
[no transients]
83 142
201 155
49 335
L D H
to
Shaping
Variable Unit Description
_Ap_ m <sup>2</sup> Plasma cross-sectional area
_δ_ bottom Lower (bottom) plasma triangularity
_δ_ top Upper (top) plasma triangularity
∆in m Radial gap between plasma edge and inner
wall
∆out m Radial gap between plasma edge and outer
wall
_κ_ Plasma elongation
_R_ 0 m Major radius of the plasma
_a_ m Minor radius of the plasma
_R_ axis m Radial coordinate of the magnetic axis
_Z_ axis m Vertical coordinate of the magnetic axis
_Vp_ m <sup>3</sup> Plasma volume
4
Emissions
Variable Unit Description
PD _Hα_ V Photodiode (PD) signal for _Hα_ / _Dα_ line emission
( _λ_ =656.3 nm)
PD _CIII_ V Photodiode signal for CIII line emission ( _λ_ =465.1 nm)
PDFFT a.u. Spectral features from PD signals, computed as the
variance of frequency spectra over sliding windows
Magnetics
Variable Unit Description
_B_ 0 T Vacuum toroidal magnetic field at _R_ = 0 _._ 88 m
_Ip_ A Plasma current
_Ip,ref_ A Prescribed plasma current
_q_ 95 Safety factor at 95% of enclosed magnetic flux
Density
Variable Unit Description
_ne,_ core m <sup>_−_</sup> <sup>2</sup> Vertical interferometer line-integrated electron density from 0.87 m < ch < 0.91 m
_ne,_ LFS m <sup>_−_</sup> <sup>2</sup> Vertical interferometer line-integrated electron density from ch > 1.03 m
_ne/nGW_ Greenwald fraction [31] using electron density measurements from interferometry
max( _n_ <sup>_′_</sup> _e,_ edge <sup>)</sup> m <sup>3</sup> _/ρ_ Maximum first derivative of _ne,ρ_ in edge region (0 _._ 85 _< ρ <_ 0 _._ 95) from Thomson Scattering
max( _n_ <sup>_′′_</sup> _e,_ edge <sup>)</sup> m <sup>3</sup> _/ρ_ <sup>2</sup> Maximum second derivative of _ne,ρ_ in edge region (0 _._ 85 _< ρ <_ 0 _._ 95) from Thomson Scattering
_ne,_ 0 m <sup>_−_</sup> <sup>3</sup> On-axis ( _ρ_ = 0) electron density from Thomson Scattering
Temperature
Variable Unit Description
_SXR_ core W m <sup>_−_</sup> <sup>1</sup> Soft X-Ray core ( _ρ <_ 0 _._ 15) emission
max( _Te,_ <sup>_′_</sup> edge <sup>)</sup> eV _/ρ_ Maximum first derivative of _Te,ρ_ in edge region (0 _._ 85 _< ρ <_ 0 _._ 95) from Thomson Scattering
max( _Te,_ <sup>_′′_</sup> edge <sup>)</sup> eV _/ρ_ <sup>2</sup> Maximum second derivative of _Te,ρ_ in edge region (0 _._ 85 _< ρ <_ 0 _._ 95) from Thomson Scattering
_Te,_ 0 eV On-axis ( _ρ_ = 0) electron temperature from Thomson Scattering
Power
Variable Unit Description
_Pin_ W Total input power
_POHM_ MW Ohmic heating power
_PNBI_ MW Delivered NBI power
_PNBI2_ MW Delivered NBI2 power
_PECRH_ MW ECRH power
_PLH_ LH power threshold scaling from [3]
Radiation
Variable Unit Description
_Prad_ kW Total radiated power from bolometers
_Prad,_ bulk kW Bulk ( _ρ <_ 1) radiated power from bolometers
_Prad,_ SOL kW Scrape-Off Layer radiated power from bolometers
Energy Content
Variable Unit Description
_βN_ Normalized toroidal beta ( _βt_ <sup>_<u>aB</u>_</sup> _Ip_ <sup><u>0</u></sup> <sup>)</sup>
_βp_ Poloidal beta
_βt_ Toroidal beta
_Wtot_ J Total plasma stored energy
DML Wb Plasma toroidal flux from the diamagnetic loop
_H98y2_ Energy confinement time normalized to _τE_ <sup>IPB98(y, 2)</sup> [32]
Other
Variable Unit Description
_li_ Internal inductance of the plasma current
_Zeff_ Effective ion charge
_νe,_ <sup>_∗_</sup> ped Normalized edge electron collisionality [33]
_Vloop_ _V_ Loop voltage
Table 1: The list of input signals and constructed features used in the proposed method to classify the confinement state of
TCV. Signals and features are grouped by diagnostic systems or physical quantities. Shaping and energy content-related
features originate from LIUQE [34].
N edge
L
D
H
<u>0</u> <u>1</u> <u>2</u> <u>0.3</u> <u>0.0</u> <u>0.3</u> <u>0.6</u>
<u>q95</u> edge
<u>1</u> <u>3</u> <u>5</u> <u>7</u> <u>1.0</u> <u>1.3</u> <u>1.6</u> <u>1.9</u>
<u>H98y2</u> <u>ne</u> ~~/~~ <u>nGW</u>
0.0 0.5 1.0 1.5 0.0 0.5 1.0 1.5
Figure 3: Distributions of key plasma parameters in the
dataset, stacked for L, D and H-mode plasmas. We plot
average values for phases of 20 ms–around the TCV energy
confinement time–to exclude fast transient measurements.
All signals are interpolated to a common timebase of
10 kHz using linear interpolation. For real-time applications
one must use causal interpolation, but given that the scope
of this work is offline analysis, we use linear interpolation to
maximize information at each timestep. For more details on
how these signals are used as inputs for the different models,
we refer to Section 4.1.
_3.3._ _Dataset availability_
The dataset is publicly available at [RELEASED UPON
PUBLICATION]
4. Method
The overarching goal of our approach is to maximize
classification performance under two constraints: (1)
providing meaningful, ideally calibrated, uncertainties, and
(2) being robust to missing or corrupted input signals. To
do so, we propose ensembling a set of models on two axes:
5
different model formulations and different feature sets. In
this section we discuss this setup and the components in
detail; an overview of the method is provided in Figure 4.
_4.1._ _Structure_
We describe our ensembling procedure in a top down manner
using three ‘levels’ in a hierarchy. This structure is depicted
in Figure 4 on the left. The three levels are as follows:
(1) Ensembling over two axes: model formulations and
feature sets. A single element of the ensemble is defined
as a _(model + feature set)_ .
(2) For each _(model_ _+_ _feature_ _set)_, we ensemble over
different train and validation splits (folds). The splits
are chosen to have no overlap in the validation sets
w.r.t. experimental topics to encourage variety and
generalization.
(3) The lowest level describes a single model, with a single
feature set, fit on a single fold of the dataset.
The ensembling steps on levels 1 and 2 serve the function
of providing variety in the model behavior, by altering
the formulations, feature sets and data splits. Generally,
such an approach contributes to better uncertainty estimates.
Intuitively, if diverse models agree on a label, the prediction
is unlikely to be an artifact of an individual model, allowing
us to assign higher confidence, see e.g. [20, 21] for more
details.
Additionally, the use of different feature sets addresses
the point of robustness: by having models trained on
many different subgroups of features, the method naturally
becomes resilient to corrupted signals since they are only
present in a subset of the predictors, and any given feature
never appears in all feature sets. This advantage extends
to dealing with missing signals for models that require all
inputs to be present: since not all models utilize all signals,
we can still use a subset of models when some signals are
missing. Effectively, we can utilize many signals if they are
available, but we do not require them.
_4.2._ _Components_
The axes of variation in our approach are the feature sets and
the model inductive biases. In this section, we discuss the
construction of these feature sets, and describe the models in
detail. Specifically, for the latter, we consider a dynamic and
static formulation, based on neural networks (FNOLSTM),
and tree ensembles (GBDT), respectively.
Feature sets. We employ the features introduced before
in Table 1. The individual feature sets are constructed
either by taking features only from one category, or by
mixing features from all categories. When taking a subset
of a category, we first order them by their individual
discriminative power, which is computed by fitting simple
models on single features, see Appendix A for more details.
For example, if we only take two features from category
6
### Structure (top-down) Prediction (bottom-up)
_Features_ _confidence_ [0.95 0.02 0.03][0.82 0.10 0.06]
## 1
_Features_
_confidence_
GBDT
_shaping_
FNOLSTM
_shaping_
GBDT
_emissions_
FNOLSTM
_emissions_
GBDT
_mixed-top1_
FNOLSTM
_mixed-top1_
_GBDT-emissions_
Fold 2
_GBDT-emissions_
Fold 4
_FNOLSTM-shaping_
[0.99 0.00 0.01]
[0.88 0.10 0.02]
[0.92 0.04 0.04]
[0.91 0.05 0.04]
_INPUT_ _GBDT_ _OUTPUT_
L D H
_.96 .02 .02_
_.90 .05 .05_
.92 .07 .01
.97 .01 .02
.96 .03 .01
.70 .20 .10
.40 .50 .10
.10 .20 .70
... ... ...
_GBDT-shaping_ _GBDT-emissions_
[0.91 0.04 0.05] [0.92 0.04 0.04]
[0.95 0.03 0.02] [0.83 0.10 0.07]
_GBDT-shaping_
[0.92 0.04 0.04]
[0.83 0.10 0.07]
_GBDT-mixed-top1_
[0.82 0.14 0.04]
[0.81 0.12 0.07]
_FNOLSTM-mixed-top1_
[0.72 0.22 0.06]
[0.79 0.04 0.17]
[0.92 0.04 0.04]
[0.83 0.10 0.07]
_FNOLSTM-emissions_
[0.97 0.02 0.01]
[0.50 0.10 0.40]
[0.94 0.03 0.03]
[0.85 0.09 0.06]
## 2
_GBDT-emissions_
Fold 1
_GBDT-emissions_
Fold 3
[0.96 0.02 0.02] [0.92 0.03 0.05]
[0.90 0.05 0.05] [0.75 0.15 0.10]
[0.97 0.02 0.01]
[0.85 0.10 0.05]
## 3 GBDT-emissions, Fold 1
Train : Experimental topic A,
Experimental topic B,
...
Validation : Experimental topic K,
...
Figure 4: An overview of the ensemble structure and prediction procedure. The structure is defined in a top-down fashion.
First, we ensemble over different models and feature sets (level 1). Each _(model + feature set)_ combination consists of a
small ensemble of models fit on different folds of the data (level 2). At the bottom, we consider individual models (level
3). Prediction is done in a bottom-up fashion. Individual models map the input signals to a prediction of being in L, D or
H (level 3). These predictions are combined and re-scaled on the level of a _(model + feature set)_ (level 2). The resulting
predictions are combined weighted by their confidences and a constant that is computed using a _(model + feature set)_ ’s
average classification performance, giving the full ensemble prediction (level 1).
‘Shaping’, we take the two most informative according to a
precomputed metric, rather than picking them arbitrarily.
Given this scheme, we construct two groups for each
category: one with the top- _k_ features, and one with all
features. Additionally, we construct various groups mixing
all categories, taking the top-1, top-2, etc.; see Appendix A
for all _(model + feature set)_ combinations.
The main motivation for this approach is twofold. For
one, by constructing sets in an informed manner, we can fit
multiple models covering the main aspects of the plasma
whilst having little overlap in their inputs. Ideally, this
strategy gives us distinct models with good performance,
reducing the sensitivity to single features. Additionally,
having models cover a single category provides a degree of
interpretability, given that we can inspect individual model
predictions.
Dynamic model formulation: FNOLSTM. First, we
consider the problem in a dynamic formulation. The model
maps an input sequence of signal data, up to a given timestep
_tm_, to the label at time _tm−k_, i.e., a small offset _k_ before the
last input. This formulation can be expressed as follows:
_f_ dynamic : x <sup>u</sup> <sup>_,_</sup> <sup>t</sup> <sup>_≤m_</sup> _∈_ R <sup>_U×m_</sup> _→_ y <sup>s</sup> <sup>_,tm−k_</sup> _∈_ R <sup>3</sup> _,_ (4)
with the same notation as Equation 1, and _f_ dynamic denotes
the input-output map we learn. Intuitively, we assume
knowledge of all signal data up to time _tm_, and provide
predictions with a lag of _k_ timesteps.
To implement _f_ dynamic we use artificial neural networks
(NNs) to best exploit the potentially subtle information
carried by the input dynamics. Previous works have
shown success on confinement state classification with
NNs [4–9, 11, 12, 14, 15]. We build upon the general
principle of feature extraction on small timescales using
convolution-like methods and on large timescales using
recurrent methods.
We use the Fourier Neural Operator (FNO) [22] on
small input windows of signals. The FNO combines
a linear, global integral operator with non-linear, local
activation functions, which has proven highly successful
on modeling the dynamics of various physical processes [35–
38]. Specifically, the FNO performs a Fast Fourier
Transform (FFT) [39] of the input signals, in our case along
the time axis, after which we perform a matrix multiplication
on the spectral coefficients. The result is transformed back
and summed to a point-wise transformation of the grid. This
procedure can be expressed as follows:
_FNO_ <sup>_l_</sup> : z <sup>_l_</sup> = _σ_
�FFT <sup>_−_</sup> <sup>1</sup> ( R <sup>_l_</sup> FFT( z <sup>_l−_</sup> <sup>1</sup> )) + W <sup>_l_</sup> z <sup>_l−_</sup> <sup>1�</sup>
_,_ (5)
7
maps inputs at a given timestep _tm_ to the corresponding label
at this time, i.e.,
_f_ static : x <sup>u</sup> <sup>_,tm_</sup> _∈_ R <sup>_U_</sup> _→_ y <sup>s</sup> <sup>_,tm_</sup> _∈_ R <sup>3</sup> _,_ (10)
with the same notation as Equation 1, and _f_ static denoting the
input-output map we learn.
We implement _f_ static using gradient boosted decision
trees (GBDT) [42], a machine learning method that builds
an ensemble of small decision trees in a sequential manner.
GBDTs have shown strong performance on tabular data [43,
44], making them well suited for the static formulation.
Each individual tree splits an input sample iteratively
based on feature thresholds up to a leaf node holding the
prediction value. A benefit of this formulation is the ability
to deal with missing signals by simply choosing a default
direction on a split node. GBDTs build an ensemble of
decision trees in a sequential manner, by fitting individual
trees using residual errors of previous trees w.r.t. the train
dataset. This iterative process is carried out through gradient
boosting with XGBoost [24], i.e., the residuals are computed
as the gradient of a specified loss function.
In practice, we fit an ensemble of trees for each class _∈_
_{L, D, H}_ . The final prediction for the GBDT model is
obtained by normalizing over the three ensemble predictions
using Softmax. This entire process is described as follows:
mapping an input (multidimensional) signal at layer _l −_ 1
( z <sup>_l−_</sup> <sup>1</sup> ) to the output at layer _l_ ( z <sup>_l_</sup> ). The learned weight
matrices are denoted as R <sup>_l_</sup> _∈_ R <sup>_D×D×M_</sup> and W <sup>_l_</sup> _∈_ R <sup>_D×D_</sup>,
for _D_ hidden dimensions and _M_ fourier modes, with nonlinear activation function _σ_ .
To capture dynamics on longer time scales, we combine
the local feature extractor with a recurrent architecture that
operates on sequences of arbitrary length. We utilize the
Long Short Term Memory (LSTM) [23] architecture, which
can be summarized as follows:
_LSTM_ : h _tm_ _,_ c _tm_ = _fLSTM_ ( z _tm,_ h _tm−_ 1 _,_ c _tm−_ 1) _,_ (6)
where _fLSTM_ denotes the learned recurrent layer, h _tm_ and
c _tm_ the hidden state components of the LSTM unit, and
z _tm_ the input of the recurrent layer, that is, the output of
Equation 5. Note the temporal connection of the LSTM:
it takes as input the previous hidden state ( h _tm−_ 1 _,_ c _tm−_ 1)
along with the current signal information z _tm_ to compute
the outputs at time _tm_ .
The output of the LSTM is passed through a small
set of fully connected neural network layers, i.e. a small
Multi-Layer Perceptron (MLP) [40]. The resulting value
is subsequently mapped to probabilities using the Softmax
function, giving us final prediction y . Additionally, we add
a skip connection [41] between the local feature extractor
and the input of the MLP. In certain instances the input time
window in isolation already sufficiently describes the plasma
state: the skip connection removes the potential bottleneck
of the hidden state.
Lastly, we discuss the specifics of the inputs and
outputs. The input at time _tm_ is a time window ending
at time _tm_ of size _w_ timesteps, that is, covering the interval
( _tm−w, tm_ ], or denoted as input matrix x _tm−w_ : _tm_ _∈_ R <sup>_U_</sup> <sup>_×w_</sup> .
The model operates on a stride of _p_ : we predict every _p_
timesteps. Finally, the prediction is given with a lag of
_k_ timesteps in order to maximize accuracy—in an online
setting, one could imagine minimizing this delay _k_, or setting
it to _k_ = 0 for no latency. Altogether, this process is
described as follows:
z _tm_ = _FNO_ ( x _tm−w_ : _tm_ ) _,_ (7)
h _tm,_ c _tm_ = _LSTM_ ( z _tm,_ h _tm−p,_ c _tm−p_ ) _,_ (8)
- - <sup>_K_</sup>
_f_ static : y <sup>s</sup> <sup>_,tm_</sup> = Softmax
_k_ =1
_fc,k_ ( x <sup>u</sup> <sup>_,tm_</sup> )
(11)
for _c ∈{L, D, H}_ - _,_
_f_ dynamic : y <sup>s</sup> <sup>_,tm−k_</sup> = Softmax� _MLP_
- z _tm_ + h _tm_
�� _,_ (9)
where _K_ denotes the number of trees in an individual class’
ensemble, _fc,k_ an individual decision tree; x and y as in
Equation 1. A simplified illustration of this process is given
in Figure 5 (top).
_4.3._ _Fitting Procedure_
We describe the fitting procedure in a bottom-up manner,
starting from the individual models up to the full ensemble
(i.e. from level 3 to 1). An overview of this process is
depicted in Figure 4 (right). The dataset is split into a subset
for fitting the individual models (‘train-validation’), a subset
for fitting ensembling parameters (‘ensemble-holdout’), and
the test set used in Section 5. Since the method should
be applicable to novel scenarios, we choose the splits to
minimize overlap in the contained missions. This approach
ensures we evaluate on sufficiently different scenarios,
avoiding information leakage.
Individual model training. Each individual _(model_
_+ feature set)_ consists of a small ensemble that shares the
same model hyperparameters (level 2). Each element of
this ensemble, an individual model (level 3), is fit using a
different split of the ‘train-validation’ set, which is referred
to as a fold. See Figure 4 for a visualization.
for the dynamic model _f_ dynamic, and x and y as in Equation 4.
A simplified illustration is provided in Figure 5 (bottom).
Static model formulation: GBDT. Secondly, we
consider the problem in a static formulation. Here, the model
8
_<u>GBDT</u>_
-1
FFT FFT
### R
<mark>W</mark>
_FNO_
_FNO_
<mark>L,D,H</mark>
<mark>L,D,H</mark>
<mark>L,D,H</mark>
_LSTM_
+
<mark>L,D,H</mark>
_FNOLSTM_
<mark>L,D,H</mark>
<mark>L,D,H</mark>
<mark>L,D,H</mark>
<mark>L,D,H</mark>
<mark>L,D,H</mark>
Figure 5: A simplified illustration of the two modeling approaches, a static formulation operating on timeslices of signals
(top) and a dynamic formulation operating on sequences of signals (bottom). Static (GBDT): The static formulation is
implemented with gradient boosted decision trees. A collection of small decision trees is fit in a sequential manner: each
tree is fit using the residual errors of the previously fit trees. These trees operate on a vector of signal data corresponding to
a single timeslice of the discharge. The final prediction is computed using a weighted combination of all individual trees.
Dynamic (FNOLSTM): The dynamic formulation is implemented through a neural network extracting features on both
small and large timescales. The input consists of a matrix corresponding to a small time window of signal data. This input is
transformed with the FNO, a convolution-like operator acting primarily in the frequency domain. This computed abstract
representation is processed in a recurrent manner over the entire duration of the shot with an LSTM. The final prediction is
then computed using this local and global representation of the input signals.
For each fold, we optimize a separate set of model
parameters using the confinement state labels. For both
the FNOLSTM and the GBDT-based models, the loss is
categorical cross-entropy between the model outputs and the
ground-truth labels. For the FNOLSTM, given its sequential
nature, we optimize using subsequences of discharges,
which are sampled to ensure a balance in the output labels,
see Appendix B for more details. For the GBDT, given
its static nature, we sample individual timeslices. Lowerfrequency states are oversampled for better balance, and
periods around state transitions are oversampled to ensure
we capture their dynamics, see Appendix B for details.
Ensembling procedure. The prediction procedure can
be split into three steps. First, we predict individually with
each model (level 3), i.e. Equation 1. These predictions are
consequently averaged at the level of the _(model + feature_
_set)_, level 2. This mini-ensemble is calibrated with the
‘ensemble-holdout’ set using temperature scaling [45], which
is defined as follows:
_f_ <sup>_∗_</sup>
2 <sup>=</sup> <sup><u>1</u></sup>
_N_
for level-2 ensemble _f_ 2, taking as input _N_ individual model
outputs _f_ 3 _i_, and _T_ denoting the fitted temperature parameter.
Prior work shows that this pool-then-calibrate approach
generally results in the lowest calibration error [21].
The level 1 prediction, the final output, consists of
a linear combination of all individually calibrated level 2
outputs. Each output is weighted by a constant weight,
denoted as _Ci,j_, for _i_ _∈_ _models_ and _j_ _∈_ _features_ .
These constants are determined using the classification
performance. Specifically, we compute the Cohen’s kappa
coefficient [46] (see Section 5.2) for more information),
which we normalize over all the different models, and
_N_
_i_ =1
_f_ 3 _i,_ (12)
_f_ 2 = Softmax( _f_ 2 <sup>_∗/T_</sup> <sup>)</sup> <sup>_,_</sup> (13)
then square the results. This rescaling puts the constants
_Ci,j_ _∈_ [0 _,_ 1], while placing more emphasis on the best
performing models. The final prediction then sums over
all level 2 predictions, scaled by these constants and the
prediction confidences (Equation 3), and is subsequently
normalized such that the total sums to 1:
_f_ 1 =
-
normalize
_i∈models_
_j∈features_
9
(level 2), we use 4 different folds. Hyperparameters are
shared on this level, whereas each model is naturally defined
by its own parameters. All models are optimized using the
‘train-validation’ set. Individual model parameters are fit
on the train set, whereas hyperparameters are optimized
using Bayesian optimization on the validation set. The
optimization target is the Cohen’s kappa coefficient (see
Section 5.2) averaged over the different folds. For details on
the hyperparameter ranges we refer to Appendix C.
All neural network models are implemented using
PyTorch [47]. The gradient-boosted decision trees are
implemented using XGBoost [24]. We utilize Optuna [48]
for the hyperparameter optimization and net:cal [49] for
calibrating level 2 ensembles through temperature scaling.
_5.2._ _Quantitative results for accuracy and calibration_
Metrics. For quantitative evaluation, we consider Cohen’s
kappa coefficient [46] for the classification performance,
and the Expected Calibration Error (ECE) [50,51] for the
calibration of the model confidence outputs.
_Cohen’s kappa coefficient_ [46] measures the agreement
between two sets of categorical labelings while taking into
account agreement occurring by chance. We utilize it as
an accuracy metric taking into account the class imbalance
present in our data. It is defined as follows:
_Cohen’s kappa coefficient_ = <sup>_<u>po −</u>_</sup> <sup>_<u>pe</u>_</sup> _,_ (15)
1 _−_ _pe_
_Ci,j_ _· confidencei,j_ _· f_ 2 _i,j_
_,_ (14)
for full ensemble _f_ 1. An overview of the full prediction
procedure is provided in Figure 4 (right).
5. Experiments and Results
In this section we evaluate the proposed method both with
regards to its accuracy for labeling and the soundness of the
confidence estimates. We consider both aggregate statistics
and zoom in on specific scenarios. Challenging scenarios
are included to further assess the method. Additionally, we
evaluate the method with conditionally averaged behavior
around specific types of transitions.
A short summary of the training specifics, including
hyperparameters and the dataset splits, is provided in
Section 5.1. We follow with quantative and qualitative
evaluations in Sections 5.2 and 5.3 respectively. Next,
we consider extrapolation and robustness in Section 5.4,
and conclude with conditionally averaged behavior of the
confidence estimates in Section 5.5.
_5.1._ _Dataset split and hyperparameters_
Dataset split. To recap, the dataset (302 shots) is split
into the ‘train-validation’ set (258 shots), the ‘ensembleholdout’ (10 shots) and the test set (34 shots). In this
section, unless mentioned otherwise, we only show results
from the test set. We carefully construct the ‘ensembleholdout’ and test set such that they are a representative
sample of the operational space of TCV. To do so, we
sample these shots to approximate the distribution of
the campaigns present in the full dataset. We highlight
shots from plasmas presented in [25] to cover the ITER
Baseline (IBL). Furthermore, we select sets of shots from
underrepresented scenarios to evaluate the method under
more challenging circumstances. Specifically, we include
shots from quasi-continuous exhaust (QCE) regimes [26],
negative triangularity (NT) configurations [27], and filter
specifically on _δ_ top _>_ 0 _._ 3 and _βN_ _>_ 1 _._ 7 to evaluate out-ofdistribution regimes.
Hyperparameters. In total, we utilize an ensemble of
52 models (level 1), 26 based on the FNOLSTM and 26 on
GBDT. For all _(model + feature set)_ combinations, we refer
to Appendix A. For each _(model + feature set)_ configuration
for _M_ interval bins, together covering the 0–1 range
of confidences: the _m_ <sup>th</sup> bin covers interval ( <sup>_<u>m</u>_</sup> _M_ <sup>_<u>−</u>_</sup> <sup><u>1</u></sup> <sup>_,_</sup> _M_ <sup>_<u>m</u>_</sup> <sup>].</sup>
_M_ <sup>_<u>−</u>_</sup> <sup><u>1</u></sup> <sup>_,_</sup> _M_ <sup>_<u>m</u>_</sup>
_M_ <sup>_<u>m</u>_</sup> <sup>].</sup>
with _po_ as the observed agreement and _pe_ the agreement by
chance. For prediction matrix pred and ground-truth matrix
gt, each of size _N_, we compute the observed agreement
- _N_
_po_ as the accuracy: _po_ = _N_ <sup><u>1</u></sup> _i_ =1 <sup>1</sup> <sup>[</sup> <sup>_predi_</sup> <sup>=</sup> <sup>_gti_</sup> <sup>].</sup> We
- _N_
_po_ as the accuracy: _po_ = _N_ <sup><u>1</u></sup> _i_ =1 <sup>1</sup> <sup>[</sup> <sup>_predi_</sup> <sup>=</sup> <sup>_gti_</sup> <sup>].</sup> We
compute the agreement by chance _pe_ by multiplying
the total counts of each state (thus assuming statistical
independence) in the ground-truth labels and the predictions:
_pe_ = _N_ <u>1</u> <sup>2</sup> - _s∈_ s <sup>_Npred_</sup> _s_ <sup>_Ngt_</sup> _s_ <sup>, where</sup> <sup>_Npred_</sup> _s_ <sup>and</sup> <sup>_Ngt_</sup> _s_ <sup>denote</sup>
_N_
_pe_ = _N_ <u>1</u> <sup>2</sup> - _s∈_ s <sup>_Npred_</sup> _s_ <sup>_Ngt_</sup> _s_ <sup>, where</sup> <sup>_Npred_</sup> _s_ <sup>and</sup> <sup>_Ngt_</sup> _s_ <sup>denote</sup>
the prediction and ground-truth counts for state _s_,
respectively. Intuitively, we can interpret the metric as the
ratio expressing the gain of our classifier relative to random
guessing. A value of 1 corresponds to perfect predictions,
with 0 corresponding to random guessing (and negative
values to worse-than-random performance).
The _Expected_ _Calibration_ _Error_ [50, 51] aims to
measure the calibration of a model’s confidence outputs.
We can express the calibration error as the difference in
expectation between the model confidence and accuracy.
The ECE approximates this expectation using finite samples
by binning the prediction- and confidence-outputs and
computing the per-bin confidence/accuracy difference. It is
defined as follows:
_ECE_ =
_M_
_m_ =1
_<u>Nm</u>_
_N_ <sup>_|accuracy_</sup> <sup>(</sup> <sup>B</sup> <sup>_m_</sup> <sup>)</sup> <sup>_−_</sup> <sup>_confidence_</sup> <sup>(</sup> <sup>B</sup> <sup>_m_</sup> <sup>)</sup> <sup>_|_</sup> <sup>(16)</sup>
10
Accuracy and calibration metrics for models and ensembles
100
80
60
40
20
GBDT|MA|1
GBDT|EM|1
GBDT|OT|1
GBDT|EM|2
GBDT|RA|2
FNOLSTM|MA|1
GBDT|RA|1
FNOLSTM|RA|1
GBDT|PO|1
GBDT|PO|2
GBDT|DE|2
GBDT|DE|1
FNOLSTM|OT|1
GBDT|EM|3
FNOLSTM|PO|1
GBDT|EN|2
FNOLSTM|RA|2
FNOLSTM|EM|3
GBDT|EN|1
FNOLSTM|TE|1
FNOLSTM|PO|2
FNOLSTM|DE|1
GBDT|SH|2
GBDT| |1
FNOLSTM|EM|2
FNOLSTM|EM|1
GBDT| |8
GBDT|TE|1
FNOLSTM|EN|2
GBDT| |2
GBDT| |10
FNOLSTM|DE|2
GBDT|SH|1
GBDT| |4
GBDT| |9
FNOLSTM|SH|1
FNOLSTM| |7
FNOLSTM| |4
GBDT| |7
FNOLSTM| |1
GBDT| |3
FNOLSTM|SH|2
FNOLSTM| |3
FNOLSTM| |6
GBDT| |5
FNOLSTM| |2
GBDT| |6
FNOLSTM| |5
FNOLSTM| |10
FNOLSTM| |8
FNOLSTM| |9
FNOLSTM|EN|1
FNOLSTMENSEMBLE
GBDTENSEMBLE
ALLENSEMBLE
~~<u>Test shots with all signals</u>~~
~~<u>All test shots</u>~~
0
Model availability
With all/subset of features available
With all features available
100 90 80 70 60 50 40
% of models active
0.00 0.25 0.50 0.75 1.00 0.2 0.1 0.0
Cohen's kappa coefficient Expected Calibration Error
Figure 7: The distribution of model availability. That is,
we plot the fraction of models that are available, which
corresponds to their input features being present in the
discharge, for fractions of the dataset. We evaluate the full
dataset rather than the test set to give a better sample of
signal availability. The two lines distinguish models that
use all signals they are trained on (red) and models that
can still run on a discharge, albeit with a reduced input set
(blue). The latter correponds to the GBDT models, since
they can naturally deal with missing input features. Only
approximately _≈_ 64% of discharges have each utilized signal
present, resulting in all models being available. In the worst
cases, only _≈_ 38% of models are active.
Cohen’s kappa coefficient and the ECE, is provided in
Figure 6; see Table D.1 for a tabular version. We plot the
results for all _(model_ _+_ _feature_ _set)_ settings (level 2) and
ensembles for all FNOLSTM models, all GBDT models
and for all models (level 1). To be able to compare all
feature sets, we provide the metrics on both the full test
dataset of 34 discharges and a subset of 15 discharges for
which all features are available. The results are sorted on
the prediction performance on the latter subset. To give an
idea of the general availability of signals, and subsequently
of models using them, we plot the distribution of model
availability in Figure 7.
Perhaps unsurprisingly, mixed feature settings generally provide the best predictive performance and lowest
calibration error when they can be applied. FNOLSTM
models based on emission and energy content signals also
show strong performance while still being applicable to all
shots. Notably, mixed feature set-based GBDT models still
show strong performance even when applied to all test shots,
where some components of the model are disabled due to
missing input signals. The ensembled models do not necessarily always beat the _(model_ _+_ _feature_ _set)_ models on
individual metrics, however they can always be applied and
we found them to give more robust predictions and uncertainty estimates.
Lastly, we investigate the relative performance of the
FNOLSTM-only, GBDT-only, and complete ensemble with
regards to transition times. Specifically, we filter the test
set on various incremental windows of 5 ms within 50 ms
Figure 6: An overview of classification performance and
uncertainty calibration for all individual models in the
ensemble (level 2), ensembles for all FNOLSTM-based
and GBDT-based models, and an ensemble of all models
(level 1). We plot the Cohen’s kappa coefficients on the left
(higher is better) and the Expected Calibration Error on the
right (lower is better). Feature categories are described by
the first two letters, or ‘ _∗∗_ ’ for a mix of categories. The
different subsets are enumerated for brevity, see Appendix A
for details. For each metric, we plot the results for all 34
shots in the test set (bottom bar) and a common subset of
15 shots that contains all features (top bar). The latter set is
used to allow a comparison between all individual models:
some models cannot provide predictions for all shots in the
test set due to missing signals, which is indicated by the lack
of a bar in the plot.
B _m_ denotes the elements in the _m_ <sup>th</sup> bin, _Nm_ the
number of elements in B _m_, and _N_ the total number of
elements. For each bin, _accuracy_ ( B _m_ ) is computed as the
fraction of correctly predicted samples to total samples,
and _confidence_ ( B _m_ ) as the average confidence output.
Intuitively, the _ECE_ can directly be interpreted as an error
of the confidence output: an _ECE_ of 0.01 indicates that
on average, the model’s confidence differs from its actual
accuracy by 1 percentage point.
Overview of results. An overview of prediction and
calibration performance on the test set, measured through
11
Confidence histogram
1.0
0.8
0.6
0.4
0.2
0
Accuracy around transition times
FNOLSTM
GBDT
ALL
Reliability diagram
ECE: 0.0130
Accuracy
Mean confidence
0.9
0.7
0.5
0.3
0.1
0.9
0.7
0.5
0.3
0.1
0.9
0.7
0.5
0.3
Output
Perfect
calibration
Output
Gap
Time to closest transition (ms)
Figure 8: The prediction accuracy near the time of state
transitions. Each point corresponds to accuracy for timesteps
filtered using a 5 ms window with varying offsets before
and after a transition, with the exception of the last point
capturing the remaining timesteps. We observe a significant
drop in accuracy in small windows around transitions, with
the largest impact for the static-only GBDT ensemble.
of state transitions and plot the accuracy on this subset of
the data, see Figure 8. Note that we consider accuracy as a
metric for easier interpretability <sup>1</sup> . While on a large scale the
ensembles all perform well, the accuracies drop significantly
very close to the transition time, primarily within 0–5ms;
more precise estimates of the exact time of transition are an
interesting avenue for future work.
Confidence-accuracy relationship. To evaluate the
validity of the confidence outputs, we start by plotting
reliability diagrams for the FNOLSTM, GBDT and full
ensembles in Figure 9. Generally, all ensembles are
relatively well calibrated, with only a few percentage
points of calibration error on average. However, since
the ensembles are generally very accurate, the majority of
confidence predictions fall in a tight range, i.e. _≈_ 0 _._ 93–0 _._ 97:
we cannot trust the ECE in isolation. Fortunately, also
around lower confidence estimates the reliability diagrams
generally indicate good calibration; more qualitative
evaluations are provided in subsequent sections.
Additionally, we explore using the confidence estimates
as a threshold for prediction outputs. For example, if one
wants to build a database of confinement states but does
not necessarily care about fully labeling each discharge,
one could filter on high-confidence timeslices to get more
reliable results. This relation between prediction accuracy
when filtering on a minimum level of confidence, alongside
the fraction of test data that remains, is depicted in Figure 10.
We see that the accuracy rises steadily as the threshold
is increased, with the full ensemble showing the most
advantageous relation. Data can be labeled with little to
no errors with _≈_ 75% of timeslices remaining.
1Subsets of data just before/after transitions naturally have (approximately)
balanced ratios of two classes, removing the need to account for class
imbalance in the metric.
100 90 80 70 60 50
% of data labeled
Figure 10: The relation between the prediction performance,
the model confidence and the fraction of data labeled, plotted
for the ensemble of FNOLSTM models, GBDT models and
all models. For each ensemble, the line is colored by the
minimum confidence level, and displays what fraction of the
dataset is still covered, and at what accuracy. By setting this
threshold, we can select to label a subset of the dataset with
near-perfect results.
_5.3._ _Qualitative results_
General overview. To give an idea of the average
performance, we plot 4 discharges from the test set in
Figure 11. These discharges cover various scenarios,
e.g. power scans for edge dynamics, high performance
scenario development and control near operational limits.
90
70
50
30
10
90
70
50
30
10
90
70
50
30
ECE: 0.0200
ECE: 0.0205
10
0.00 0.25 0.50 0.75 1.00
Confidence
0.1
0.00 0.25 0.50 0.75 1.00
Confidence
Figure 9: The calibration of ensembles of FNOLSTM
models, GBDT models and all models. The reliability
diagrams (right) show how the model confidence, binned
into intervals of 0.1, corresponds to the expected accuracy
from the respective bin: a visual respresentation of the ECE.
The distribution of model confidences are plotted for context
(left).
Thresholding on confidence for increased accuracy
1.00
0.98
0.96
<u>1.0</u>
0.9
0.8
0.7
0.6
0.94
0.92
FNOLSTM
0.6
GBDT
ALL 0.5
2
1
12
0.75
0.50
0.25
6
4
2
0
6
4
2
0
L
D
~~H~~
confidence
<u>PDCIII</u>
0.25 0.50 0.75 1.00 1.25 1.50 1.75
Time (s)
TCV #61028 confinement state detection
L
D
~~H~~
confidence
<u>PDCIII</u>
0.6
0.4
0.2
Manual
validation
TCV #73631 confinement state detection
L
D
~~H~~
confidence
<u>PDCIII</u>
0.25 0.50 0.75 1.00 1.25 1.50 1.75
Time (s)
TCV #64678 confinement state detection
L
D
~~H~~
confidence
<u>PDCIII</u>
1.00
0.75
0.50
0.25
Manual
validation
Manual
validation
0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6
Time (s)
Manual
validation
0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8
Time (s)
TCV #68631 confinement state detection
10
5
0
6
4
2
0
Figure 11: Plots illustrating the predictions from the full ensemble. For each discharge we plot the core line integrated
density from the interferometer _ne,_ core (black), the total input power _Pin_ (red), and overlay the emissions from the photodiode
PD _CIII_ (green). The top panel is colored by the ensemble predictions of the confinement state, the bottom stripe indicates the
expert’s manual labeling for reference. Additionally, the ensemble confidence is provided in the top panel, by the dashed
line and the change in background brightness. This scale is always normalized, i.e., the top indicates 1.0 confidence and the
bottom 0.0 (confidence quartiles given by dashed horizontal lines).
1.0
0.5
In general, there is good agreement between the ensemble
and the manual validation, even capturing several transient
transitions. Some are missed however, for example in
#61028 and #64678; nevertheless, there is usually a drop
in confidence aligning with the respective transients. The
only major error is in #68631 where a region of dithering is
incorrectly labeled as L-mode, albeit at a slightly reduced
confidence.
The worst result in the test set is on #77598, depicted
in Figure 12 (top). In this discharge, a radial proximity
controller was tested to control the vertical instability
growth rate [52], leading to some unconventional plasma
dynamics. Specifically, the controller was active from
1 _._ 25 s to 1 _._ 70 s, corresponding to the region of biggest
mismatch. Nevertheless, an automated labeling method
should deal with any scenario. To further investigate, we
display the spectrogram from high frequency magnetics for
the period of biggest mismatch in Figure 12 (bottom). The
prediction errors partially correspond to the occurrence of
magnetohydrodynamic (MHD) perturbations, for example
around 1 _._ 35 s and 1 _._ 6 s. Potentially, the effects of these
perturbations lead to signature behavior in input signals
similar to those in H-mode. Such confusion could be
alleviated by also including MHD markers as input signals.
Regardless, we see that the confidence also drops low in
the regions of mismatch. For example between _≈_ 1 _._ 4–1 _._ 6s
we have a period where the method predicts H-mode for
too many timesteps, but the confidence is high only for the
Figure 12: The worst result on the test set: #77598, a
discharge testing vertical instability growth rate control. We
plot the full discharge, predictions and signals at the top. At
the bottom, we zoom in on the region of biggest mismatch,
showing the labels, predictions and confidences overlaid on
a spectrogram of high frequency magnetic measurements.
Multiple incorrectly classified transitions seem to align with
MHD activity.
period where it matches the manual validation. Similarly,
the H-L back transition at 1 _._ 3 s is predicted too late, however
8
6
4
2
0
60
40
20
0
Manual
validation
<u>Model</u>
~~output~~
Model
confidence
1.2 1.3 1.4 1.5 1.6 1.7
Time (s)
TCV #77598 confinement state detection
L
D
~~H~~
confidence
<u>PDCIII</u>
Manual
validation
0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8
Time (s)
Magnetics spectrogram and confinement labelings
H
D
L
13
1.5
1.0
0.5
Manual
validation
1.5
1.0
0.5
1.5
1.0
0.5
1.5
1.0
0.5
the confidence drops where the transition actually occurs.
ITER Baseline (IBL) example. To evaluate a
representative scenario we test the ensemble on #64770,
see Figure 13. Specifically, #64770 is an ITER Baseline
scenario development discharge using ECRH power to
prevent neoclassical tearing modes [25]. We see that the
main L-D-H phases are matched precisely and with high
confidence. Of interest is the phase from 1 _._ 1 s onward,
where many fast back transitions occurred. To better evaluate
the characteristics of the different models, we zoom in for
3 predictions (Figure 13 bottom): the full ensemble, the
ensemble of all FNOLSTM models, and one of the bestperforming _(model_ _+_ _feature_ _set)_ settings. All models
capture the main H-mode phase and all show dips in the
uncertainty corresponding to the transient events. The two
models discarding the static formulation perform better
around these transients. This discrepancy is not surprising,
given that a fast back-and-forth between different states
is likely easier to capture by using a context window of
signal data that covers the before and after, rather than
an individual timeslice only in one state. The individual
model (FNOLSTM- _∗∗_ -9) shows the best performance when
it comes to the output labels, but the confidence estimates are
a lot noisier, especially from 1 _._ 1 s to 1 _._ 25 s. As such, while
individual level 2 _(model + feature set)_ ensemble predictions
are worth evaluating in scenarios with fast dynamics, these
predictions are likely not as robust. Also, they come
with a stronger requirement on signal availability–e.g., the
FNOLSTM- _∗∗_ -9 setting could only be applied to 16 out of
34 test discharges due to missing inputs.
Alternative scenarios. Next, we test on discharges
from underrepresented scenarios to evaluate challenging
circumstances. First, we consider two shots for scenario
development of the quasi-continuous exhaust regime [26],
see Figure 14. Shot #78069 successfully reached the
desired small ELM regime, with its time window accurately
predicted by the ensemble. In discharge #83049 it is not
as clear, with more ELMy and dithering regions. We plot
results for the full ensemble and the FNOLSTM ensemble,
illustrating that with more transient behavior using only
the dynamic formulation tends to give more precise
results. Additionally, we test two negative triangularity
discharges [27], see Figure D.1 for plots. The ensemble
is not sensitive to the non-standard configuration and
accurately predicts L-mode for the entire shots’ durations.
_5.4._ _Extrapolation and robustness_
Out-of-distribution regimes. To test the ensemble in an outof-distribution setting, we filtered on shots with an average
_βN_ _>_ 1 _._ 7 and _δ_ top _>_ 0 _._ 3 for a phase of 100 ms and removed
them from the ‘train-validation’ set, ensuring we do not
train on these conditions. Predictions for two shots from
this set are given in Figure 15. In general, the ensemble
still performs well in these conditions, with the exception
of mislabeling a dithering region in #69514 around 0 _._ 4 s
7.5
5.0
2.5
0.0
5
0
5
0
5
0
TCV #64770 confinement state detection
L
D
~~H~~
confidence
<u>PDCIII</u>
0.2 0.4 0.6 0.8 1.0 1.2 1.4
Time (s)
<u>ALL</u>
<u>FNOLSTM</u>
<u>FNOLSTM-</u> <u>-9</u>
1.1 1.2 1.3 1.4 1.5
Time (s)
Manual
validation
Figure 13: Results on #64770, an IBL scenario development
discharge. The full discharge, predictions and signals are
plotted at the top. At the bottom, we zoom in on a region with
several fast back transitions. Here, we evaluate three sets of
predictions: the ensemble of all models, an ensemble of all
FNOLSTM models, and the FNOLSTM- _∗∗_ -9 setting. All
models show confidence spikes around the transient events.
The dynamic models (bottom two) tend to perform better on
these fast transients, albeit with noisier confidence estimates.
to 0 _._ 7 s, albeit with a low confidence score. In general,
the results on this set did not seem significantly different
from the remaining test-set discharges. It should be noted
that while no discharges with the specified condition were
used for training, it is likely that similar discharges were still
present in the training data: we are not necessarily evaluating
a completely novel scenario.
Broken or missing signals. To evaluate the robustness
of the ensembling method in more detail, we consider
the case of a faulty or missing PD _CIII_ signal. The PD _CIII_
emissions are a key indicator of the confinement state due
to its line-of-sight crossing the divertor region: emission
patterns such as ELMs leave clear signatures. It is used
directly in the dynamic-formulation models, and by both
model types through derived spectral features as PDFFT. The
baseline of no errors is given in Figure 16 (top). Here, the
ensemble accurately matches the expert labels. In Figure 16
(middle) we show the results when PD _CIII_ is saturated, an
error mode caused by the diagnostic system’s gain being set
too large. In contrast to previous examples, the FNOLSTM
ensemble now shows the worst results, evidently having a
larger dependence on this signal. The GBDT ensemble loses
accuracy around the transitions but still provides accurate
predictions with high confidence in the stable phases. As a
6
4
2
0
TCV #78069 confinement state detection
L
D
~~H~~
QCE-H
<u>confidence</u>
PDCIII
TCV #57013 confinement state detection
L
D
~~H~~
confidence
<u>PDCIII</u>
0.2 0.4 0.6 0.8 1.0 1.2 1.4
Time (s)
7.5
5.0
2.5
0.0
5
0
5
0
5
0
5
0
5
0
5
0
<u>ALL</u>
<u>FNOLSTM</u>
<u>GBDT</u>
14
0.8
0.6
0.4
0.2
Manual
validation
0.25 0.50 0.75 1.00 1.25 1.50 1.75 2.00
Time (s)
0.2 0.4 0.6 0.8 1.0 1.2 1.4
Time (s)
PDCIII saturated
4
2
4
2
TCV #83049 confinement state detection
<u>ALL</u>
<u>L</u>
~~D~~
~~H~~
~~confidence~~
PDCIII
1.0
0.5
Manual
validation
1.0
0.5
1.0
0.5
<u>FNOLSTM</u>
Manual
0.25 0.50 0.75 1.00 1.25 1.50 1.75 2.00 validation
Time (s)
0.75
0.50
0.25
0.75
0.50
0.25
0.75
0.50
Manual 0.25
validation
Figure 14: Results for two quasi-continuous exhaust scenario
development discharges, a successful and a borderline
example. For #78069 we show results for the full ensemble,
for #83049 we show results for both the full ensemble
and the FNOLSTM-only ensemble. In the setting of fast
transients, the dynamic formulation-only ensembles tend to
be more robust.
<u>ALL</u>
<u>FNOLSTM</u>
<u>GBDT</u>
0.2 0.4 0.6 0.8 1.0 1.2 1.4
Time (s)
PDCIII discarded
1.5
1.0
0.5
2
1
0
1
0
TCV #64686 confinement state detection
L
D
~~H~~
confidence
<u>PDCIII</u>
L
D
~~H~~
confidence
<u>PDCIII</u>
0.2 0.4 0.6 0.8 1.0 1.2 1.4
Time (s)
1.0
0.5
Manual
validation
0.75
0.50
0.25
0.75
0.50
0.25
0.75
0.50
Manual 0.25
validation
Manual
validation
0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6
Time (s)
TCV #69514 confinement state detection
Figure 16: Evaluating the robustness of the ensembles in
case of broken or missing signals, specifically for PD _CIII_
measurements. At the top we show the reference discharge
#57013 with the full ensemble predictions. In the middle
we show result of a saturated PD _CIII_, a failure mode when
inadequate gains are set during operation. Here, the
dynamic formulation struggles the most, in contrast to
earlier results: including multiple formulations noticeably
increases performance. At the bottom we consider the case
of removing models using PD _CIII_ from the ensembles: here,
the models mostly recover, although with less accuracy
compared to the unaffected setting at the top.
highlighting the benefits of the multiple model formulation
approach in the full ensemble. Lastly, we consider the case
of discarding the signal entirely, i.e., discarding all models
utilizing it, in Figure 16 (bottom). Here, all ensembles
mostly recover, although they still lack in precision around
the transitions. We note that in this shot there are also small
fringe jumps–incorrect interferometer measurements caused
by an error in determining the phase difference [53]–present
in the electron core density signal _ne,_ core. They do not seem
to significantly affect predictions, although we do see some
Figure 15: Results for two discharges with out-ofdistribution conditions. Specifically, we removed discharges
with phases with an average _βN_ _>_ 1 _._ 7 and _δ_ top _>_ 0 _._ 3 for
at least 100 ms from the ‘train-validation’ set. In general
the ensemble still performs well, with the exception of
mislabeling the starting time of a long period of dithering.
consequence, the full ensemble relies more on the GBDT
predictions and still predicts the main phases correctly,
Conditionally averaged L-H/H-L transition confidence
± standard error
0.9
0.8
0.7
0.6
0.5
L-H
H-L
transition
0.06 0.04 0.02 0.00 0.02 0.04 0.06
Time (s)
Figure 17: Conditionally averaged prediction confidence
around L-H and H-L transitions, for a sample of 9 transitions
each.
1.0
0.9
0.8
0.7
0.6
0.5
Conditionally averaged L-H transition confidence
± standard error
NBI step
NBI ramp
L-H transition
0.06 0.04 0.02 0.00 0.02 0.04 0.06
Time (s)
Figure 18: Conditionally averaged prediction confidence
around L-H transitions with steps or ramps in the NBI, for a
sample of 9 transitions each.
spikes around the confidence coinciding with the fringe jump
times, e.g. 1 _._ 0 s for the FNOLSTM in the middle plot.
_5.5._ _Confidence evaluation around state transitions_
For a more statistically robust evaluation of the qualitative
behavior of the confidence predictions, we conditionally
average the full-ensemble confidences around different types
of transitions. Specifically, we compare L-H and H-L
transitions, and compare L-H transitions with steps in the
NBI power to L-H transitions with more gradual ramps in
the input power.
L-H vs. H-L transition. The conditionally averaged
model confidences for L-H versus H-L transitions are given
in Figure 17. We consider a time window of 150 ms around
the transition, using L-H and H-L transition pairs from
the same shots to minimize other variations in the plasma
configuration. There are clear differences in the behavior
15
of the confidence between the two cases. One possible
explanation could be that the L-H transition is often more
controlled: the model confidences hint at a more gradual
phase, and a clear H-mode right after the transition. In
contrast, the H-L back transition could be more sudden and
uncontrolled, leading to high confidence up to the moment of
transition as there are no signs of the transition approaching,
along with more uncertainty about the plasma state right
after it occurred. Further evaluating these differences in
confidence behavior is an interesting avenue for future work.
L-H transition with NBI steps vs. NBI ramps. The
conditionally averaged model confidences for steps in the
NBI power, compared to ramps in the NBI power, are
provided in Figure 18. We select 9 shots for each type,
with NBI steps denoting a time of at most 20 ms between
the minimum and maximum power, and ramps a gradual
increase for a time window of at least 150 ms. The behavior
of the confidence reflects the different input power dynamics:
the discharges with a step increase show a more sudden drop
compared to the ramped increases. There is more model
uncertainty around the transition time, with slower, more
marginal transitions, consistent with expectations.
6. Conclusions and Discussion
We have presented a method for the robust classification of
confinement states whilst providing meaningful confidence
estimates. The method is based on a hierarchical ensemble,
combining different types of models and sets of input
features on the top level. On the second level, these
model/feature combinations consist of a mini-ensemble
trained on different data-splits, which are averaged and
empirically calibrated such that we can meaningfully
combine them on the top level.
We have evaluated the approach quantitatively and
qualitatively on a variety of scenarios. In most cases, the
full ensemble provided accurate predictions and meaningful
uncertainty estimates. However, especially in transient cases,
ensembles of FNOLSTM-only models tended to perform
slightly better. This advantage came at the cost of more
sensitivity to corrupted input features.
The approach gives the flexibility of choosing different
components given the desired use-case. For example, if one
wants to robustly identify main phases for large datasets, the
full ensemble is more suitable given its added robustness. If
one is specifically interested in back-and-forth transitions the
FNOLSTM-ensemble is more suitable. Additionally, if one
is aware of errors in certain diagnostics, one could disable
the subset of models using this signal as an input feature.
The main weakness of the method lies in estimating
the precise time of transition. While it robustly identifies
main phases of various discharges and generally finds all the
main transitions, the accuracy drops in small time windows
( _<_ 5 ms) around transitions or around fast transients. Future
efforts focusing specifically on the transition time, rather
than a general purpose classifier, are of interest to address
this weakness.
_6.1._ _Future Work_
A potential avenue to increasing performance around
transition regions would be to reformulate the problem to
detecting the time of a transition, akin to change point
detection methods [54], rather than labeling every timestep.
This type of model could be used in a cascaded setting
with the current approach: first, we robustly detect the
main phases for the different confinement states. Then, a
specialized model refines the prediction around the time of
transition. Additionally, one could explore a wider set of
neural network architectures to improve performance, e.g.
for the local pattern extractor [55–57] or for the long term
correlations [58–60].
Another interesting avenue for future research is multidevice confinement state classification. Especially in light
of future devices, one will not have access to a large set
of discharges in order to create a dataset. Additionally,
even if the experiments are available, accurate labeling of
the confinement states is a time-consuming effort. Initial
efforts in this direction have been made [61], however, at a
significant drop in performance: the fundamental differences
in timescales and dynamics prove a significant challenge.
Potential approaches to tackle these issues consider transfer
learning [62], physics-based normalization for input signals
or device-invariant model architectures. Notably, there
has been significant progress on cross-machine data-driven
models for disruption prediction, for example when training
on one device and evaluating on another [63] or by adding
only a limited number of shots from a new device [64,65].
A real-time version of the proposed method is
of interest for control applications. In principle only
minor adaptations would have to be made. The
FNOLSTM architecture is structurally similar to a prior
NN-based confinement state classifier [14], which is already
implemented in the TCV control system [61, 66]. The
computational cost of the tree ensemble method is also realtime compatible. All individual ensemble components can
run in parallel, with the final ensembling procedure requiring
negligible computation time: there should be no latency
bottlenecks. The prediction lag parameter in the current
models is at most 10 ms, although one could choose to lower
this parameter at the cost of some precision. Input-wise, one
would have to restrict the input set to real-time available
signals. Finally, to ensure parity between training and realtime use, one should take care to use causal interpolation
methods rather than the linear interpolation used in this
paper.
Another interesting direction would be to reformulate
the output to a figure of merit for confinement performance,
rather than a discrete state label. For example in the real-time
setting, one could directly optimize this quantity with modelbased control techniques. In a similar vein, one could extend
16
the approach to differentiate different types of H-mode, e.g.
distinguishing ELMy and ELM-free regimes; see [5,7] for
related works towards this setting.
More generally, the ensembling strategy could be
applied to problems of similar structure, such as disruption
prediction [63]. The joint integration of robustness to
signal issues and uncertainty quantification makes it a good
candidate for real-time prediction strategies, where reliability
and interpretability are crucial for integration in disruption
avoidance control schemes [66].
Acknowledgements
The authors would like to thank Christian Donner and
Giulio Romanelli for insightful discussions. This work
was funded in part by a Swiss Data Science Center project
grant (C21-14). This work has been carried out within
the framework of the EUROfusion Consortium, partially
funded by the European Union via the Euratom Research
and Training Programme (Grant Agreement No 101052200
- EUROfusion). The Swiss contribution to this work
has been funded in part by the Swiss State Secretariat for
Education, Research and Innovation (SERI). Views and
opinions expressed are however those of the author(s) only
and do not necessarily reflect those of the European Union,
the European Commission or SERI. Neither the European
Union nor the European Commission nor SERI can be held
responsible for them. This work was supported in part by
the Swiss National Science Foundation. This work used the
Dutch national e-infrastructure with the support of the SURF
Cooperative using grant no. EINF-7709.
References
[1] Yushmanov, P., Takizuka, T., Riedel, K., Kardaun, O., Cordey,
J., Kaye, S., and Post, D. Scalings for tokamak energy
confinement. _Nuclear Fusion_, 30(10):1999, oct 1990. [https://](https://dx.doi.org/10.1088/0029-5515/30/10/001)
[dx.doi.org/10.1088/0029-5515/30/10/001,](https://dx.doi.org/10.1088/0029-5515/30/10/001) [doi:](https://doi.org/10.1088/0029-5515/30/10/001)
[10.1088/0029-5515/30/10/001.](https://doi.org/10.1088/0029-5515/30/10/001)
[2] Wagner, F., Becker, G., Behringer, K., Campbell, D., Eberhagen,
A., Engelhardt, W., Fussmann, G., Gehre, O., Gernhardt, J. and
Gierke, G. v. et al. Regime of improved confinement and high beta
in neutral-beam-heated divertor discharges of the asdex tokamak.
_Phys._ _Rev._ _Lett._, 49:1408–1412, Nov 1982. [https://link.](https://link.aps.org/doi/10.1103/PhysRevLett.49.1408)
[aps.org/doi/10.1103/PhysRevLett.49.1408, doi:](https://link.aps.org/doi/10.1103/PhysRevLett.49.1408)
[10.1103/PhysRevLett.49.1408.](https://doi.org/10.1103/PhysRevLett.49.1408)
[3] Martin, Y. R., Takizuka, T., and the ITPA CDBM H-mode
Threshold Database Working Group. Power requirement for
accessing the H-mode in ITER. _Journal of Physics:_ _Conference_
_Series_, 123(1):012033, jul 2008. [https://dx.doi.org/](https://dx.doi.org/10.1088/1742-6596/123/1/012033)
[10.1088/1742-6596/123/1/012033,](https://dx.doi.org/10.1088/1742-6596/123/1/012033) [doi:10.1088/](https://doi.org/10.1088/1742-6596/123/1/012033)
[1742-6596/123/1/012033.](https://doi.org/10.1088/1742-6596/123/1/012033)
[4] Mathews, A., Hughes, J., Hubbard, A., Whyte, D., Wolfe, S.,
Golfinopoulos, T., Brunner, D., R.S. Granetz, C. R., White,
A., and Team, A. C. Confinement regime identification on
Alcator C-Mod using supervised machine learning methods,
2019. [https://library.psfc.mit.edu/catalog/](https://library.psfc.mit.edu/catalog/reports/2010/19rr/19rr006/abstract.php)
[reports/2010/19rr/19rr006/abstract.php.](https://library.psfc.mit.edu/catalog/reports/2010/19rr/19rr006/abstract.php)
[5] Zorek, M., Škvára, V., Šmídl, V., Pevný, T., Seidl, J.,
Grover, O., and Team, T. C. Semi-supervised deep networks for plasma state identification. _Plasma_ _Physics_ _and_
_Controlled_ _Fusion_, 64(12):125004, oct 2022. [https://](https://dx.doi.org/10.1088/1361-6587/ac9926)
[dx.doi.org/10.1088/1361-6587/ac9926,](https://dx.doi.org/10.1088/1361-6587/ac9926) [doi:10.](https://doi.org/10.1088/1361-6587/ac9926)
[1088/1361-6587/ac9926.](https://doi.org/10.1088/1361-6587/ac9926)
[6] Orozco, D., Sammuli, B., Barr, J., Wehner, W., and Humphreys,
D. Neural network-based confinement mode prediction for
real-time disruption avoidance. _IEEE_ _Transactions_ _on_ _Plasma_
_Science_, 50(11):4157–4164, 2022. [doi:10.1109/TPS.2022.](https://doi.org/10.1109/TPS.2022.3198596)
[3198596.](https://doi.org/10.1109/TPS.2022.3198596)
[7] Gill, K., Smith, D., Joung, S., Geiger, B., McKee, G., Zimmerman, J.,
Coffee, R., Jalalvand, A., and Kolemen, E. Real-time confinement
regime detection in fusion plasmas with convolutional neural
networks and high-bandwidth edge fluctuation measurements.
_Machine_ _Learning:_ _Science_ _and_ _Technology_, 5(3):035012,
jul 2024. [https://dx.doi.org/10.1088/2632-2153/](https://dx.doi.org/10.1088/2632-2153/ad605e)
[ad605e, doi:10.1088/2632-2153/ad605e.](https://dx.doi.org/10.1088/2632-2153/ad605e)
[8] Yang, K., Liu, Z., Liu, J., Long, F., Xia, T., Gao, X., Liu, Y.,
Li, J., Li, P. and Deng, C. et al. Neural network identification of the weakly coherent mode in I-mode discharge on
EAST. _Nuclear_ _Fusion_, 64(1):016035, dec 2023. [https://](https://dx.doi.org/10.1088/1741-4326/ad107c)
[dx.doi.org/10.1088/1741-4326/ad107c,](https://dx.doi.org/10.1088/1741-4326/ad107c) [doi:10.](https://doi.org/10.1088/1741-4326/ad107c)
[1088/1741-4326/ad107c.](https://doi.org/10.1088/1741-4326/ad107c)
[9] He, M., Yang, Z., Liu, S., Xia, F., and Zhong, W. Identifying L
H transition in HL-2A through deep learning. _Plasma_ _Physics_
_and_ _Controlled_ _Fusion_, 66(10):105019, sep 2024. [https://](https://dx.doi.org/10.1088/1361-6587/ad75b7)
[dx.doi.org/10.1088/1361-6587/ad75b7,](https://dx.doi.org/10.1088/1361-6587/ad75b7) [doi:10.](https://doi.org/10.1088/1361-6587/ad75b7)
[1088/1361-6587/ad75b7.](https://doi.org/10.1088/1361-6587/ad75b7)
[10] Shin, G. W., Juhn, J.-W., Kwon, G., Son, S., and Hahn, S.
Automatic detection of L-H transition in KSTAR by support
vector machine. _Fusion Engineering and Design_, 129:341–344,
2018. [https://www.sciencedirect.com/science/](https://www.sciencedirect.com/science/article/pii/S0920379617309638)
[article/pii/S0920379617309638,](https://www.sciencedirect.com/science/article/pii/S0920379617309638) [doi:https:](https://doi.org/https://doi.org/10.1016/j.fusengdes.2017.12.011)
[//doi.org/10.1016/j.fusengdes.2017.12.011.](https://doi.org/https://doi.org/10.1016/j.fusengdes.2017.12.011)
[11] Shin, G., Juhn, J.-W., Kwon, G., and Hahn, S.-H. Realtime classification of L-H transition and ELM in KSTAR.
_Fusion_ _Engineering_ _and_ _Design_, 157:111634, 2020.
[https://www.sciencedirect.com/science/](https://www.sciencedirect.com/science/article/pii/S0920379620301824)
[article/pii/S0920379620301824,](https://www.sciencedirect.com/science/article/pii/S0920379620301824) [doi:https:](https://doi.org/https://doi.org/10.1016/j.fusengdes.2020.111634)
[//doi.org/10.1016/j.fusengdes.2020.111634.](https://doi.org/https://doi.org/10.1016/j.fusengdes.2020.111634)
[12] Meakins, A. J., McDonald, D. C., and EFDA-JET contributors.
The application of classification methods in a data driven
investigation of the JET L–H transition. _Plasma_ _Physics_
_and_ _Controlled_ _Fusion_, 52(7):075005, jun 2010. [https:](https://dx.doi.org/10.1088/0741-3335/52/7/075005)
[//dx.doi.org/10.1088/0741-3335/52/7/075005,](https://dx.doi.org/10.1088/0741-3335/52/7/075005)
[doi:10.1088/0741-3335/52/7/075005.](https://doi.org/10.1088/0741-3335/52/7/075005)
[13] González, S., Vega, J., Murari, A., Pereira, A., Dormido
Canto, S., Ramírez, J. M., and JET-EFDA contributors.
Automatic location of L/H transition times for physical
studies with a large statistical basis. _Plasma_ _Physics_ _and_
_Controlled_ _Fusion_, 54(6):065009, may 2012. [https:](https://dx.doi.org/10.1088/0741-3335/54/6/065009)
[//dx.doi.org/10.1088/0741-3335/54/6/065009,](https://dx.doi.org/10.1088/0741-3335/54/6/065009)
[doi:10.1088/0741-3335/54/6/065009.](https://doi.org/10.1088/0741-3335/54/6/065009)
[14] Matos, F., Menkovski, V., Felici, F., Pau, A., Jenko, F., the
TCV Team, and the EUROfusion MST1 Team. Classification
of tokamak plasma confinement states with convolutional recurrent neural networks. _Nuclear_ _Fusion_, 60(3):036022, feb
2020. [https://dx.doi.org/10.1088/1741-4326/](https://dx.doi.org/10.1088/1741-4326/ab6c7a)
[ab6c7a, doi:10.1088/1741-4326/ab6c7a.](https://dx.doi.org/10.1088/1741-4326/ab6c7a)
[15] Matos, F., Menkovski, V., Pau, A., Marceca, G., Jenko, F.,
and the TCV Team. Plasma confinement mode classification using a sequence-to-sequence neural network with attention. _Nuclear_ _Fusion_, 61(4):046019, mar 2021. [https://](https://dx.doi.org/10.1088/1741-4326/abe370)
[dx.doi.org/10.1088/1741-4326/abe370,](https://dx.doi.org/10.1088/1741-4326/abe370) [doi:10.](https://doi.org/10.1088/1741-4326/abe370)
[1088/1741-4326/abe370.](https://doi.org/10.1088/1741-4326/abe370)
[16] Verdoolaege, G., Karagounis, G., Murari, A., Vega, J., and
van Oost, G. Modeling fusion data in probabilistic metric spaces: Applications to the identification of confinement regimes and plasma disruptions. _Fusion_ _Science_
_and_ _Technology_, 62(2):356–365, 2012. [arXiv:https://](https://arxiv.org/abs/https://doi.org/10.13182/FST12-A14627)
[doi.org/10.13182/FST12-A14627,](https://arxiv.org/abs/https://doi.org/10.13182/FST12-A14627) [doi:10.13182/](https://doi.org/10.13182/FST12-A14627)
[FST12-A14627.](https://doi.org/10.13182/FST12-A14627)
17
[17] Verdoolaege, G., Karagounis, G., Tendler, M., and Oost, G. V.
Pattern recognition in probability spaces for visualization
and identification of plasma confinement regimes and confinement time scaling. _Plasma_ _Physics_ _and_ _Controlled_ _Fu-_
_sion_, 54(12):124006, nov 2012. [https://dx.doi.org/](https://dx.doi.org/10.1088/0741-3335/54/12/124006)
[10.1088/0741-3335/54/12/124006,](https://dx.doi.org/10.1088/0741-3335/54/12/124006) [doi:10.1088/](https://doi.org/10.1088/0741-3335/54/12/124006)
[0741-3335/54/12/124006.](https://doi.org/10.1088/0741-3335/54/12/124006)
[18] Strauss, T., Hanselmann, M., Junginger, A., and Ulmer, H. Ensemble
methods as a defense to adversarial perturbations against deep
neural networks, 2018. [https://arxiv.org/abs/1709.](https://arxiv.org/abs/1709.03423)
[03423, arXiv:1709.03423.](https://arxiv.org/abs/1709.03423)
[19] Kariyappa, S. and Qureshi, M. K. Improving adversarial robustness
of ensembles with diversity training, 2019. [https://arxiv.](https://arxiv.org/abs/1901.09981)
[org/abs/1901.09981, arXiv:1901.09981.](https://arxiv.org/abs/1901.09981)
[20] Lakshminarayanan, B., Pritzel, A., and Blundell, C. Simple and
scalable predictive uncertainty estimation using deep ensembles.
In _Advances in Neural Information Processing Systems_, volume 30.
Curran Associates, Inc., 2017. [https://proceedings.](https://proceedings.neurips.cc/paper_files/paper/2017/file/9ef2ed4b7fd2c810847ffa5fa85bce38-Paper.pdf)
[neurips.cc/paper_files/paper/2017/file/](https://proceedings.neurips.cc/paper_files/paper/2017/file/9ef2ed4b7fd2c810847ffa5fa85bce38-Paper.pdf)
[9ef2ed4b7fd2c810847ffa5fa85bce38-Paper.pdf.](https://proceedings.neurips.cc/paper_files/paper/2017/file/9ef2ed4b7fd2c810847ffa5fa85bce38-Paper.pdf)
[21] Rahaman, R. and Thiery, A. H. Uncertainty quantification and
deep ensembles. In _Advances in Neural Information Processing_
_Systems_, 2021. [https://openreview.net/forum?id=](https://openreview.net/forum?id=wg_kD_nyAF)
[wg_kD_nyAF.](https://openreview.net/forum?id=wg_kD_nyAF)
[22] Li, Z., Kovachki, N. B., Azizzadenesheli, K., Liu, B., Bhattacharya,
K., Stuart, A. M., and Anandkumar, A. Fourier neural operator
for parametric partial differential equations. In _International Con-_
_ference on Learning Representations_, volume 9, 2021. [https:](https://openreview.net/forum?id=c8P9NQVtmnO)
[//openreview.net/forum?id=c8P9NQVtmnO.](https://openreview.net/forum?id=c8P9NQVtmnO)
[23] Hochreiter, S. and Schmidhuber, J. Long short-term memory. _Neural_
_Comput._, 9(8):1735–1780, November 1997. [doi:10.1162/](https://doi.org/10.1162/neco.1997.9.8.1735)
[neco.1997.9.8.1735.](https://doi.org/10.1162/neco.1997.9.8.1735)
[24] Chen, T. and Guestrin, C. Xgboost: A scalable tree boosting
system. In _Proceedings of the 22nd ACM SIGKDD International_
_Conference_ _on_ _Knowledge_ _Discovery_ _and_ _Data_ _Mining_, KDD
’16, page 785–794, New York, NY, USA, 2016. Association for
Computing Machinery. [doi:10.1145/2939672.2939785.](https://doi.org/10.1145/2939672.2939785)
[25] Labit, B., Sauter, O., Pütterich, T., Bagnato, F., Camenen, Y., Coda,
S., Contré, C., Coosemans, R., Eriksson, F. and Février, O. et al.
Progress in the development of the ITER baseline scenario in
TCV. _Plasma Physics and Controlled Fusion_, 66(2):025016, jan
2024. [https://dx.doi.org/10.1088/1361-6587/](https://dx.doi.org/10.1088/1361-6587/ad1a40)
[ad1a40, doi:10.1088/1361-6587/ad1a40.](https://dx.doi.org/10.1088/1361-6587/ad1a40)
[26] Labit, B., Eich, T., Harrer, G., Wolfrum, E., Bernert, M., Dunne,
M., Frassinetti, L., Hennequin, P., Maurizio, R. and Merle, A.
et al. Dependence on plasma shape and plasma fueling for
small edge-localized mode regimes in TCV and ASDEX upgrade. _Nuclear_ _Fusion_, 59(8):086020, jun 2019. [https://](https://dx.doi.org/10.1088/1741-4326/ab2211)
[dx.doi.org/10.1088/1741-4326/ab2211,](https://dx.doi.org/10.1088/1741-4326/ab2211) [doi:10.](https://doi.org/10.1088/1741-4326/ab2211)
[1088/1741-4326/ab2211.](https://doi.org/10.1088/1741-4326/ab2211)
[27] Coda, S., Merle, A., Sauter, O., Porte, L., Bagnato, F., Boedo, J., Bol
zonella, T., Février, O., Labit, B. and Marinoni, A. et al. Enhanced
confinement in diverted negative-triangularity L-mode plasmas in
TCV. _Plasma Physics and Controlled Fusion_, 64(1):014004, dec
2021. [https://dx.doi.org/10.1088/1361-6587/](https://dx.doi.org/10.1088/1361-6587/ac3fec)
[ac3fec, doi:10.1088/1361-6587/ac3fec.](https://dx.doi.org/10.1088/1361-6587/ac3fec)
[28] Martin, Y. R. and team, T. Synchronization of L-mode to Hmode transitions on the sawtooth cycle in ohmic TCV plasmas. _Plasma Physics and Controlled Fusion_, 46(5A):A77, apr
2004. [https://dx.doi.org/10.1088/0741-3335/](https://dx.doi.org/10.1088/0741-3335/46/5A/008)
[46/5A/008, doi:10.1088/0741-3335/46/5A/008.](https://dx.doi.org/10.1088/0741-3335/46/5A/008)
[29] Griener, M., Wüthrich, C. T., Wang, Y., Brida, D., Faitsch, M.,
Offeddu, N., and Theiler, C. Characterization of the I-phase
regime at TCV. _Nuclear Fusion_, 2024. [http://iopscience.](http://iopscience.iop.org/article/10.1088/1741-4326/ad96cb)
[iop.org/article/10.1088/1741-4326/ad96cb.](http://iopscience.iop.org/article/10.1088/1741-4326/ad96cb)
[30] Pau, A., Sauter, O., Sommariva, C., Poels, Y., Venturini, C., Labit, B.,
Imbeaux, F., Litaudon, X., Falchetto, G. and Joffrin, E. et al. A
modern framework to support disruption studies: the EUROfusion
disruption database. In _29th_ _IAEA_ _Fusion_ _Energy_ _Conference_
_(FEC_ _2023)_, 2023. [https://conferences.iaea.org/](https://conferences.iaea.org/event/316/contributions/28183/)
[event/316/contributions/28183/.](https://conferences.iaea.org/event/316/contributions/28183/)
[31] Greenwald, M. Density limits in toroidal plasmas. _Plasma_
_Physics_ _and_ _Controlled_ _Fusion_, 44(8):R27, jul 2002. [https:](https://dx.doi.org/10.1088/0741-3335/44/8/201)
[//dx.doi.org/10.1088/0741-3335/44/8/201, doi:](https://dx.doi.org/10.1088/0741-3335/44/8/201)
[10.1088/0741-3335/44/8/201.](https://doi.org/10.1088/0741-3335/44/8/201)
[32] ITER Physics Expert Group on Confinement and Transport and
ITER Physics Expert Group on Confinement Modelling and
Database and ITER Physics Basis Editors. Chapter 2: Plasma
confinement and transport. _Nuclear_ _Fusion_, 39(12):2175, dec
1999. [https://dx.doi.org/10.1088/0029-5515/](https://dx.doi.org/10.1088/0029-5515/39/12/302)
[39/12/302, doi:10.1088/0029-5515/39/12/302.](https://dx.doi.org/10.1088/0029-5515/39/12/302)
[33] Labit, B., Coda, S., Duval, B., Merle, A., Porte, L., Sauter, O.,
Sheikh, U., Dunne, M., Frassinetti, L., et al. H-mode physics
studies on TCV supported by the EUROfusion pedestal database.
In _28th_ _IAEA_ _Fusion_ _Energy_ _Conference_ _(FEC_ _2020)_, 2021.
[https://infoscience.epfl.ch/record/288907.](https://infoscience.epfl.ch/record/288907)
[34] Moret, J.-M., Duval, B., Le, H., Coda, S., Felici, F., and Reimerdes,
H. Tokamak equilibrium reconstruction code LIUQE and its real
time implementation. _Fusion Engineering and Design_, 91:1–15,
2015. [https://www.sciencedirect.com/science/](https://www.sciencedirect.com/science/article/pii/S0920379614005973)
[article/pii/S0920379614005973,](https://www.sciencedirect.com/science/article/pii/S0920379614005973) [doi:https:](https://doi.org/https://doi.org/10.1016/j.fusengdes.2014.09.019)
[//doi.org/10.1016/j.fusengdes.2014.09.019.](https://doi.org/https://doi.org/10.1016/j.fusengdes.2014.09.019)
[35] Wen, G., Li, Z., Azizzadenesheli, K., Anandkumar, A.,
and Benson, S. M. U-FNO—an enhanced fourier neural operator-based deep-learning model for multiphase
flow. _Advances_ _in_ _Water_ _Resources_, 163:104180, 2022.
[https://www.sciencedirect.com/science/](https://www.sciencedirect.com/science/article/pii/S0309170822000562)
[article/pii/S0309170822000562,](https://www.sciencedirect.com/science/article/pii/S0309170822000562) [doi:https:](https://doi.org/https://doi.org/10.1016/j.advwatres.2022.104180)
[//doi.org/10.1016/j.advwatres.2022.104180.](https://doi.org/https://doi.org/10.1016/j.advwatres.2022.104180)
[36] Kurth, T., Subramanian, S., Harrington, P., Pathak, J., Mardani,
M., Hall, D., Miele, A., Kashinath, K., and Anandkumar,
A. Fourcastnet: Accelerating global high-resolution weather
forecasting using adaptive fourier neural operators. In _Proceedings_
_of the Platform for Advanced Scientific Computing Conference_,
PASC ’23, New York, NY, USA, 2023. Association for Computing
Machinery. [doi:10.1145/3592979.3593412.](https://doi.org/10.1145/3592979.3593412)
[37] Poels, Y., Derks, G., Westerhof, E., Minartz, K., Wiesen, S., and
Menkovski, V. Fast dynamic 1D simulation of divertor plasmas
with neural PDE surrogates. _Nuclear Fusion_, 63(12):126012, sep
2023. [https://dx.doi.org/10.1088/1741-4326/](https://dx.doi.org/10.1088/1741-4326/acf70d)
[acf70d, doi:10.1088/1741-4326/acf70d.](https://dx.doi.org/10.1088/1741-4326/acf70d)
[38] Gopakumar, V., Pamela, S., Zanisi, L., Li, Z., Gray, A., Brennand,
D., Bhatia, N., Stathopoulos, G., Kusner, M. and Deisenroth,
M. P. et al. Plasma surrogate modelling using fourier neural operators. _Nuclear_ _Fusion_, 64(5):056025, apr 2024. [https://](https://dx.doi.org/10.1088/1741-4326/ad313a)
[dx.doi.org/10.1088/1741-4326/ad313a,](https://dx.doi.org/10.1088/1741-4326/ad313a) [doi:10.](https://doi.org/10.1088/1741-4326/ad313a)
[1088/1741-4326/ad313a.](https://doi.org/10.1088/1741-4326/ad313a)
[39] Cooley, J. W. and Tukey, J. W. An algorithm for the
machine calculation of complex fourier series. _Mathematics_
_of_ _Computation_, 19(90):297–301, 1965. [doi:10.1090/](https://doi.org/10.1090/s0025-5718-1965-0178586-1)
[s0025-5718-1965-0178586-1.](https://doi.org/10.1090/s0025-5718-1965-0178586-1)
[40] Ivakhnenko, A. G. Polynomial theory of complex systems. _IEEE_
_Transactions on Systems, Man, and Cybernetics_, SMC-1(4):364–
378, 1971. [doi:10.1109/TSMC.1971.4308320.](https://doi.org/10.1109/TSMC.1971.4308320)
[41] He, K., Zhang, X., Ren, S., and Sun, J. Deep residual learning for
image recognition. In _Conference on Computer Vision and Pattern_
_Recognition_ . IEEE, June 2016. [doi:10.1109/cvpr.2016.](https://doi.org/10.1109/cvpr.2016.90)
[90.](https://doi.org/10.1109/cvpr.2016.90)
[42] Friedman, J. H. Greedy function approximation: a gradient boosting
machine. _Annals of statistics_, pages 1189–1232, 2001. [https:](https://www.jstor.org/stable/2699986)
[//www.jstor.org/stable/2699986.](https://www.jstor.org/stable/2699986)
[43] Borisov, V., Leemann, T., Seßler, K., Haug, J., Pawelczyk, M.,
and Kasneci, G. Deep neural networks and tabular data: A
survey. _IEEE_ _Transactions_ _on_ _Neural_ _Networks_ _and_ _Learning_
_Systems_, 35(6):7499–7519, 2024. [doi:10.1109/TNNLS.](https://doi.org/10.1109/TNNLS.2022.3229161)
[2022.3229161.](https://doi.org/10.1109/TNNLS.2022.3229161)
[44] Kit, A., Järvinen, A. E., Frassinetti, L., Wiesen, S., and JET Con
tributors. Supervised learning approaches to modeling pedestal
density. _Plasma Physics and Controlled Fusion_, 65(4):045003, feb
2023. [https://dx.doi.org/10.1088/1361-6587/](https://dx.doi.org/10.1088/1361-6587/acb3f7)
18
[acb3f7, doi:10.1088/1361-6587/acb3f7.](https://dx.doi.org/10.1088/1361-6587/acb3f7)
[45] Guo, C., Pleiss, G., Sun, Y., and Weinberger, K. Q. On calibration of
modern neural networks. In _Proceedings of the 34th International_
_Conference_ _on_ _Machine_ _Learning_, volume 70 of _Proceedings_
_of_ _Machine_ _Learning_ _Research_, pages 1321–1330. PMLR, 06–
11 Aug 2017. [https://proceedings.mlr.press/v70/](https://proceedings.mlr.press/v70/guo17a.html)
[guo17a.html.](https://proceedings.mlr.press/v70/guo17a.html)
[46] Cohen, J. A coefficient of agreement for nominal scales. _Educational_
_and Psychological Measurement_, 20(1):37–46, 1960. [doi:10.](https://doi.org/10.1177/001316446002000104)
[1177/001316446002000104.](https://doi.org/10.1177/001316446002000104)
[47] Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan,
G., Killeen, T., Lin, Z., Gimelshein, N. and Antiga, L.
et al. PyTorch: An imperative style, high-performance
deep learning library. In _Advances_ _in_ _Neural_ _Informa-_
_tion_ _Processing_ _Systems_, volume 32, 2019. [https:](https://proceedings.neurips.cc/paper/2019/hash/bdbca288fee7f92f2bfa9f7012727740-Abstract.html)
[//proceedings.neurips.cc/paper/2019/hash/](https://proceedings.neurips.cc/paper/2019/hash/bdbca288fee7f92f2bfa9f7012727740-Abstract.html)
[bdbca288fee7f92f2bfa9f7012727740-Abstract.](https://proceedings.neurips.cc/paper/2019/hash/bdbca288fee7f92f2bfa9f7012727740-Abstract.html)
[html.](https://proceedings.neurips.cc/paper/2019/hash/bdbca288fee7f92f2bfa9f7012727740-Abstract.html)
[48] Akiba, T., Sano, S., Yanase, T., Ohta, T., and Koyama, M. Optuna:
A next-generation hyperparameter optimization framework. In
_Proceedings of the 25th ACM SIGKDD International Conference_
_on_ _Knowledge_ _Discovery_ _&_ _Data_ _Mining_, KDD ’19, page
2623–2631, 2019. [doi:10.1145/3292500.3330701.](https://doi.org/10.1145/3292500.3330701)
[49] Kuppers, F., Kronenberger, J., Shantia, A., and Haselhoff,
A. Multivariate confidence calibration for object detection. In _Proceedings_ _of_ _the_ _IEEE/CVF_ _Conference_ _on_
_Computer_ _Vision_ _and_ _Pattern_ _Recognition_ _(CVPR)_ _Work-_
_shops_, June 2020. [https://openaccess.thecvf.](https://openaccess.thecvf.com/content_CVPRW_2020/html/w20/Kuppers_Multivariate_Confidence_Calibration_for_Object_Detection_CVPRW_2020_paper.html)
[com/content_CVPRW_2020/html/w20/Kuppers_](https://openaccess.thecvf.com/content_CVPRW_2020/html/w20/Kuppers_Multivariate_Confidence_Calibration_for_Object_Detection_CVPRW_2020_paper.html)
[Multivariate_Confidence_Calibration_for_](https://openaccess.thecvf.com/content_CVPRW_2020/html/w20/Kuppers_Multivariate_Confidence_Calibration_for_Object_Detection_CVPRW_2020_paper.html)
[Object_Detection_CVPRW_2020_paper.html.](https://openaccess.thecvf.com/content_CVPRW_2020/html/w20/Kuppers_Multivariate_Confidence_Calibration_for_Object_Detection_CVPRW_2020_paper.html)
[50] DeGroot, M. H. and Fienberg, S. E. The comparison and
evaluation of forecasters. _The_ _Statistician_, 32(1/2):12, March
1983. [http://dx.doi.org/10.2307/2987588,](http://dx.doi.org/10.2307/2987588) [doi:](https://doi.org/10.2307/2987588)
[10.2307/2987588.](https://doi.org/10.2307/2987588)
[51] Pakdaman Naeini, M., Cooper, G., and Hauskrecht, M. Obtaining well calibrated probabilities using bayesian binning.
_Proceedings_ _of_ _the_ _AAAI_ _Conference_ _on_ _Artificial_ _Intelli-_
_gence_, 29(1), Feb. 2015. [https://ojs.aaai.org/index.](https://ojs.aaai.org/index.php/AAAI/article/view/9602)
[php/AAAI/article/view/9602,](https://ojs.aaai.org/index.php/AAAI/article/view/9602) [doi:10.1609/aaai.](https://doi.org/10.1609/aaai.v29i1.9602)
[v29i1.9602.](https://doi.org/10.1609/aaai.v29i1.9602)
[52] Marchioni, S. _Vertical_ _Instability_ _Studies_ _in_ _the_ _TCV_ _Tokamak_
_and_ _Development_ _and_ _Application_ _of_ _Multimachine_ _Real-Time_
_Proximity Control Strategies_ . PhD thesis, EPFL, Lausanne, 2024.
[https://infoscience.epfl.ch/handle/20.500.](https://infoscience.epfl.ch/handle/20.500.14299/242254)
[14299/242254, doi:10.5075/epfl-thesis-10943.](https://infoscience.epfl.ch/handle/20.500.14299/242254)
[53] Murari, A., Zabeo, L., Boboc, A., Mazon, D., and Riva, M.
Real-time recovery of the electron density from interferometric
measurements affected by fringe jumps. _Review_ _of_ _Scientific_
_Instruments_, 77(7):073505, 07 2006. [doi:10.1063/1.](https://doi.org/10.1063/1.2219731)
[2219731.](https://doi.org/10.1063/1.2219731)
[54] Aminikhanghahi, S. and Cook, D. J. A survey of methods
for time series change point detection. _Knowledge_ _and_
_Information Systems_, 51(2):339–367, September 2016. [http://](http://dx.doi.org/10.1007/s10115-016-0987-z)
[dx.doi.org/10.1007/s10115-016-0987-z, doi:10.](http://dx.doi.org/10.1007/s10115-016-0987-z)
[1007/s10115-016-0987-z.](https://doi.org/10.1007/s10115-016-0987-z)
[55] Ho, J., Jain, A., and Abbeel, P. Denoising diffusion probabilistic models. In _Advances_ _in_ _Neural_ _Information_ _Processing_
_Systems_, volume 33, pages 6840–6851, 2020. [https:](https://proceedings.neurips.cc/paper/2020/hash/4c5bcfec8584af0d967f1ab10179ca4b-Abstract.html)
[//proceedings.neurips.cc/paper/2020/hash/](https://proceedings.neurips.cc/paper/2020/hash/4c5bcfec8584af0d967f1ab10179ca4b-Abstract.html)
[4c5bcfec8584af0d967f1ab10179ca4b-Abstract.](https://proceedings.neurips.cc/paper/2020/hash/4c5bcfec8584af0d967f1ab10179ca4b-Abstract.html)
[html.](https://proceedings.neurips.cc/paper/2020/hash/4c5bcfec8584af0d967f1ab10179ca4b-Abstract.html)
[56] Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z.,
Lin, S., and Guo, B. Swin transformer: Hierarchical
vision transformer using shifted windows. In _Proceedings_ _of_
_the_ _IEEE/CVF_ _International_ _Conference_ _on_ _Computer_ _Vision_
_(ICCV)_, pages 10012–10022, October 2021. [http://dx.](http://dx.doi.org/10.1109/ICCV48922.2021.00986)
[doi.org/10.1109/ICCV48922.2021.00986,](http://dx.doi.org/10.1109/ICCV48922.2021.00986) [doi:10.](https://doi.org/10.1109/iccv48922.2021.00986)
[1109/iccv48922.2021.00986.](https://doi.org/10.1109/iccv48922.2021.00986)
[57] Kovachki, N., Li, Z., Liu, B., Azizzadenesheli, K., Bhattacharya,
19
K., Stuart, A., and Anandkumar, A. Neural operator: learning
maps between function spaces with applications to PDEs. _J. Mach._
_Learn._ _Res._, 24(1), January 2023. [https://dl.acm.org/](https://dl.acm.org/doi/10.5555/3648699.3648788)
[doi/10.5555/3648699.3648788.](https://dl.acm.org/doi/10.5555/3648699.3648788)
[58] Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez,
A. N., Kaiser, L. u., and Polosukhin, I. Attention is all you need.
In _Advances in Neural Information Processing Systems_, volume 30,
2017. [https://papers.nips.cc/paper/2017/hash/](https://papers.nips.cc/paper/2017/hash/3f5ee243547dee91fbd053c1c4a845aa-Abstract.html)
[3f5ee243547dee91fbd053c1c4a845aa-Abstract.](https://papers.nips.cc/paper/2017/hash/3f5ee243547dee91fbd053c1c4a845aa-Abstract.html)
[html.](https://papers.nips.cc/paper/2017/hash/3f5ee243547dee91fbd053c1c4a845aa-Abstract.html)
[59] Beck, M., Pöppel, K., Spanring, M., Auer, A., Prudnikova, O., Kopp,
M. K., Klambauer, G., Brandstetter, J., and Hochreiter, S. xLSTM:
Extended long short-term memory. In _The Thirty-eighth Annual_
_Conference_ _on_ _Neural_ _Information_ _Processing_ _Systems_, 2024.
[https://openreview.net/forum?id=ARAxPPIAhq.](https://openreview.net/forum?id=ARAxPPIAhq)
[60] Gu, A. and Dao, T. Mamba: Linear-time sequence modeling
with selective state spaces. In _First_ _Conference_ _on_ _Language_
_Modeling_, 2024. [https://openreview.net/forum?id=](https://openreview.net/forum?id=tEYskw1VY2)
[tEYskw1VY2.](https://openreview.net/forum?id=tEYskw1VY2)
[61] Marceca, G., Pau, A., Felici, F., Sauter, O., Vu, T., Galperti, C., the
EUROFusion MST1 team, the TCV team, and JET contributors.
Real-time recognition of plasma confinement states in TCV and
transfer learning to JET using ML models. _47th EPS Conference_
_on Plasma Physics, P3.1056_, 2021. [https://info.fusion.](https://info.fusion.ciemat.es/OCS/eps2021pap/pdf/P3.1056.pdf)
[ciemat.es/OCS/eps2021pap/pdf/P3.1056.pdf.](https://info.fusion.ciemat.es/OCS/eps2021pap/pdf/P3.1056.pdf)
[62] Zhuang, F., Qi, Z., Duan, K., Xi, D., Zhu, Y., Zhu, H., Xiong,
H., and He, Q. A comprehensive survey on transfer learning.
_Proceedings of the IEEE_, 109(1):43–76, 2021. [doi:10.1109/](https://doi.org/10.1109/JPROC.2020.3004555)
[JPROC.2020.3004555.](https://doi.org/10.1109/JPROC.2020.3004555)
[63] Kates-Harbeck, J., Svyatkovskiy, A., and Tang, W. Predicting
disruptive instabilities in controlled fusion plasmas through deep
learning. _Nature_, 568(7753):526–531, Apr 2019. [doi:10.](https://doi.org/10.1038/s41586-019-1116-4)
[1038/s41586-019-1116-4.](https://doi.org/10.1038/s41586-019-1116-4)
[64] Zhu, J., Rea, C., Montes, K., Granetz, R., Sweeney, R., and Tinguely,
R. Hybrid deep-learning architecture for general disruption prediction across multiple tokamaks. _Nuclear Fusion_, 61(2):026007, dec
2020. [https://dx.doi.org/10.1088/1741-4326/](https://dx.doi.org/10.1088/1741-4326/abc664)
[abc664, doi:10.1088/1741-4326/abc664.](https://dx.doi.org/10.1088/1741-4326/abc664)
[65] Zheng, W., Xue, F., Chen, Z., Chen, D., Guo, B., Shen, C.,
Ai, X., Wang, N., Zhang, M. and Ding, Y. et al. Disruption
prediction for future tokamaks using parameter-based transfer
learning. _Communications_ _Physics_, 6(1):181, Jul 2023. [doi:](https://doi.org/10.1038/s42005-023-01296-9)
[10.1038/s42005-023-01296-9.](https://doi.org/10.1038/s42005-023-01296-9)
[66] Galperti, C., Felici, F., Vu, T., Sauter, O., Carpanese, F., Kong, M.,
Marceca, G., Merle, A., Pau, A. and Perek, A. et al. Overview
of the TCV digital real-time plasma control system and its
applications. _Fusion_ _Engineering_ _and_ _Design_, 208:114640,
2024. [https://www.sciencedirect.com/science/](https://www.sciencedirect.com/science/article/pii/S0920379624004915)
[article/pii/S0920379624004915,](https://www.sciencedirect.com/science/article/pii/S0920379624004915) [doi:https:](https://doi.org/https://doi.org/10.1016/j.fusengdes.2024.114640)
[//doi.org/10.1016/j.fusengdes.2024.114640.](https://doi.org/https://doi.org/10.1016/j.fusengdes.2024.114640)
[67] Defazio, A., Yang, X. A., Khaled, A., Mishchenko, K., Mehta,
H., and Cutkosky, A. The road less scheduled. In _The_ _Thirty-_
_eighth_ _Annual_ _Conference_ _on_ _Neural_ _Information_ _Processing_
_Systems_, 2024. [https://openreview.net/forum?id=](https://openreview.net/forum?id=0XeNkkENuI)
[0XeNkkENuI.](https://openreview.net/forum?id=0XeNkkENuI)
[68] Werbos, P. J. Generalization of backpropagation with application to
a recurrent gas market model. _Neural Networks_, 1(4):339–356,
1988. [https://www.sciencedirect.com/science/](https://www.sciencedirect.com/science/article/pii/089360808890007X)
[article/pii/089360808890007X,](https://www.sciencedirect.com/science/article/pii/089360808890007X) [doi:https:](https://doi.org/https://doi.org/10.1016/0893-6080%0x2888%0x2990007-X)
[//doi.org/10.1016/0893-6080(88)90007-X.](https://doi.org/https://doi.org/10.1016/0893-6080%0x2888%0x2990007-X)
[69] Srivastava, N., Hinton, G., Krizhevsky, A., Sutskever, I., and
Salakhutdinov, R. Dropout: A simple way to prevent neural
networks from overfitting. _Journal_ _of_ _Machine_ _Learning_
_Research_, 15(56):1929–1958, 2014. [http://jmlr.org/](http://jmlr.org/papers/v15/srivastava14a.html)
[papers/v15/srivastava14a.html.](http://jmlr.org/papers/v15/srivastava14a.html)
20
Appendix A. Feature sets
The feature sets in the ensembling procedure are selected by the feature categorization and their individual discriminative
power. To quantify the latter, we fit small models on each individual feature. Specifically, we fit a depth-2 decision tree
to classify L, D or H-mode timeslice-by-timeslice. The performance is evaluated using Cohen’s kappa coefficient [46].
Additionally, to identify parameter ranges consistently associated with a specific confinement state, we optimize thresholds
on each individual feature that correspond to the largest amount of the data we can classify as ‘all L-mode’ or ‘all H-mode’
with at least 99% accuracy. In other words, we check whether a feature can individually identify one of the two main
confinement states in subparts of the parameter space. For example, total input power _Pin_ can be used to trivially label
some timeslices as L-mode given a minimum power requirement for any H-mode, see also Figure A.1 for an illustration.
We express this metric as the fraction of the data which can be labeled with such a threshold while keeping at least 99%
accuracy. Additionally, we report the signal availability over all timeslices in the dataset.
The results of all these metrics are provided in Table A.1, for all features introduced in Table 1. Note that we denote all
spectral features computed from the photodiode signals (PDFFT in Table 1). The subscript integer denotes the window size
in ms for the sliding window FFT, whereas the postfix _∈{p, c, f}_ denotes whether the window is in the _p_ ast, _c_ entered or in
the _f_ uture w.r.t. the given timeslice.
The feature sets cover both individual categories and combinations thereof. For each category we construct a model
covering either all features or the most discriminative features following their Cohen’s kappa coefficient values. The mixed
feature sets cover both top- _k_ subsets for each category and rank- _k_ subsets: we both fit models taking in as much information
as possible, while also fitting models with no mutual dependencies but still using informative features. Similarly, we select
subsets using the threshold-orderings, although fewer in total because a substantial number of features cannot be used for
any meaningful thresholding <sup>1</sup>, resulting in a value of 0 in Table A.1. The resulting _(model + feature set)_ configurations are
given in Table A.2.
The feature sets are identical between the FNOLSTM and GBDT models, with the exception of the photodiode related
features. For the FNOLSTM we artificially rank PD _CIII_ and PD _Hα_ as the most informative emissions feature. These signals
are not absolutely calibrated, making their raw value uninformative for classifying L, D or H-mode. However, the emission
patterns they pick up clearly correspond to confinement state-related dynamics such as Edge Localized Modes (ELMs) or
dithering cycles. The FNOLSTM-based models can fit these patterns because of their dynamic nature, making it a key
feature to include. In contrast, the GBDT-models only take static information, making the raw signal value uninformative;
rather, it relies on the constructed spectral features for the photodiode signal. To avoid redundancy in these PDFFT features,
only the centered-window feature is used for each time window size; the past and future windows are only used in a specific
category with all FFT features (FNOLSTM-EM-3 and GBDT-EM-3).
Pin
~~L~~
0 1 2
MW
Wtot
~~L~~
L
D
H
0 20000
W
Figure A.1: Distributions of the total input power and the plasma stored energy in the dataset, following the same procedure
as Figure 3. We overlay the ‘all L-mode’ thresholds (L <sup>_fraction_</sup> 0 _._ 99 ) for the two features: below this threshold value, at least 99%
of the timeslices are in L-mode.
1Naturally, these features are still useful once combined with other more directly significant features.
21
Cohen’s Fraction Cohen’s Fraction
Feature kappa L <sup>_fraction_</sup> <u>0</u> _<u>.</u>_ <u>99</u> H <sup>_fraction_</sup> <u>0</u> _<u>.</u>_ <u>99</u> available Feature kappa L <sup>_fraction_</sup> <u>0</u> _<u>.</u>_ <u>99</u> H <sup>_fraction_</sup> <u>0</u> _<u>.</u>_ <u>99</u> available
<sup>_fraction_</sup> <u>0</u> _<u>.</u>_ <u>99</u> H <sup>_fraction_</sup> <u>0</u> _<u>.</u>_ <u>99</u>
<sup>_fraction_</sup> <u>0</u> _<u>.</u>_ <u>99</u> available Feature kappa L <sup>_fraction_</sup> <u>0</u> _<u>.</u>_ <u>99</u>
<sup>_fraction_</sup> <u>0</u> _<u>.</u>_ <u>99</u> H <sup>_fraction_</sup> <u>0</u> _<u>.</u>_ <u>99</u>
<sup>_fraction_</sup> <u>0</u> _<u>.</u>_ <u>99</u> available
_<mark>A</mark>_ _p_ <mark>0.000</mark> <mark>0.033</mark> <mark>0.00000</mark> <mark>0.997</mark> <mark>PD</mark> <sup>_H_</sup> FFT <sup>_α_</sup>
_<mark>A</mark>_ _p_ <mark>0.000</mark> <mark>0.033</mark> <mark>0.00000</mark> <mark>0.997</mark> <mark>PD</mark> <sup>_H_</sup> FFT <sup>_α_</sup> 50 _-c_ <mark>0.704</mark> <mark>0.002</mark> <mark>0.00021</mark> <mark>0.985</mark>
_<mark>δ</mark>_ bottom <mark>0.073</mark> <mark>0.076</mark> <mark>0.00000</mark> <mark>0.997</mark> <mark>PD</mark> <sup>_H_</sup> FFT <sup>_α_</sup> 50 _-f_ <mark>0.697</mark> <mark>0.001</mark> <mark>0.00000</mark> <mark>0.968</mark>
_<mark>δ</mark>_ top <mark>0.000</mark> <mark>0.066</mark> <mark>0.00000</mark> <mark>0.997</mark> <mark>PD</mark> <sup>_H_</sup> FFT <sup>_α_</sup> 100 _-p_ <mark>0.563</mark> <mark>0.000</mark> <mark>0.00001</mark> <mark>1.000</mark>
<mark>∆</mark> in <mark>0.000</mark> <mark>0.244</mark> <mark>0.00000</mark> <mark>0.997</mark> <mark>PD</mark> <sup>_H_</sup> FFT <sup>_α_</sup> 100 _-c_ <mark>0.664</mark> <mark>0.000</mark> <mark>0.00023</mark> <mark>0.968</mark>
<mark>∆</mark> out <mark>0.000</mark> <mark>0.002</mark> <mark>0.00000</mark> <mark>0.997</mark> <mark>PD</mark> <sup>_H_</sup> FFT <sup>_α_</sup> 100 _-f_ <mark>0.657</mark> <mark>0.001</mark> <mark>0.00000</mark> <mark>0.935</mark>
_<mark>κ</mark>_ <mark>0.330</mark> <mark>0.087</mark> <mark>0.00000</mark> <mark>0.997</mark> _<mark>B</mark>_ 0 <mark>0.158</mark> <mark>0.000</mark> <mark>0.00000</mark> <mark>0.997</mark>
_<mark>R</mark>_ 0 <mark>0.000</mark> <mark>0.072</mark> <mark>0.00000</mark> <mark>0.997</mark> _<mark>I</mark>_ _p_ <mark>0.199</mark> <mark>0.025</mark> <mark>0.00000</mark> <mark>1.000</mark>
_<mark>a</mark>_ <mark>0.000</mark> <mark>0.016</mark> <mark>0.00000</mark> <mark>0.997</mark> _<mark>I</mark>_ _p,ref_ <mark>0.201</mark> <mark>0.028</mark> <mark>0.00000</mark> <mark>1.000</mark>
_<mark>R</mark>_ axis <mark>0.000</mark> <mark>0.072</mark> <mark>0.00000</mark> <mark>0.997</mark> _<mark>q</mark>_ 95 <mark>0.208</mark> <mark>0.001</mark> <mark>0.00000</mark> <mark>0.997</mark>
_<mark>Z</mark>_ axis <mark>0.032</mark> <mark>0.000</mark> <mark>0.00000</mark> <mark>0.997</mark> _<mark>n</mark>_ _e,_ core <mark>0.429</mark> <mark>0.000</mark> <mark>0.00000</mark> <mark>1.000</mark>
_<mark>V</mark>_ _p_ <mark>0.000</mark> <mark>0.033</mark> <mark>0.00000</mark> <mark>0.997</mark> _<mark>n</mark>_ _e,_ LFS <mark>0.509</mark> <mark>0.000</mark> <mark>0.00000</mark> <mark>1.000</mark>
<mark>PD</mark> _CIII_ <mark>0.000</mark> <mark>0.009</mark> <mark>0.00000</mark> <mark>1.000</mark> _<mark>n</mark>_ _e_ _<mark>/n</mark>_ _GW_ <mark>0.295</mark> <mark>0.000</mark> <mark>0.00104</mark> <mark>0.957</mark>
<mark>PD</mark> _Hα_ <mark>0.000</mark> <mark>0.000</mark> <mark>0.00000</mark> <mark>1.000</mark> <mark>max(</mark> _<mark>n</mark>_ <sup>_′_</sup> _e,_ edge <sup><mark>)</mark></sup> <mark>0.473</mark> <mark>0.000</mark> <mark>0.00012</mark> <mark>0.864</mark>
<mark>PD</mark> _Hα_ <mark>0.000</mark> <mark>0.000</mark> <mark>0.00000</mark> <mark>1.000</mark> <mark>max(</mark> _<mark>n</mark>_ <sup>_′_</sup> _e,_ edge <sup><mark>)</mark></sup> <mark>0.473</mark> <mark>0.000</mark> <mark>0.00012</mark> <mark>0.864</mark>
<mark>PD</mark> <sup>_CIII_</sup> FFT5 _-p_ <mark>0.538</mark> <mark>0.116</mark> <mark>0.00000</mark> <mark>1.000</mark> <mark>max(</mark> _<mark>n</mark>_ <sup>_′′_</sup> _e,_ edge <sup><mark>)</mark></sup> <mark>0.641</mark> <mark>0.000</mark> <mark>0.00007</mark> <mark>0.864</mark>
<mark>PD</mark> <sup>_CIII_</sup> FFT5 _-c_ <mark>0.543</mark> <mark>0.116</mark> <mark>0.00000</mark> <mark>0.999</mark> _<mark>n</mark>_ _e,_ 0 <mark>0.303</mark> <mark>0.001</mark> <mark>0.00033</mark> <mark>0.941</mark>
<mark>PD</mark> <sup>_CIII_</sup> FFT5 _-f_ <mark>0.549</mark> <mark>0.116</mark> <mark>0.00000</mark> <mark>0.998</mark> _<mark>SXR</mark>_ core <mark>0.425</mark> <mark>0.013</mark> <mark>0.00017</mark> <mark>0.852</mark>
<mark>PD</mark> <sup>_CIII_</sup> FFT10 _-p_ <mark>0.605</mark> <mark>0.191</mark> <mark>0.00000</mark> <mark>1.000</mark> <mark>max(</mark> _<mark>T</mark>_ _e,_ <sup>_′_</sup> edge <sup><mark>)</mark></sup> <mark>0.585</mark> <mark>0.000</mark> <mark>0.00032</mark> <mark>0.864</mark>
<mark>PD</mark> <sup>_CIII_</sup> FFT10 _-c_ <mark>0.616</mark> <mark>0.194</mark> <mark>0.00000</mark> <mark>0.998</mark> <mark>max(</mark> _<mark>T</mark>_ _e,_ <sup>_′′_</sup> edge <sup><mark>)</mark></sup> <mark>0.579</mark> <mark>0.002</mark> <mark>0.00004</mark> <mark>0.864</mark>
<mark>PD</mark> <sup>_CIII_</sup> FFT10 _-f_ <mark>0.624</mark> <mark>0.192</mark> <mark>0.00000</mark> <mark>0.995</mark> _<mark>T</mark>_ _e,_ 0 <mark>0.397</mark> <mark>0.002</mark> <mark>0.00000</mark> <mark>0.939</mark>
<mark>PD</mark> <sup>_CIII_</sup> FFT20 _-p_ <mark>0.630</mark> <mark>0.240</mark> <mark>0.00000</mark> <mark>1.000</mark> _<mark>P</mark>_ _in_ <mark>0.473</mark> <mark>0.442</mark> <mark>0.00000</mark> <mark>0.997</mark>
<mark>PD</mark> <sup>_CIII_</sup> FFT20 _-c_ <mark>0.649</mark> <mark>0.244</mark> <mark>0.00000</mark> <mark>0.995</mark> _<mark>P</mark>_ _OHM_ <mark>0.071</mark> <mark>0.000</mark> <mark>0.00000</mark> <mark>0.997</mark>
<mark>PD</mark> <sup>_CIII_</sup> FFT20 _-f_ <mark>0.660</mark> <mark>0.247</mark> <mark>0.00000</mark> <mark>0.988</mark> _<mark>P</mark>_ _NBI_ <mark>0.470</mark> <mark>0.001</mark> <mark>0.00000</mark> <mark>1.000</mark>
<mark>PD</mark> <sup>_CIII_</sup> FFT50 _-p_ <mark>0.604</mark> <mark>0.294</mark> <mark>0.00000</mark> <mark>1.000</mark> _<mark>P</mark>_ _NBI2_ <mark>0.020</mark> <mark>0.000</mark> <mark>0.00000</mark> <mark>1.000</mark>
<mark>PD</mark> <sup>_CIII_</sup> FFT50 _-c_ <mark>0.647</mark> <mark>0.338</mark> <mark>0.00000</mark> <mark>0.985</mark> _<mark>P</mark>_ _ECRH_ <mark>0.213</mark> <mark>0.000</mark> <mark>0.00000</mark> <mark>1.000</mark>
<mark>PD</mark> <sup>_CIII_</sup> FFT50 _-f_ <mark>0.663</mark> <mark>0.376</mark> <mark>0.00000</mark> <mark>0.968</mark> _<mark>P</mark>_ _LH_ <mark>0.425</mark> <mark>0.000</mark> <mark>0.00001</mark> <mark>0.997</mark>
<mark>PD</mark> <sup>_CIII_</sup> FFT100 _-p_ <mark>0.491</mark> <mark>0.254</mark> <mark>0.00000</mark> <mark>1.000</mark> _<mark>β</mark>_ _N_ <mark>0.595</mark> <mark>0.088</mark> <mark>0.00000</mark> <mark>0.997</mark>
<mark>PD</mark> <sup>_CIII_</sup> FFT100 _-c_ <mark>0.592</mark> <mark>0.355</mark> <mark>0.00000</mark> <mark>0.968</mark> _<mark>β</mark>_ _p_ <mark>0.425</mark> <mark>0.028</mark> <mark>0.00000</mark> <mark>0.997</mark>
<mark>PD</mark> <sup>_CIII_</sup> FFT100 _-f_ <mark>0.592</mark> <mark>0.372</mark> <mark>0.00000</mark> <mark>0.935</mark> _<mark>β</mark>_ _t_ <mark>0.742</mark> <mark>0.415</mark> <mark>0.00000</mark> <mark>0.997</mark>
<mark>PD</mark> <sup>_H_</sup> FFT <sup>_α_</sup> 5 _-p_ <mark>0.621</mark> <mark>0.000</mark> <mark>0.00007</mark> <mark>1.000</mark> _<mark>W</mark>_ _tot_ <mark>0.696</mark> <mark>0.306</mark> <mark>0.00000</mark> <mark>0.997</mark>
<mark>PD</mark> <sup>_H_</sup> FFT <sup>_α_</sup> 5 _-c_ <mark>0.624</mark> <mark>0.000</mark> <mark>0.00077</mark> <mark>0.999</mark> <mark>DML</mark> <mark>0.381</mark> <mark>0.001</mark> <mark>0.00000</mark> <mark>0.935</mark>
<mark>PD</mark> <sup>_H_</sup> FFT <sup>_α_</sup> 5 _-f_ <mark>0.625</mark> <mark>0.000</mark> <mark>0.00002</mark> <mark>0.998</mark> _<mark>H</mark>_ _98y2_ <mark>0.166</mark> <mark>0.035</mark> <mark>0.00002</mark> <mark>0.997</mark>
<mark>PD</mark> <sup>_H_</sup> FFT <sup>_α_</sup> 10 _-p_ <mark>0.681</mark> <mark>0.000</mark> <mark>0.00020</mark> <mark>1.000</mark> _<mark>P</mark>_ _rad_ <mark>0.305</mark> <mark>0.000</mark> <mark>0.00006</mark> <mark>0.857</mark>
<mark>PD</mark> <sup>_H_</sup> FFT <sup>_α_</sup> 10 _-c_ <mark>0.689</mark> <mark>0.000</mark> <mark>0.00003</mark> <mark>0.998</mark> _<mark>P</mark>_ _rad,_ bulk <mark>0.281</mark> <mark>0.004</mark> <mark>0.00000</mark> <mark>0.857</mark>
<mark>PD</mark> <sup>_H_</sup> FFT <sup>_α_</sup> 10 _-f_ <mark>0.695</mark> <mark>0.001</mark> <mark>0.00001</mark> <mark>0.995</mark> _<mark>P</mark>_ _rad,_ SOL <mark>0.495</mark> <mark>0.000</mark> <mark>0.00000</mark> <mark>0.889</mark>
<mark>PD</mark> <sup>_H_</sup> FFT <sup>_α_</sup> 20 _-p_ <mark>0.700</mark> <mark>0.000</mark> <mark>0.00010</mark> <mark>1.000</mark> _<mark>l</mark>_ _i_ <mark>0.394</mark> <mark>0.001</mark> <mark>0.00000</mark> <mark>0.997</mark>
<mark>PD</mark> <sup>_H_</sup> FFT <sup>_α_</sup> 20 _-c_ <mark>0.721</mark> <mark>0.000</mark> <mark>0.00011</mark> <mark>0.995</mark> _<mark>Z</mark>_ _eff_ <mark>0.000</mark> <mark>0.001</mark> <mark>0.00000</mark> <mark>0.909</mark>
<mark>PD</mark> <sup>_H_</sup> FFT <sup>_α_</sup> 20 _-f_ <mark>0.729</mark> <mark>0.001</mark> <mark>0.00000</mark> <mark>0.988</mark> _<mark>ν</mark>_ _e,_ <sup>_∗_</sup> ped <mark>0.422</mark> <mark>0.001</mark> <mark>0.00000</mark> <mark>0.888</mark>
<mark>PD</mark> <sup>_H_</sup> FFT <sup>_α_</sup> 50 _-p_ <mark>0.654</mark> <mark>0.001</mark> <mark>0.00020</mark> <mark>1.000</mark> _<mark>V</mark>_ _loop_ <mark>0.289</mark> <mark>0.004</mark> <mark>0.00000</mark> <mark>1.000</mark>
<sup>_CIII_</sup> FFT5 _-p_ <mark>0.538</mark> <mark>0.116</mark> <mark>0.00000</mark> <mark>1.000</mark> <mark>max(</mark> _<mark>n</mark>_ <sup>_′′_</sup> _e,_
<sup>_CIII_</sup> FFT10 _-p_ <mark>0.605</mark> <mark>0.191</mark> <mark>0.00000</mark> <mark>1.000</mark> <mark>max(</mark> _<mark>T</mark>_ _e,_ <sup>_′_</sup>
<sup>_CIII_</sup> FFT10 _-c_ <mark>0.616</mark> <mark>0.194</mark> <mark>0.00000</mark> <mark>0.998</mark> <mark>max(</mark> _<mark>T</mark>_ _e,_ <sup>_′′_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 20 _-f_ <mark>0.729</mark> <mark>0.001</mark> <mark>0.00000</mark> <mark>0.988</mark> _<mark>ν</mark>_ _e,_ <sup>_∗_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 50 _-p_ <mark>0.654</mark> <mark>0.001</mark> <mark>0.00020</mark> <mark>1.000</mark> _<mark>V</mark>_ _loop_ <mark>0.289</mark> <mark>0.004</mark> <mark>0.00000</mark> <mark>1.000</mark>
Table A.1: Availability and discriminative capability of individual features, as used for constructing the ensemble feature
sets. Features are colored by their categorization. For each feature we fit a depth-2 decision tree classifying all confinement
states to get a general overview. Additionally, to identify features of interest w.r.t. regions far from the discriminative
boundary, we compute the optimal threshold for a feature where at least 99% of the timeslices are in L-mode or H-mode,
and take the fraction of data subject to this threshold as the metric value. Lastly, we report the fraction of data where the
signal is available.
22
Model Description Feature set
FNOLSTM-SH-1 Shaping, top 4. _Ap_, _δ_ bottom, _κ_, _Z_ axis
FNOLSTM-SH-2 Shaping, all. _Ap_, _δ_ bottom, _δ_ top, ∆in, ∆out, _κ_, _R_ 0, _a_, _R_ axis, _Z_ axis, _Vp_
FNOLSTM-EM-1 Emission, top 4. PD _CIII_, PD _Hα_, PD <sup>_H_</sup> FFT <sup>_α_</sup>
FNOLSTM-EM-2 Emission, all. PD _CIII_, PD _Hα_, PD <sup>_CIII_</sup> FFT
<sup>_H_</sup> FFT <sup>_α_</sup> 20 _-c_ <sup>,</sup> <sup>PD</sup> FFT <sup>_Hα_</sup>
<sup>_CIII_</sup> FFT5 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT10 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT20 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_CIII_</sup> FFT
FFT50 _-c_
<sup>_CIII_</sup> FFT50 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT100 _-c_ <sup>,</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 5 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 10 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 50 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 20 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 50 _-c_ <sup>,</sup> <sup>PD</sup> FFT <sup>_Hα_</sup>
FFT100 _-f_
FFT100 _-c_
<sup>_CIII_</sup> FFT5 _-f_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT20 _-f_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT10 _-p_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT50 _-p_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
FNOLSTM-EM-3 Emission, all FFT
features.
PD <sup>_H_</sup> FFT <sup>_α_</sup>
PD <sup>_CIII_</sup> FFT
PD <sup>_CIII_</sup> FFT
PD <sup>_CIII_</sup> FFT
PD <sup>_H_</sup> FFT <sup>_α_</sup>
PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_CIII_</sup> FFT5 _-p_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT20 _-p_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT5 _-c_ <sup>,</sup> PD <sup>_CIII_</sup> FFT5
<sup>_CIII_</sup> FFT20 _-c_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT10 _-c_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT50 _-c_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT10 _-f_ <sup>,</sup>
<sup>_CIII_</sup> FFT50 _-f_ <sup>,</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 5 _-c_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 5 _-f_ <sup>,</sup>
<sup>_CIII_</sup> FFT100 _-p_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT100 _-c_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT100 _-f_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 5 _-p_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 10 _-p_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 10 _-c_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 10 _-f_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 20 _-p_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 20 _-c_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 20 _-f_ <sup>,</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 50 _-p_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 50 _-f_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 100 _-p_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 100 _-c_ <sup>,</sup> <sup>PD</sup> FFT <sup>_Hα_</sup>
FNOLSTM-MA-1 Magnetics, all. _B_ 0, _Ip_, _Ip,ref_, _q_ 95
FNOLSTM-DE-1 Density, top 4. _ne,_ core, _ne,_ LFS, max( _n_ <sup>_′_</sup>
<sup>_′_</sup> _e,_ edge <sup>),</sup> <sup>max(</sup> <sup>_n′′_</sup> _e,_
<sup>_′′_</sup> _e,_ edge <sup>)</sup>
FNOLSTM-DE-2 Density, all. _ne,_ core, _ne,_ LFS, _ne/nGW_, max( _n_ <sup>_′_</sup>
<sup>_′_</sup> _e,_ edge <sup>),</sup> <sup>max(</sup> <sup>_n′′_</sup> _e,_
<sup>_′′_</sup> _e,_ edge <sup>),</sup> <sup>_ne,_</sup> <sup>0</sup>
FNOLSTM-TE-1 Temperature, all. _SXR_ core, max( _Te,_ <sup>_′_</sup>
_e,_ <sup>_′_</sup> edge <sup>),</sup> <sup>max(</sup> <sup>_T ′′_</sup> _e,_
<sup>_′′_</sup> _e,_ edge <sup>),</sup> <sup>_Te,_</sup> <sup>0</sup>
FNOLSTM-PO-1 Power, top 4. _Pin_, _PNBI_, _PECRH_, _PLH_
FNOLSTM-PO-2 Power, all. _Pin_, _POHM_, _PNBI_, _PNBI2_, _PECRH_, _PLH_
FNOLSTM-EN-1 Energy content, top _βN_, _βp_, _βt_, _Wtot_
<u>4.</u>
FNOLSTM-EN-2 Energy content, all. _βN_, _βp_, _βt_, _Wtot_, DML, _H98y2_
FNOLSTM-RA-1 Radiation, top 2. _Prad_, _Prad,_ SOL
FNOLSTM-RA-2 Radiation, all. _Prad_, _Prad,_ bulk, _Prad,_ SOL
FNOLSTM-OT-1 Other, all. _li_, _Zeff_, _νe,_ <sup>_∗_</sup> ped <sup>,</sup> <sup>_Vloop_</sup>
FNOLSTM- _∗∗_ -1 Mixed, rank 1. _κ_, PD _CIII_, _q_ 95, max( _n_ <sup>_′′_</sup> _e,_
<sup>_′′_</sup> _e,_ edge <sup>),</sup> max( _Te,_ <sup>_′_</sup>
_e,_ <sup>_′_</sup> edge <sup>),</sup> _Pin_, _βt_, _Prad,_ SOL,
_νe,_ <sup>_∗_</sup> ped
FNOLSTM- _∗∗_ -2 Mixed, rank 2. _δ_ bottom, PD _Hα_, _Ip,ref_, _ne,_ LFS, max( _Te,_ <sup>_′′_</sup> edge <sup>),</sup> <sup>_PNBI_</sup> <sup>,</sup> <sup>_Wtot_</sup> <sup>,</sup> <sup>_Prad_</sup> <sup>,</sup> <sup>_li_</sup>
FNOLSTM- _∗∗_ -3 Mixed, rank 3. _Z_ axis, PD <sup>_H_</sup> FFT <sup>_α_</sup>
_e,_ <sup>_′_</sup> edge <sup>),</sup> <sup>_SXR_</sup> <sup>core</sup> <sup>,</sup> <sup>_PLH_</sup> <sup>,</sup> <sup>_βN_</sup> <sup>,</sup> <sup>_Vloop_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 20 _-c_ <sup>,</sup> <sup>_Ip_</sup> <sup>,</sup> <sup>max(</sup> <sup>_n′_</sup>
FNOLSTM- _∗∗_ -4 Mixed, top 2. _δ_ bottom, _κ_, PD _CIII_, PD _Hα_, _Ip,ref_, _q_ 95, _ne,_ LFS, max( _n_ <sup>_′′_</sup> _e,_ edge <sup>),</sup>
max( _Te,_ <sup>_′_</sup>
_e,_ <sup>_′_</sup> edge <sup>),</sup> <sup>max(</sup> <sup>_T ′′_</sup> _e,_
<sup>_′′_</sup> _e,_ edge <sup>),</sup> <sup>_Pin_</sup> <sup>,</sup> <sup>_PNBI_</sup> <sup>,</sup> <sup>_βt_</sup> <sup>,</sup> <sup>_Wtot_</sup> <sup>,</sup> <sup>_Prad_</sup> <sup>,</sup> <sup>_Prad,_</sup> <sup>SOL</sup> <sup>,</sup> <sup>_li_</sup> <sup>,</sup>
_νe,_ <sup>_∗_</sup> ped
FNOLSTM- _∗∗_ -5 Mixed, top 3. _δ_ bottom, _κ_, _Z_ axis, PD _CIII_, PD _Hα_, PD <sup>_H_</sup> FFT <sup>_α_</sup> 20 _-c_ <sup>,</sup> <sup>_Ip_</sup> <sup>,</sup> <sup>_Ip,ref_</sup> <sup>,</sup> <sup>_q_</sup> <sup>95</sup> <sup>,</sup> <sup>_ne,_</sup> <sup>LFS</sup> <sup>,</sup>
max( _n_ <sup>_′_</sup>
<sup>_′_</sup> _e,_ edge <sup>),</sup> <sup>max(</sup> <sup>_n′′_</sup> _e,_
<sup>_′′_</sup> _e,_ edge <sup>),</sup> <sup>_SXR_</sup> <sup>core</sup> <sup>,</sup> <sup>max(</sup> <sup>_T ′_</sup> _e,_
<sup>_′_</sup> _e,_ edge <sup>),</sup> <sup>max(</sup> <sup>_T ′′_</sup> _e,_
<sup>_′′_</sup> _e,_ edge <sup>),</sup> <sup>_Pin_</sup> <sup>,</sup>
_PNBI_, _PLH_, _βN_, _βt_, _Wtot_, _Prad_, _Prad,_ SOL, _li_, _νe,_ <sup>_∗_</sup> ped <sup>,</sup> <sup>_Vloop_</sup>
23
FNOLSTM- _∗∗_ -6 Mixed, all. _Ap_, _δ_ bottom, _δ_ top, ∆in, ∆out, _κ_, _R_ 0, _a_, _R_ axis, _Z_ axis, _Vp_, PD _CIII_,
PD _Hα_, PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT5 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT10 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT20 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT50 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT100 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 5 _-c_ <sup>,</sup>
PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 10 _-c_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 20 _-c_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 50 _-c_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 100 _-c_ <sup>,</sup> _B_ 0, _Ip_, _Ip,ref_, _q_ 95,
_ne,_ core, _ne,_ LFS, _ne/nGW_, max( _n_ <sup>_′_</sup>
<sup>_′_</sup> _e,_ edge <sup>),</sup> <sup>max(</sup> <sup>_n′′_</sup> _e,_
<sup>_′′_</sup> _e,_ edge <sup>),</sup> <sup>_ne,_</sup> <sup>0</sup> <sup>,</sup> <sup>_SXR_</sup> <sup>core</sup> <sup>,</sup>
max( _Te,_ <sup>_′_</sup>
_e,_ <sup>_′_</sup> edge <sup>),</sup> <sup>max(</sup> <sup>_T ′′_</sup> _e,_
<sup>_′′_</sup> _e,_ edge <sup>),</sup> <sup>_Te,_</sup> <sup>0</sup> <sup>,</sup> <sup>_Pin_</sup> <sup>,</sup> <sup>_POHM_</sup> <sup>,</sup> <sup>_PNBI_</sup> <sup>,</sup> <sup>_PNBI2_</sup> <sup>,</sup> <sup>_PECRH_</sup> <sup>,</sup>
FNOLSTM- _∗∗_ -7 Mixed, rank 1 (by
<u>L-mode threshold).</u>
FNOLSTM- _∗∗_ -8 Mixed, rank 2 (by
<u>L-mode threshold).</u>
FNOLSTM- _∗∗_ -9 Mixed, top 2 (by Lmode threshold).
FNOLSTM- _∗∗_ -10 Mixed, rank 2 (by
<u>H-mode threshold).</u>
_PLH_, _βN_, _βp_, _βt_, _Wtot_, DML, _H98y2_, _Prad_, _Prad,_ bulk, _Prad,_ SOL,
_li_, _Zeff_, _νe,_ <sup>_∗_</sup> ped <sup>,</sup> <sup>_Vloop_</sup>
∆in, PD _CIII_, _Ip,ref_, _ne,_ 0, _SXR_ core, _Pin_, _βt_, _Prad,_ bulk, _Vloop_
_κ_, PD _Hα_, _Ip_, max( _ne,_ <sup>_′_</sup>
_e,_ <sup>_′_</sup> edge <sup>),</sup> <sup>max(</sup> <sup>_T ′′_</sup> _e,_
<sup>_′′_</sup> _e,_ edge <sup>),</sup> <sup>_PNBI_</sup> <sup>,</sup> <sup>_Wtot_</sup> <sup>,</sup> <sup>_Prad_</sup> <sup>,</sup> <sup>_Zeff_</sup>
∆in, _κ_, PD _CIII_, PD _Hα_, _Ip_, _Ip,ref_, max( _n_ <sup>_′_</sup> _e,_ edge <sup>),</sup> _ne,_ 0, _SXR_ core,
max( _Te,_ <sup>_′′_</sup> edge <sup>),</sup> <sup>_Pin_</sup> <sup>,</sup> <sup>_PNBI_</sup> <sup>,</sup> <sup>_βt_</sup> <sup>,</sup> <sup>_Wtot_</sup> <sup>,</sup> <sup>_Prad_</sup> <sup>,</sup> <sup>_Prad,_</sup> <sup>bulk</sup> <sup>,</sup> <sup>_Zeff_</sup> <sup>,</sup> <sup>_Vloop_</sup>
_δ_ bottom, PD _Hα_, _Ip_, _ne,_ 0, max( _Te,_ <sup>_′′_</sup> edge <sup>),</sup> <sup>_PNBI2_</sup> <sup>,</sup> <sup>_Wtot_</sup> <sup>,</sup> <sup>_Vloop_</sup>
GBDT-SH-1 Shaping, top 4. _Ap_, _δ_ bottom, _κ_, _Z_ axis
GBDT-SH-2 Shaping, all. _Ap_, _δ_ bottom, _δ_ top, ∆in, ∆out, _κ_, _R_ 0, _a_, _R_ axis, _Z_ axis, _Vp_
GBDT-EM-1 Emission, top 4. PD <sup>_H_</sup> FFT <sup>_α_</sup>
GBDT-EM-2 Emission, all. PD <sup>_CIII_</sup> FFT
<sup>_H_</sup> FFT <sup>_α_</sup> 10 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 20 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_CIII_</sup> FFT10 _-c_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_H_</sup> FFT <sup>_α_</sup> 50 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
FFT100 _-c_
<sup>_CIII_</sup> FFT5 _-c_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT20 _-c_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT50 _-c_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT100 _-c_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 5 _-c_ <sup>,</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 10 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 20 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 50 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 50 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
FFT100 _-f_
FFT100 _-c_
<sup>_CIII_</sup> FFT5 _-f_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT20 _-f_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT10 _-p_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
GBDT-EM-3 Emission, all FFT
features.
PD <sup>_H_</sup> FFT <sup>_α_</sup>
PD <sup>_CIII_</sup> FFT
PD <sup>_CIII_</sup> FFT
PD <sup>_CIII_</sup> FFT
PD <sup>_H_</sup> FFT <sup>_α_</sup>
PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_CIII_</sup> FFT5 _-p_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT20 _-p_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT5 _-c_ <sup>,</sup> PD <sup>_CIII_</sup> FFT5
<sup>_CIII_</sup> FFT20 _-c_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT50 _-p_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT10 _-c_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT50 _-c_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT10 _-f_ <sup>,</sup>
<sup>_CIII_</sup> FFT50 _-f_ <sup>,</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 5 _-c_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 5 _-f_ <sup>,</sup>
<sup>_CIII_</sup> FFT100 _-p_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT100 _-c_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT100 _-f_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 5 _-p_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 10 _-p_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 10 _-c_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 10 _-f_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 20 _-p_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 20 _-c_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 20 _-f_ <sup>,</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 50 _-p_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 50 _-f_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 100 _-p_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 100 _-c_ <sup>,</sup> <sup>PD</sup> FFT <sup>_Hα_</sup>
GBDT-MA-1 Magnetics, all. _B_ 0, _Ip_, _Ip,ref_, _q_ 95
GBDT-DE-1 Density, top 4. _ne,_ core, _ne,_ LFS, max( _n_ <sup>_′_</sup> _e,_
<sup>_′_</sup> _e,_ edge <sup>),</sup> <sup>max(</sup> <sup>_n′′_</sup> _e,_
<sup>_′′_</sup> _e,_ edge <sup>)</sup>
GBDT-DE-2 Density, all. _ne,_ core, _ne,_ LFS, _ne/nGW_, max( _n_ <sup>_′_</sup>
<sup>_′_</sup> _e,_ edge <sup>),</sup> <sup>max(</sup> <sup>_n′′_</sup> _e,_
<sup>_′′_</sup> _e,_ edge <sup>),</sup> <sup>_ne,_</sup> <sup>0</sup>
GBDT-TE-1 Temperature, all. _SXR_ core, max( _Te,_ <sup>_′_</sup>
_e,_ <sup>_′_</sup> edge <sup>),</sup> <sup>max(</sup> <sup>_T ′′_</sup> _e,_
<sup>_′′_</sup> _e,_ edge <sup>),</sup> <sup>_Te,_</sup> <sup>0</sup>
GBDT-PO-1 Power, top 4. _Pin_, _PNBI_, _PECRH_, _PLH_
GBDT-PO-2 Power, all. _Pin_, _POHM_, _PNBI_, _PNBI2_, _PECRH_, _PLH_
GBDT-EN-1 Energy content, top _βN_, _βp_, _βt_, _Wtot_
<u>4.</u>
GBDT-EN-2 Energy content, all. _βN_, _βp_, _βt_, _Wtot_, DML, _H98y2_
GBDT-RA-1 Radiation, top 2. _Prad_, _Prad,_ SOL
GBDT-RA-2 Radiation, all. _Prad_, _Prad,_ bulk, _Prad,_ SOL
24
GBDT-OT-1 Other, all. _li_, _Zeff_, _νe,_ <sup>_∗_</sup> ped <sup>,</sup> <sup>_Vloop_</sup>
GBDT- _∗∗_ -1 Mixed, rank 1. _κ_, PD <sup>_H_</sup> FFT <sup>_α_</sup>
_e,_ <sup>_′′_</sup> edge <sup>),</sup> <sup>max(</sup> <sup>_T ′_</sup> _e,_
<sup>_′_</sup> _e,_ edge <sup>),</sup> <sup>_Pin_</sup> <sup>,</sup> <sup>_βt_</sup> <sup>,</sup> <sup>_Prad,_</sup> <sup>SOL</sup> <sup>,</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 20 _-c_ <sup>,</sup> <sup>_q_</sup> <sup>95</sup> <sup>,</sup> <sup>max(</sup> <sup>_n_</sup> _e,_ <sup>_′′_</sup>
_νe,_ <sup>_∗_</sup> ped
GBDT- _∗∗_ -2 Mixed, rank 2. _δ_ bottom, PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_′′_</sup> _e,_ edge <sup>),</sup> <sup>_PNBI_</sup> <sup>,</sup> <sup>_Wtot_</sup> <sup>,</sup> <sup>_Prad_</sup> <sup>,</sup> <sup>_li_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 50 _-c_ <sup>,</sup> <sup>_Ip,ref_</sup> <sup>,</sup> <sup>_ne,_</sup> <sup>LFS</sup> <sup>,</sup> <sup>max(</sup> <sup>_T ′′_</sup> _e,_
GBDT- _∗∗_ -3 Mixed, rank 3. _Z_ axis, PD <sup>_H_</sup> FFT <sup>_α_</sup>
_e,_ <sup>_′_</sup> edge <sup>),</sup> <sup>_SXR_</sup> <sup>core</sup> <sup>,</sup> <sup>_PLH_</sup> <sup>,</sup> <sup>_βN_</sup> <sup>,</sup> <sup>_Vloop_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 10 _-c_ <sup>,</sup> <sup>_Ip_</sup> <sup>,</sup> <sup>max(</sup> <sup>_n_</sup> _e,_ <sup>_′_</sup>
GBDT- _∗∗_ -4 Mixed, top 2. _δ_ bottom, _κ_, PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 20 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 50 _-c_ <sup>,</sup> <sup>_Ip,ref_</sup> <sup>,</sup> <sup>_q_</sup> <sup>95</sup> <sup>,</sup> <sup>_ne,_</sup> <sup>LFS</sup> <sup>,</sup> <sup>max(</sup> <sup>_n_</sup> _e,_ <sup>_′′_</sup>
_e,_ <sup>_′′_</sup> edge <sup>),</sup>
max( _Te,_ <sup>_′_</sup>
_e,_ <sup>_′_</sup> edge <sup>),</sup> <sup>max(</sup> <sup>_T ′′_</sup> _e,_
<sup>_′′_</sup> _e,_ edge <sup>),</sup> <sup>_Pin_</sup> <sup>,</sup> <sup>_PNBI_</sup> <sup>,</sup> <sup>_βt_</sup> <sup>,</sup> <sup>_Wtot_</sup> <sup>,</sup> <sup>_Prad_</sup> <sup>,</sup> <sup>_Prad,_</sup> <sup>SOL</sup> <sup>,</sup> <sup>_li_</sup> <sup>,</sup>
_νe,_ <sup>_∗_</sup> ped
GBDT- _∗∗_ -5 Mixed, top 3. _δ_ bottom, _κ_, _Z_ axis, PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 10 _-c_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 20 _-c_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 50 _-c_ <sup>,</sup> _Ip_, _Ip,ref_,
_q_ 95, _ne,_ LFS, max( _n_ <sup>_′_</sup>
<sup>_′_</sup> _e,_ edge <sup>),</sup> max( _n_ <sup>_′′_</sup> _e,_
<sup>_′′_</sup> _e,_ edge <sup>),</sup> _SXR_ core, max( _Te,_ <sup>_′_</sup>
_e,_ <sup>_′_</sup> edge <sup>),</sup>
max( _Te,_ <sup>_′′_</sup> edge <sup>),</sup> <sup>_Pin_</sup> <sup>,</sup> <sup>_PNBI_</sup> <sup>,</sup> <sup>_PLH_</sup> <sup>,</sup> <sup>_βN_</sup> <sup>,</sup> <sup>_βt_</sup> <sup>,</sup> <sup>_Wtot_</sup> <sup>,</sup> <sup>_Prad_</sup> <sup>,</sup> <sup>_Prad,_</sup> <sup>SOL</sup> <sup>,</sup> <sup>_li_</sup> <sup>,</sup>
_νe,_ <sup>_∗_</sup> ped <sup>,</sup> <sup>_Vloop_</sup>
GBDT- _∗∗_ -6 Mixed, all. _Ap_, _δ_ bottom, _δ_ top, ∆in, ∆out, _κ_, _R_ 0, _a_, _R_ axis, _Z_ axis, _Vp_, PD <sup>_CIII_</sup> FFT5 _-c_ <sup>,</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 10 _-c_ <sup>,</sup>
PD <sup>_CIII_</sup> FFT
PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_CIII_</sup> FFT10 _-c_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_H_</sup> FFT <sup>_α_</sup> 50 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_CIII_</sup> FFT20 _-c_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT50 _-c_ <sup>,</sup> PD <sup>_CIII_</sup> FFT
<sup>_CIII_</sup> FFT100 _-c_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 5 _-c_ <sup>,</sup> PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 20 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 100 _-c_ <sup>,</sup> <sup>_B_</sup> <sup>0</sup> <sup>,</sup> <sup>_Ip_</sup> <sup>,</sup> <sup>_Ip,ref_</sup> <sup>,</sup> <sup>_q_</sup> <sup>95</sup> <sup>,</sup> <sup>_ne,_</sup> <sup>core</sup> <sup>,</sup> <sup>_ne,_</sup> <sup>LFS</sup> <sup>,</sup>
_ne/nGW_, max( _n_ <sup>_′_</sup>
<sup>_′_</sup> _e,_ edge <sup>),</sup> max( _n_ <sup>_′′_</sup> _e,_
<sup>_′′_</sup> _e,_ edge <sup>),</sup> _ne,_ 0, _SXR_ core, max( _Te,_ <sup>_′_</sup>
_e,_ <sup>_′_</sup> edge <sup>),</sup>
max( _Te,_ <sup>_′′_</sup> edge <sup>)</sup> <sup>,</sup> <sup>_Te,_</sup> <sup>0</sup> <sup>,</sup> <sup>_Pin_</sup> <sup>,</sup> <sup>_POHM_</sup> <sup>,</sup> <sup>_PNBI_</sup> <sup>,</sup> <sup>_PNBI2_</sup> <sup>,</sup> <sup>_PECRH_</sup> <sup>,</sup> <sup>_PLH_</sup> <sup>,</sup> <sup>_βN_</sup> <sup>,</sup> <sup>_βp_</sup> <sup>,</sup>
GBDT- _∗∗_ -7 Mixed, rank 1 (by
<u>L-mode threshold).</u>
GBDT- _∗∗_ -8 Mixed, rank 2 (by
<u>L-mode threshold).</u>
GBDT- _∗∗_ -9 Mixed, top 2 (by Lmode threshold).
GBDT- _∗∗_ -10 Mixed, rank 2 (by
H-mode threshold).
_βt_, _Wtot_, DML, _H98y2_, _Prad_, _Prad,_ bulk, _Prad,_ SOL, _li_, _Zeff_, _νe,_ <sup>_∗_</sup> ped <sup>,</sup>
_Vloop_
∆in, PD <sup>_H_</sup> FFT <sup>_α_</sup> 20 _-c_ <sup>,</sup> <sup>_Ip,ref_</sup> <sup>,</sup> <sup>_ne,_</sup> <sup>0</sup> <sup>,</sup> <sup>_SXR_</sup> <sup>core</sup> <sup>,</sup> <sup>_Pin_</sup> <sup>,</sup> <sup>_βt_</sup> <sup>,</sup> <sup>_Prad,_</sup> <sup>bulk</sup> <sup>,</sup> <sup>_Vloop_</sup>
_κ_, PD <sup>_H_</sup> FFT <sup>_α_</sup>
_e,_ <sup>_′_</sup> edge <sup>)</sup> <sup>,</sup> <sup>max(</sup> <sup>_T ′′_</sup> _e,_
<sup>_′′_</sup> _e,_ edge <sup>)</sup> <sup>,</sup> <sup>_PNBI_</sup> <sup>,</sup> <sup>_Wtot_</sup> <sup>,</sup> <sup>_Prad_</sup> <sup>,</sup> <sup>_Zeff_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 50 _-c_ <sup>,</sup> <sup>_Ip_</sup> <sup>,</sup> <sup>max(</sup> <sup>_n′_</sup>
∆in, _κ_, PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 20 _-c_ <sup>,</sup> <sup>PD</sup> <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 50 _-c_ <sup>,</sup> <sup>_Ip_</sup> <sup>,</sup> <sup>_Ip,ref_</sup> <sup>,</sup> <sup>max(</sup> <sup>_n′_</sup>
_e,_ <sup>_′_</sup> edge <sup>)</sup> <sup>,</sup> <sup>_ne,_</sup> <sup>0</sup> <sup>,</sup> <sup>_SXR_</sup> <sup>core</sup> <sup>,</sup>
max( _Te,_ <sup>_′′_</sup> edge <sup>),</sup> <sup>_Pin_</sup> <sup>,</sup> <sup>_PNBI_</sup> <sup>,</sup> <sup>_βt_</sup> <sup>,</sup> <sup>_Wtot_</sup> <sup>,</sup> <sup>_Prad_</sup> <sup>,</sup> <sup>_Prad,_</sup> <sup>bulk</sup> <sup>,</sup> <sup>_Zeff_</sup> <sup>,</sup> <sup>_Vloop_</sup>
_δ_ bottom, PD <sup>_H_</sup> FFT <sup>_α_</sup>
<sup>_′′_</sup> _e,_ edge <sup>),</sup> <sup>_PNBI2_</sup> <sup>,</sup> <sup>_Wtot_</sup> <sup>,</sup> <sup>_Vloop_</sup>
<sup>_H_</sup> FFT <sup>_α_</sup> 50 _-c_ <sup>,</sup> <sup>_Ip_</sup> <sup>,</sup> <sup>_ne,_</sup> <sup>0</sup> <sup>,</sup> <sup>max(</sup> <sup>_T ′′_</sup> _e,_
Table A.2: All _(model + feature set)_ configurations, with features colored by category. The order is based on Cohen’s kappa
coefficient when using the individual feature to predict the confinement state using a shallow decision tree, unless specified
otherwise. The feature sets between the two models are identical except for the emission-related features, where only the
FNOLSTM-based models use the raw photodiode signals. These signals are not very informative when considering the
absolute value because they are not absolutely calibrated, however, confinement state-related patterns are clearly visible in
their dynamics. For this reason, the ‘raw’ values are selected only for the dynamic models, since these models can detect the
temporal patterns.
25
Appendix B. Model training
_Appendix B.1._ _FNOLSTM_
The training procedure of FNOLSTM models is summarized as follows. At timestep _m_, for time window _w_, stride size
_p_ and prediction offset _k_, the neural network maps the input window x _tm−w_ : _tm_, combined with previous hidden state
( h _tm−p,_ c _tm−p_ ), to predictions � y <sup>s</sup> <sup>_,tm−k_</sup> . We use categorical cross-entropy as the loss function between the predictions and
ground truth values:
_y_ <sup>_s,tm−k_</sup> log ˆ _y_ <sup>_s,tm−k_</sup> _,_ (B.1)
_L_ ( y <sup>s</sup> <sup>_,tm−k_</sup> _,_ - y <sup>s</sup> <sup>_,tm−k_</sup> ) = _−_
_s∈_ s
equivalent to minimizing the negative log-likelihood. We use standard gradient-based optimization as provided by
PyTorch [47]; specifically, we use the schedule-free Adam optimizer [67].
One parameter update step consists of computing the loss between a mini-batch of signal timeseries and the
corresponding confinement state labels. We iteratively predict confinement states as we slide over the input signal
with stride size _p_ while continuously updating the hidden state ( h _tm−p,_ c _tm−p_ ). The number of these unrolling steps is a
hyperparameter, see also Appendix C. The loss computation and parameter update is done for the entire batch + unrolling at
once, that is, applying backpropagation through time [68].
We sample each element in the batch as a random _(shot + initial timestep)_ combination. To account for the imbalance in
the different class labels, we precompute the total number of L, D and H labels for all _(shot + initial timestep)_ combinations
given the chosen stride size, prediction offset, and number of unrolling steps. Then, rather than uniformly sampling the _(shot_
_+ initial timestep)_ inputs, we reweight the sampling probability based on the total probabilities of the L, D, and H labels
across all elements to ensure that all confinement states are sampled equally often in expectation. We optimize for _≈_ 100
batches per epoch for 50 epochs. After every 10 epochs we compute Cohen’s kappa coefficient on the validation discharges
and save the model with the minimum validation error.
_Appendix B.2._ _GBDT_
The training procedure of GBDT models is summarized as follows. At timestep _m_ we map input signals x <sup>u</sup> <sup>_,tm_</sup> to predictions
y - <sup>s</sup> <sup>_,tm_</sup> . As loss function we again use the categorical cross-entropy between the predictions and the reference labels y <sup>s</sup> <sup>_,tm_</sup>,
see Equation B.1. The random forest is build through gradient boosting using XGBoost [24]. Trees are fit one at a time
utilizing the full train set for each tree, with new trees minimizing the residual error w.r.t. the already-trained trees.
The samples cover _(shot_ _+_ _timestep)_ combinations in the training dataset. Specifically, we subsample timesteps
with L or H labels to account for the class imbalance. We utilize various subsampling ratios, see Appendix C for details.
Additionally, regardless of the aforementioned subsampling, we always sample all 50 timesteps before and after each
confinement state transition, to ensure these more difficult timeslices are always part of the dataset.
26
Appendix C. Settings and hyperparameters
_Appendix C.1._ _FNOLSTM_
The NN model architecture consists of an FNO-based encoder, an LSTM unit and a small MLP for the final prediction,
see also Equation 9. We use a fixed structure of layers and optimize the layer hyperparameters. Certain layer sizes are
coupled to reduce the search space and to avoid extremely unbalanced models; for this, we introduce parameters FNOfeat,
FNOmode and LSTMfeat. The architecture is as follows. The input consists of a time window of size _w_ for _Nu_ input features,
i.e. x _∈_ R <sup>_w×Nu_</sup> . This x is transformed by an FNO layer to FNOfeat hidden features utilizing FNOmode modes and a ReLU <sup>2</sup>
nonlinearity. We follow with another FNO layer, mapping to 2 _·_ FNOfeat hidden features using FNOmode modes and a ReLU
nonlinearity. We apply a dropout [69] of 0.5 and do max-pooling of 2 over the temporal axis. Then, we flatten the temporal
axis and map with a linear layer to LSTMfeat features followed by ReLU; this output of the temporal feature extractor is
denoted as _z_ . We transform _z_ using an LSTM <sup>3</sup> with a hidden size of LSTMfeat. The result is summed to _z_, i.e. the residual
connection, and mapped to <sup><u>1</u></sup> 3 <sup>LSTMfeat features with a ReLU nonlinearity.</sup> <sup>We apply dropout, map to 3 features and apply</sup>
softmax <sup>4</sup> function, the output prediction y _∈_ R <sup>3</sup> .
Non-architecture parameters we optimize are the time window size _w_ and the prediction offset _k_ (see Equation 9).
Stride parameter _p_ is fixed to 10, which results in a prediction rate of 1 kHz given that the signals are (re)sampled at 10 kHz.
All neural networks are optimized with schedule-free Adam [67] following the training procedure describe in Appendix B;
we optimize the learning rate and the number of warmup steps for the optimizer, and optimize the batch size <sup>5</sup> and the
number of unrolling steps done for each sample during training.
_Appendix C.2._ _GBDT_
The GBDT models utilize the implementation provided by XGBoost [24]. For each model we optimize the number of
decision trees in the forest, the maximum depth of a single decision tree, and the learning rate of the gradient boosting
algorithm. Additionally, we optimize the ratios of resampling the different classes. We always subsample L and H-mode
timeslices to match the number of D timeslices; here, we optimize whether we do this rebalancing at a 1:1, 3:1 or 5:1 ratio
for L and H w.r.t. D. Note that we always sample all timeslices around transition points regardless of class rebalancing, see
also Appendix B.
_Appendix C.3._ _Optimization procedure and parameter ranges_
All hyperparameters are optimized with Bayesian optimization through Optuna [48], with the Cohen’s kappa coefficient [46]
on validation-set discharges as the target metric. They are shared on the level of the 4 folds used for each _(model + feature_
_set)_ combination. Consequently, each hyperparameter trial considers training 4 models, with the resulting validation metrics
averaged out. For each _(model + feature set)_ configuration we do 100 trials for FNOLSTM-based models, and 250 trials for
GBDT-based models. The hyperparameter ranges for both model types are provided in Tables C.1 and C.2, respectively.
Hyperparameter Range (type)
Time window _w_ 20–100 ( _int_, step: 10)
Prediction offset _k_ 20– _w_ ( _int_, step: 10)
Learning rate 0 _._ 0005–0 _._ 2 ( _float_, log-scale)
Warmup steps 0–150 ( _int_ )
Batch size 16–384 ( _int_ )
Train unrolling steps 10–80 ( _int_, step: 5)
FNOfeat 14–68 ( _int_, step: 6)
FNOmode 8–14 ( _int_, step: 2)
LSTMfeat 14–68 ( _int_, step: 6)
Table C.1: Hyperparameter ranges for all FNOLSTM-based models.
2 _σ_ ( _z_ ) = max(0 _, z_ ) _._
3Also taking as input the previous LSTM’s hidden state.
4 _σ_ ( _z_ ) _i_ = <u>�</u> _ne_ <sup>_zi_</sup>
_j_ =1 <sup>_e_</sup> <sup>_~~z~~_</sup> <sup>_j_</sup> <sup>.</sup>
5We keep the number of batches per epoch fixed despite the larger batch size to keep the total number of update steps fixed.
27
Hyperparameter Range (type)
Learning rate 0 _._ 01–1 _._ 0 ( _float_, log-scale)
No. trees 100–1500 ( _int_, step: 20)
Max. tree depth 3–12 ( _int_ )
L/H to D ratio _{_ 1 _,_ 3 _,_ 5 _}_ ( _int_ )
Table C.2: Hyperparameter ranges for all GBDT-based models.
28
Appendix D. Extra results
This appendix contains extra figures or tables for the model evaluation. Specifically, Table D.1 contains metric values for
Cohen’s kappa score [46] and the Expected Calibration Error [50,51] for all individual _(model + feature set)_ configurations
and the FNOLSTM-only, GBDT-only and full ensemble, similar to Figure 6. Figure D.1 depicts full-ensemble predictions
on two negative triangularity discharges from the test set.
Cohen’s kappa coefficient Expected Calibration Error
Model All test (34) Subset (15) All test (34) Subset (15)
FNOLSTM-SH-1 <mark>0.648</mark> <mark>0.954</mark> <mark>0.0798</mark> <mark>0.1867</mark>
FNOLSTM-SH-2 <mark>0.896</mark> <mark>0.959</mark> <mark>0.0336</mark> <mark>0.0488</mark>
FNOLSTM-EM-1 <mark>0.926</mark> <mark>0.917</mark> <mark>0.0201</mark> <mark>0.0128</mark>
FNOLSTM-EM-2 <mark>0.923</mark> <mark>0.915</mark> <mark>0.0195</mark> <mark>0.0198</mark>
FNOLSTM-EM-3 <mark>0.885</mark> <mark>0.882</mark> <mark>0.0124</mark> <mark>0.0265</mark>
FNOLSTM-MA-1 <mark>0.783</mark> <mark>0.791</mark> <mark>0.0598</mark> <mark>0.0443</mark>
FNOLSTM-DE-1 <mark>-</mark> <mark>0.903</mark> <mark>-</mark> <mark>0.0157</mark>
FNOLSTM-DE-2 <mark>-</mark> <mark>0.941</mark> <mark>-</mark> <mark>0.0277</mark>
FNOLSTM-TE-1 <mark>-</mark> <mark>0.884</mark> <mark>-</mark> <mark>0.0311</mark>
FNOLSTM-PO-1 <mark>0.774</mark> <mark>0.854</mark> <mark>0.0467</mark> <mark>0.0322</mark>
FNOLSTM-PO-2 <mark>0.855</mark> <mark>0.885</mark> <mark>0.0349</mark> <mark>0.0376</mark>
FNOLSTM-EN-1 <mark>0.926</mark> <mark>0.978</mark> <mark>0.0297</mark> <mark>0.0509</mark>
FNOLSTM-EN-2 <mark>-</mark> <mark>0.929</mark> <mark>-</mark> <mark>0.0282</mark>
FNOLSTM-RA-1 <mark>-</mark> <mark>0.807</mark> <mark>-</mark> <mark>0.0376</mark>
FNOLSTM-RA-2 <mark>-</mark> <mark>0.865</mark> <mark>-</mark> <mark>0.0632</mark>
FNOLSTM-OT-1 <mark>-</mark> <mark>0.841</mark> <mark>-</mark> <mark>0.0357</mark>
FNOLSTM- _∗∗_ -1 <mark>-</mark> <mark>0.958</mark> <mark>-</mark> <mark>0.0123</mark>
FNOLSTM- _∗∗_ -2 <mark>-</mark> <mark>0.967</mark> <mark>-</mark> <mark>0.0090</mark>
FNOLSTM- _∗∗_ -3 <mark>-</mark> <mark>0.960</mark> <mark>-</mark> <mark>0.0144</mark>
FNOLSTM- _∗∗_ -4 <mark>-</mark> <mark>0.955</mark> <mark>-</mark> <mark>0.0079</mark>
FNOLSTM- _∗∗_ -5 <mark>-</mark> <mark>0.968</mark> <mark>-</mark> <mark>0.0070</mark>
FNOLSTM- _∗∗_ -6 <mark>-</mark> <mark>0.961</mark> <mark>-</mark> <mark>0.0131</mark>
FNOLSTM- _∗∗_ -7 <mark>-</mark> <mark>0.955</mark> <mark>-</mark> <mark>0.0134</mark>
FNOLSTM- _∗∗_ -8 <mark>-</mark> <mark>0.969</mark> <mark>-</mark> <mark>0.0158</mark>
FNOLSTM- _∗∗_ -9 <mark>-</mark> <mark>0.975</mark> <mark>-</mark> <mark>0.0063</mark>
<u>FNOLSTM-</u> _<u>∗∗</u>_ <u>-10</u> <u><mark>-</mark></u> <u><mark>0.969</mark></u> <u><mark>-</mark></u> <u><mark>0.0214</mark></u>
GBDT-SH-1 <mark>0.574</mark> <mark>0.945</mark> <mark>0.1133</mark> <mark>0.2303</mark>
GBDT-SH-2 <mark>0.875</mark> <mark>0.906</mark> <mark>0.0179</mark> <mark>0.0264</mark>
GBDT-EM-1 <mark>0.777</mark> <mark>0.688</mark> <mark>0.0149</mark> <mark>0.0398</mark>
GBDT-EM-2 <mark>0.761</mark> <mark>0.746</mark> <mark>0.0137</mark> <mark>0.0193</mark>
GBDT-EM-3 <mark>0.859</mark> <mark>0.844</mark> <mark>0.0085</mark> <mark>0.0176</mark>
GBDT-MA-1 <mark>0.544</mark> <mark>0.595</mark> <mark>0.0247</mark> <mark>0.0537</mark>
GBDT-DE-1 <mark>0.726</mark> <mark>0.838</mark> <mark>0.0563</mark> <mark>0.0686</mark>
GBDT-DE-2 <mark>0.741</mark> <mark>0.833</mark> <mark>0.0228</mark> <mark>0.0334</mark>
GBDT-TE-1 <mark>0.631</mark> <mark>0.924</mark> <mark>0.1346</mark> <mark>0.2694</mark>
GBDT-PO-1 <mark>0.770</mark> <mark>0.814</mark> <mark>0.0230</mark> <mark>0.0322</mark>
GBDT-PO-2 <mark>0.791</mark> <mark>0.832</mark> <mark>0.0466</mark> <mark>0.0594</mark>
GBDT-EN-1 <mark>0.840</mark> <mark>0.883</mark> <mark>0.0205</mark> <mark>0.0678</mark>
GBDT-EN-2 <mark>0.845</mark> <mark>0.856</mark> <mark>0.0204</mark> <mark>0.0443</mark>
29
GBDT-RA-1 <mark>0.650</mark> <mark>0.803</mark> <mark>0.0690</mark> <mark>0.0484</mark>
GBDT-RA-2 <mark>0.630</mark> <mark>0.779</mark> <mark>0.0591</mark> <mark>0.0429</mark>
GBDT-OT-1 <mark>0.711</mark> <mark>0.730</mark> <mark>0.0501</mark> <mark>0.0620</mark>
GBDT- _∗∗_ -1 <mark>0.904</mark> <mark>0.915</mark> <mark>0.0116</mark> <mark>0.0146</mark>
GBDT- _∗∗_ -2 <mark>0.914</mark> <mark>0.938</mark> <mark>0.0190</mark> <mark>0.0252</mark>
GBDT- _∗∗_ -3 <mark>0.919</mark> <mark>0.958</mark> <mark>0.0141</mark> <mark>0.0283</mark>
GBDT- _∗∗_ -4 <mark>0.926</mark> <mark>0.946</mark> <mark>0.0163</mark> <mark>0.0158</mark>
GBDT- _∗∗_ -5 <mark>0.925</mark> <mark>0.967</mark> <mark>0.0110</mark> <mark>0.0287</mark>
GBDT- _∗∗_ -6 <mark>0.928</mark> <mark>0.968</mark> <mark>0.0053</mark> <mark>0.0191</mark>
GBDT- _∗∗_ -7 <mark>0.925</mark> <mark>0.957</mark> <mark>0.0394</mark> <mark>0.0598</mark>
GBDT- _∗∗_ -8 <mark>0.901</mark> <mark>0.924</mark> <mark>0.0214</mark> <mark>0.0168</mark>
GBDT- _∗∗_ -9 <mark>0.936</mark> <mark>0.954</mark> <mark>0.0243</mark> <mark>0.0339</mark>
<u>GBDT-</u> _<u>∗∗</u>_ <u>-10</u> <u><mark>0.896</mark></u> <u><mark>0.939</mark></u> <u><mark>0.0222</mark></u> <u><mark>0.0399</mark></u>
FNOLSTMENSEMBLE <mark>0.938</mark> <mark>0.955</mark> <mark>0.0130</mark> <mark>0.0189</mark>
GBDTENSEMBLE <mark>0.907</mark> <mark>0.921</mark> <mark>0.0200</mark> <mark>0.0327</mark>
ALLENSEMBLE <mark>0.928</mark> <mark>0.952</mark> <mark>0.0205</mark> <mark>0.0260</mark>
Table D.1: Classification performance (Cohen’s kappa coefficient, higher is better) and uncertainty calibration (Expected
Calibration Error, lower is better) for all configurations and ensembles on the test set, for both the full test set (34 shots) and
a common subset of test shots that contain all features (15 shots).
0.2
0.0
0.2
6
4
2
0
TCV #76304 confinement state detection
L
D
~~H~~
confidence
<u>PDCIII</u>
Manual
validation
0.2 0.4 0.6 0.8 1.0
Time (s)
7.5
5.0
2.5
0.0
TCV #77089 confinement state detection
L
D
~~H~~
confidence
<u>PDCIII</u>
0.2 0.4 0.6 0.8
Time (s)
0.0
0.2
0.4
0.6
Manual
validation
Figure D.1: Two examples of prediction results in a negative triangularity scenario. The ensemble accurately predicts
L-mode with high confidence, even in a non-standard magnetic configuration not commonly present in the dataset. We also
note the presence of fringe jumps [53] in the interferometer signal in #76304: the ensembling approach effectively mitigates
sensitivity to the corrupted signal.