Robust Confinement State Classification with Uncertainty Quantification through Ensembled Data-Driven Methods

Yoeri Poels, Cristina Venturini, Alessandro Pau, Olivier Sauter, Vlado Menkovski, the Tcv team

TL;DR

This paper introduces a robust, ensembled data-driven framework to automatically classify plasma confinement states (L-mode, H-mode, and dithering) in the TCV tokamak. By combining dynamic neural networks and static decision trees across various diagnostic feature sets, the method provides highly accurate predictions alongside well-calibrated uncertainty estimates, maintaining reliability even when input signals are missing or corrupted.

What Problem Does This Paper Address?

Achieving commercial nuclear fusion in tokamaks relies heavily on maintaining a high-energy confinement regime known as H-mode. Transitioning from the standard low-confinement L-mode to H-mode drastically improves plasma performance, but the boundary between these states—and the rapid, oscillatory intermediate phase known as Dithering (D)—is notoriously difficult to map.

Currently, confinement states are labeled manually by human experts inspecting diagnostic signals post-shot. This manual process is slow and unscalable. While machine learning has been used to automate this task, existing models typically suffer from two fatal flaws: they only provide "point estimates" (predictions without a measure of confidence), and they crash or misbehave when real-world sensors fail or provide corrupted data. This paper tackles both challenges simultaneously by introducing automated classification backed by uncertainty quantification (UQ) and sensor-failure robustness.

Methods

The authors implement a hierarchical ensemble strategy that varies across two main axes: model architecture and input features.

  • The Model Axis (Complementary Biases): The framework combines two distinct machine learning approaches to balance strengths and weaknesses:
  • Dynamic Formulation (FNOLSTM): A deep learning model combining a Fourier Neural Operator (FNO)—to extract spectral features from short time windows—with a Long Short-Term Memory (LSTM) network to capture long-term temporal dynamics.
  • Static Formulation (GBDT): Gradient-Boosted Decision Trees (via XGBoost) that evaluate individual timeslices independently. GBDTs excel with tabular data and can natively handle missing values by learning default routing paths when a sensor drops out.
  • The Feature Axis (Domain Isolation): Instead of feeding all 43 available plasma signals into a single model, the authors group features into distinct physical domains (e.g., magnetics, emissions, shaping, density). Individual models are trained only on specific subsets.

Predictions are combined in a bottom-up ensembling pipeline. Individual models are calibrated using temperature scaling to ensure their probability outputs represent true physical confidence, and are then linearly combined based on their historical performance.

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).

Datasets

The authors introduce and publicly release a newly curated benchmark: the TCV Confinement State Database.

  • Composition: It contains 302 fully labeled discharges from the Tokamak à Configuration Variable (TCV), spanning over two decades of experiments (2003–2024).
  • Scale: The data is annotated at a high precision of 10 kHz, culminating in roughly 4.5 million individual timeslices. Cumulatively, the dataset represents 302.20 seconds of L-mode, 24.08 seconds of dithering, and 125.38 seconds of H-mode.
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.

Key Insights and Ideas

  • Diversity Defeats Sensor Failure: By isolating feature sets into distinct categories, the ensemble naturally resists sensor degradation. If an emission photodiode fails or saturates, the models trained purely on magnetic or density configurations step in to stabilize the prediction.
  • Static and Dynamic Synergy: The FNOLSTM is highly precise during smooth temporal evolutions but fragile against corrupted inputs. The GBDT is less precise during fast transitions but incredibly rugged against missing data. Ensembling them yields a system stronger than its parts.
  • Uncertainty as a Quality Filter: Because the uncertainty estimates are empirically calibrated, they can be used to threshold data. The authors demonstrate that filtering out low-confidence predictions allows ~75% of a massive unlabelled dataset to be processed with near-zero errors, drastically reducing human verification workloads.

Key Results

  • High Classification Accuracy: The full ensemble (ALLENSEMBLE) achieved an outstanding Cohen's kappa coefficient of 0.928 across the entire test set, rising to 0.952 on shots where all diagnostic signals were perfectly intact.
  • Excellent Calibration: The Expected Calibration Error (ECE) hovered around 0.02, meaning that when the model claims 80% confidence, it is statistically accurate 80% of the time.
  • Proven Robustness: In stress tests where a primary emission signal ($PD_{CIII}$) was completely discarded or artificially saturated, the dynamic models failed, but the full ensemble successfully recovered accuracy by automatically shifting weight to the GBDT models.

Limitations and Future Work

The primary weakness of the current framework is transition blur. While the ensemble reliably identifies the main phases of a plasma discharge, its predictive accuracy drops significantly within a narrow 0–5 ms window right at the boundary of a state transition.

To address this, the authors suggest future work should reformulate the boundary problem as a specialized change-point detection task rather than continuous classification. Additionally, adapting the framework for real-time plasma control loops will require transitioning from the current offline linear interpolation to causal, forward-looking interpolation methods.

Summary updated

BibTeX
@misc{poels2025robust,
  author = {Yoeri Poels and Cristina Venturini and Alessandro Pau and Olivier Sauter and Vlado Menkovski and the TCV team and the WPTE team},
  title = {{Robust Confinement State Classification with Uncertainty Quantification through Ensembled Data-Driven Methods}},
  year = {2025},
  eprint = {2502.17397},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2502.17397},
}
Figure