Detection of Thermal Events by Semi-Supervised Learning for Tokamak First Wall Safety

Christian Staron, Hervé Le Borgne, Raphaël Mitteau, Erwan Grelier, Nicolas AllezardIEEE Trans. Instrumentation & Measurement 2024 · OpenReview

TL;DR

This paper introduces a semi-supervised learning (SSL) approach to automatically detect thermal events on the inner walls of tokamaks, a critical task for machine safety. By leveraging a vast amount of unlabeled infrared data alongside a small set of labeled examples, their method significantly reduces the need for manual annotation and effectively adapts to subtle changes between experimental campaigns, achieving near fully supervised performance with substantially less labeled data.

What Problem Does This Paper Address?

Tokamaks, experimental fusion reactors, generate enormous amounts of infrared (IR) imaging data to monitor their internal walls for thermal events. These events, if left unchecked, can cause significant damage to the machine. Automating the detection of these events using AI is highly desirable, but traditional supervised learning methods require massive, meticulously labeled datasets. Creating these datasets is a time-consuming and expensive process, prone to human annotator bias and subjectivity. Furthermore, subtle changes in the tokamak's configuration between experimental campaigns can drastically degrade the performance of models trained on previous campaigns, even if these changes are imperceptible to human experts. This paper addresses the challenge of building robust thermal event detection systems that require minimal manual labeling and can adapt to evolving experimental conditions.

Methods

The core of this work is the application of Semi-Supervised Learning (SSL), specifically using a student-teacher architecture inspired by the SoftTeacher framework. The process involves two main steps:

  1. Burn-in Phase (Supervised Training): A base model (the "student") is initially trained on a small set of labeled IR images from the tokamak. This is a standard supervised learning phase.
  2. Pseudo-Labeling and Iterative Training: The trained student model is then used to predict labels (pseudo-labels) for a large dataset of unlabeled IR images. A "teacher" model, which is an exponential moving average (EMA) of the student model's weights, generates these pseudo-labels. The student model is then further trained using both the original labeled data and the pseudo-labeled data. This iterative process allows the model to learn from the vast amount of unlabeled data.

The authors also explore domain adaptation strategies, specifically comparing SSL with fine-tuning. They investigate two SSL scenarios: one where the model is trained from scratch on a new campaign's data, and another that combines fine-tuning with SSL to adapt a model from a previous campaign to a new one. Data augmentation techniques are carefully chosen to preserve the physical meaning of IR pixel values.

Datasets

The study utilizes data from the WEST tokamak, specifically infrared (IR) images captured during two distinct experimental campaigns:

  • Campaign A: Data collected between July and November 2019.
  • Campaign B: Data collected between November 2020 and January 2021.

Two annotated datasets, D¹ and D², were created from these campaigns. Both datasets contain images from both campaigns but were annotated at different times by the same expert, allowing for the study of inter-annotation session variations. The datasets are split into training and testing sets at the video film level to prevent data leakage. For experiments, a small fraction (1% for D¹ and 0.5% for D²) of the fully labeled dataset is used for the initial supervised training, with a significantly larger amount of unlabeled data used in the SSL phase.

Key Insights and Ideas

  • The "Domain Shift" Problem: Subtle changes in tokamak configurations between experimental campaigns, even if imperceptible to humans, drastically degrade the performance of supervised models. This highlights the need for adaptive learning methods.
  • SSL as a Solution to Data Scarcity and Bias: SSL effectively bridges the gap between the need for large labeled datasets in supervised learning and the practical limitations of manual annotation. It allows models to learn from abundant unlabeled data, mitigating the reliance on costly and potentially biased human labels.
  • SSL Outperforms Fine-Tuning for Adaptation: When adapting to a new experimental campaign, the proposed SSL approach demonstrates superior performance compared to traditional fine-tuning, especially when considering the amount of labeled data required.
  • Near Supervised Performance at a Fraction of the Cost: The SSL method achieves performance metrics (mAP) very close to those of fully supervised models trained on much larger datasets, but with a significantly reduced labeling effort (up to 70 times fewer annotations).

Key Results

  • The SSL approach increased the mean Average Precision (mAP) metric by over 6 percentage points on the smaller dataset (D¹) and over 4 percentage points on the larger dataset (D²) compared to baseline methods.
  • When adapting to a new campaign, SSL achieved performance gains of 3 to 10 percentage points over fine-tuning.
  • With a small amount of labeled data (less than 2% of the total), the SSL approach surpassed the fully supervised model on the later campaign's test set.
  • The combined approach of fine-tuning followed by SSL (method 2) proved to be a robust strategy for rapid campaign adaptation, achieving the best mAP values in several scenarios.

Limitations and Future Work

  • Burn-in Phase Requirement: The SSL approach includes an initial "burn-in" phase that requires training on data from both campaigns, which might make it less immediately attractive than fine-tuning for practical, real-time adaptation.
  • Future Work: The authors suggest extending this work to other lines of sight within the WEST tokamak and exploring its application to different fusion devices or the future International Thermonuclear Experimental Reactor (ITER). Further investigation into optimizing the SSL hyperparameters and exploring different SSL architectures could also be beneficial.

Summary updated

Abstract

This article explores a semi-supervised object detection approach to detect thermal events on the internal wall of tokamaks. A huge amount of data is produced during an experimental campaign by the infrared (IR) viewing systems used to monitor the inner thermal shields during machine operation. The amount of data to be processed and analyzed is such that protecting the first wall is an overwhelming job. Automatizing this job with artificial intelligence (AI) is an attractive solution, but AI requires large labeled datasets that are not readily available for tokamak walls. Semi-supervised learning (SSL) is a possible solution to being able to train deep-learning models with a small amount of labeled data and a large amount of unlabeled data. SSL is explored as a possible tool to rapidly adapt a model trained on an experimental campaign A of tokamak WEST to a new experimental campaign B by using labeled data from campaign A, a little labeled data from campaign B, and a lot of unlabeled data from campaign B. Model performance is evaluated on two labeled datasets and two methods including SSL. SSL increased the mAP metric by over 6% points on the first smaller-scale database and over 4% points on the second larger-scale dataset depending on the method employed.
BibTeX
@article{staron2024detection,
  author = {Christian Staron and Hervé Le Borgne and Raphaël Mitteau and Erwan Grelier and Nicolas Allezard},
  title = {{Detection of Thermal Events by Semi-Supervised Learning for Tokamak First Wall Safety}},
  journal = {IEEE Transactions on Instrumentation and Measurement},
  year = {2024},
  url = {https://openreview.net/forum?id=E1k3pLn0GW},
}
Figure