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

Yoeri Poels, Cristina Venturini, Alessandro Pau, Olivier Sauter, Vlado Menkovski, Tcv Team, The Wpte team

Introduction

Achieving high energy confinement is a primary objective in magnetic confinement fusion research. In devices like tokamaks, plasmas operate in distinct regimes, most notably the Low-confinement mode (L-mode) and the High-confinement mode (H-mode). The H-mode is particularly desirable due to its superior energy insulation, yet it is often separated from L-mode by complex, transitional "Dithering" (D) phases. Accurately identifying these states in real-time or during post-experiment analysis is critical for reactor control and understanding plasma physics.

Traditionally, state labeling has relied on manual expert inspection of diagnostic signals—a process that is time-consuming and difficult to scale. While machine learning (ML) has been applied to automate this task, existing models often suffer from two critical weaknesses: a lack of uncertainty quantification and extreme brittleness when faced with missing or corrupted sensor data. This paper presents a robust, ensembled ML approach designed to provide reliable classification with well-calibrated confidence scores, even in the event of diagnostic failure.

The TCV Confinement State Database

To train and validate the proposed models, the authors curated the TCV Confinement State Database. This dataset comprises 302 discharges from the Tokamak à Configuration Variable (TCV), spanning over two decades of experiments (2003–2024). The database includes approximately 4.5 million labeled timeslices at a 10 kHz resolution, covering 451 seconds of plasma dynamics.

To ensure high data quality and consistency, all labels (L, D, and H) were annotated by a single expert. This unified labeling approach mitigates the variance often found in multi-expert datasets. The database, which includes diverse plasma configurations such as negative triangularity and quasi-continuous exhaust (QCE) regimes, is being released publicly to serve as a benchmark for the fusion ML community.

Methodology: Hierarchical Ensembling

The core of the proposed solution is a hierarchical ensembling strategy that introduces diversity across two primary axes: model formulation and feature sets.

Axis 1: Model Formulations

The ensemble combines two fundamentally different mathematical approaches to capture both temporal dynamics and instantaneous snapshots:

  1. Dynamic Model (FNOLSTM): This neural network architecture utilizes a Fourier Neural Operator (FNO) to extract short-term frequency-domain patterns, coupled with a Long Short-Term Memory (LSTM) network to track long-term temporal evolution.
  2. Static Model (GBDT): A Gradient-Boosted Decision Tree model (XGBoost) processes isolated timeslices. GBDTs are highly effective at handling tabular data and are naturally robust to missing values.

Axis 2: Feature Sets

Rather than providing all sensor data to a single model, the authors partitioned the diagnostics into mutually exclusive groups, such as plasma shaping parameters, emissions, magnetics, and density. Sub-models were trained on these specific subsets. This "feature-blindness" ensures that if a specific diagnostic (e.g., a photodiode) fails or saturates, the ensemble can still rely on sub-models trained on independent data streams.

Results and Performance

The final ensemble was calibrated using temperature scaling to ensure that its probability outputs reflect true confidence levels. The model achieved a Cohen’s kappa coefficient of 0.928, indicating high predictive accuracy. Furthermore, the Expected Calibration Error (ECE) was remarkably low at 0.0205, meaning the model's self-reported confidence is highly representative of its actual accuracy.

Robustness and Generalization

The ensemble's robustness was tested by artificially removing or saturating key diagnostic signals, such as the $PD_{CIII}$ emission line. While a standard single-model approach would fail under these conditions, the ensemble successfully maintained accurate classification by leveraging unaffected sub-models. Additionally, the model demonstrated strong out-of-distribution (OOD) performance, generalizing well to unusual plasma shapes and regimes not heavily represented in the training set.

Uncertainty as a Physical Proxy

Interestingly, the model’s uncertainty quantification mirrors physical reality. During sudden, clear transitions, the model remains highly confident. However, during gradual power ramps or ambiguous marginal states, the model’s confidence naturally drops. This allows researchers to use the model as a data-filtering tool: by setting a high-confidence threshold, approximately 75% of a dataset can be auto-labeled with near-perfect precision, leaving only the most ambiguous cases for human review.

Discussion and Future Work

While the model performs exceptionally well overall, its accuracy decreases within very narrow time windows (<5 ms) surrounding a state transition. Future work aims to address this by integrating the ensemble with specialized change-point detection algorithms to pinpoint the exact millisecond of transition.

Additionally, the authors plan to explore transfer learning to apply the TCV-trained models to other devices like JET or ITER. While currently optimized for offline analysis, the computationally efficient nature of the architecture suggests it could be adapted for real-time plasma control, provided the data streams are processed using causal interpolation. This work represents a significant step toward autonomous, reliable, and fault-tolerant reactor operations.

Summary updated

BibTeX
@misc{poels2025robust,
  author = {Yoeri Poels and Cristina Venturini and Alessandro Pau and Olivier Sauter and Vlado Menkovski and 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