Low latency optical-based mode tracking with machine learning deployed on FPGAs on a tokamak

2312.00128

YC

0

Reddit

0

Published 6/21/2024 by Yumou Wei, Ryan F. Forelli, Chris Hansen, Jeffrey P. Levesque, Nhan Tran, Joshua C. Agar, Giuseppe Di Guglielmo, Michael E. Mauel, Gerald A. Navratil

ðŸ“ķ

Abstract

Active feedback control in magnetic confinement fusion devices is desirable to mitigate plasma instabilities and enable robust operation. Optical high-speed cameras provide a powerful, non-invasive diagnostic and can be suitable for these applications. In this study, we process fast camera data, at rates exceeding 100kfps, on $textit{in situ}$ Field Programmable Gate Array (FPGA) hardware to track magnetohydrodynamic (MHD) mode evolution and generate control signals in real-time. Our system utilizes a convolutional neural network (CNN) model which predicts the $n$=1 MHD mode amplitude and phase using camera images with better accuracy than other tested non-deep-learning-based methods. By implementing this model directly within the standard FPGA readout hardware of the high-speed camera diagnostic, our mode tracking system achieves a total trigger-to-output latency of 17.6$mu$s and a throughput of up to 120kfps. This study at the High Beta Tokamak-Extended Pulse (HBT-EP) experiment demonstrates an FPGA-based high-speed camera data acquisition and processing system, enabling application in real-time machine-learning-based tokamak diagnostic and control as well as potential applications in other scientific domains.

Create account to get full access

or

If you already have an account, we'll log you in

Overview

  • Active feedback control is desirable in magnetic confinement fusion devices to mitigate plasma instabilities and enable robust operation.
  • High-speed cameras can provide a powerful, non-invasive diagnostic for these applications.
  • This study processes fast camera data at rates exceeding 100,000 frames per second (kfps) on Field Programmable Gate Array (FPGA) hardware to track magnetohydrodynamic (MHD) mode evolution and generate control signals in real-time.
  • The system uses a convolutional neural network (CNN) model to predict the n=1 MHD mode amplitude and phase with high accuracy.
  • By implementing the model directly on the FPGA hardware, the system achieves a low latency of 17.6 microseconds and a throughput of up to 120 kfps.

Plain English Explanation

Fusion power is a promising source of clean energy, but it requires carefully controlling the behavior of extremely hot, charged gas called plasma. Magnetic confinement fusion devices use strong magnetic fields to contain the plasma, but the plasma can still become unstable and disrupt the process.

To address this, researchers want to use real-time feedback control to monitor the plasma and make adjustments to stabilize it. High-speed cameras can provide detailed, non-invasive measurements of the plasma behavior that could be used for this feedback control.

In this study, the researchers developed a system that can analyze the high-speed camera data very quickly, on the order of 100,000 frames per second. They use a machine learning model to identify specific patterns in the camera images that indicate the presence and behavior of plasma instabilities.

By implementing this model directly on the camera's FPGA hardware, the system can detect these instabilities and generate control signals to stabilize the plasma in near real-time, with a very low delay of only about 18 microseconds. This low-latency processing is crucial for effective feedback control of the fusion process.

The researchers demonstrated this system on a fusion experiment called the High Beta Tokamak-Extended Pulse (HBT-EP), showing its potential to enable real-time machine learning-based diagnostics and control for future fusion reactors.

Technical Explanation

The researchers used a high-speed camera diagnostic system capable of capturing video at over 100 kfps to monitor the plasma in the HBT-EP fusion experiment. They developed a convolutional neural network (CNN) model that could accurately predict the amplitude and phase of the n=1 magnetohydrodynamic (MHD) mode, a key instability, from the camera images.

To enable real-time processing and control, the researchers implemented the CNN model directly on the FPGA hardware associated with the high-speed camera system. This allowed them to achieve a total trigger-to-output latency of only 17.6 Ξs and a throughput of up to 120 kfps.

The high-speed, low-latency processing of the camera data, combined with the accurate mode prediction from the CNN model, allows this system to track MHD mode evolution and generate feedback control signals in real-time. This could enable active feedback control to mitigate plasma instabilities and improve the reliability of magnetic confinement fusion devices.

Critical Analysis

The researchers acknowledge that their system was demonstrated on a relatively small fusion experiment, the HBT-EP, and further testing would be needed to validate its performance on larger, more complex fusion devices. The paper also does not provide detailed information about the training and evaluation of the CNN model, which would be important for assessing its robustness and generalization capability.

Additionally, the researchers do not discuss potential issues around the reliability and resilience of the FPGA-based system, such as the risk of hardware failures or the challenges of maintaining and updating the embedded software over the lifetime of a fusion reactor. These factors could be important considerations for deploying such a system in an operational fusion power plant.

Overall, the research demonstrates an impressive technical achievement in leveraging high-speed camera diagnostics and machine learning for real-time plasma monitoring and control. However, further work may be needed to fully validate the approach and address potential challenges in transitioning it to large-scale, mission-critical fusion energy applications.

Conclusion

This study showcases the potential of using high-speed cameras and machine learning on embedded FPGA hardware to enable real-time diagnostic and control capabilities for magnetic confinement fusion devices. By achieving low-latency, high-throughput processing of the camera data, the researchers have developed a system that could significantly improve the reliability and stability of future fusion reactors, a crucial step towards realizing the promise of fusion power as a clean, sustainable energy source.



This summary was produced with help from an AI and may contain inaccuracies - check out the links to read the original source documents!

Related Papers

Embedded FPGA Developments in 130nm and 28nm CMOS for Machine Learning in Particle Detector Readout

Embedded FPGA Developments in 130nm and 28nm CMOS for Machine Learning in Particle Detector Readout

Julia Gonski, Aseem Gupta, Haoyi Jia, Hyunjoon Kim, Lorenzo Rota, Larry Ruckman, Angelo Dragone, Ryan Herbst

YC

0

Reddit

0

Embedded field programmable gate array (eFPGA) technology allows the implementation of reconfigurable logic within the design of an application-specific integrated circuit (ASIC). This approach offers the low power and efficiency of an ASIC along with the ease of FPGA configuration, particularly beneficial for the use case of machine learning in the data pipeline of next-generation collider experiments. An open-source framework called FABulous was used to design eFPGAs using 130 nm and 28 nm CMOS technology nodes, which were subsequently fabricated and verified through testing. The capability of an eFPGA to act as a front-end readout chip was assessed using simulation of high energy particles passing through a silicon pixel sensor. A machine learning-based classifier, designed for reduction of sensor data at the source, was synthesized and configured onto the eFPGA. A successful proof-of-concept was demonstrated through reproduction of the expected algorithm result on the eFPGA with perfect accuracy. Further development of the eFPGA technology and its application to collider detector readout is discussed.

Read more

7/2/2024

ðŸ—Ģïļ

Photonic Neuromorphic Accelerators for Event-Based Imaging Flow Cytometry

Ioannis Tsilikas, Aris Tsirigotis, George Sarantoglou, Stavros Deligiannidis, Adonis Bogris, Christoph Posch, Gerd Van den Branden, Charis Mesaritakis

YC

0

Reddit

0

In this work, we present experimental results of a high-speed label-free imaging cytometry system that seamlessly merges the high-capturing rate and data sparsity of an event-based CMOS camera with lightweight photonic neuromorphic processing. This combination offers high classification accuracy and a massive reduction in the number of trainable parameters of the digital machine-learning back-end. The photonic neuromorphic accelerator is based on a hardware-friendly passive optical spectrum slicing technique that is able to extract meaningful features from the generated spike-trains. The experimental scenario comprises the discrimination of artificial polymethyl methacrylate calibrated beads, having different diameters, flowing at a mean speed of 0.01m/sec. Classification accuracy, using only lightweight, digital machine-learning schemes has topped at 98.2%. On the other hand, by experimentally pre-processing the raw spike data through the proposed photonic neuromorphic spectrum slicer we achieved an accuracy of 98.6%. This performance was accompanied by a reduction in the number of trainable parameters at the classification back-end by a factor ranging from 8 to 22, depending on the configuration of the digital neural network.

Read more

4/17/2024

🛠ïļ

High-performance real-world optical computing trained by in situ model-free optimization

Guangyuan Zhao, Xin Shu, Renjie Zhou

YC

0

Reddit

0

Optical computing systems provide high-speed and low-energy data processing but face deficiencies in computationally demanding training and simulation-to-reality gaps. We propose a gradient-based model-free optimization (G-MFO) method based on a Monte Carlo gradient estimation algorithm for computationally efficient in situ training of optical computing systems. This approach treats an optical computing system as a black box and back-propagates the loss directly to the optical computing weights' probability distributions, circumventing the need for a computationally heavy and biased system simulation. Our experiments on diffractive optical computing systems show that G-MFO outperforms hybrid training on the MNIST and FMNIST datasets. Furthermore, we demonstrate image-free and high-speed classification of cells from their marker-free phase maps. Our method's model-free and high-performance nature, combined with its low demand for computational resources, paves the way for accelerating the transition of optical computing from laboratory demonstrations to practical, real-world applications.

Read more

4/4/2024

🏷ïļ

Investigating Resource-efficient Neutron/Gamma Classification ML Models Targeting eFPGAs

Jyothisraj Johnson, Billy Boxer, Tarun Prakash, Carl Grace, Peter Sorensen, Mani Tripathi

YC

0

Reddit

0

There has been considerable interest and resulting progress in implementing machine learning (ML) models in hardware over the last several years from the particle and nuclear physics communities. A big driver has been the release of the Python package, hls4ml, which has enabled porting models specified and trained using Python ML libraries to register transfer level (RTL) code. So far, the primary end targets have been commercial FPGAs or synthesized custom blocks on ASICs. However, recent developments in open-source embedded FPGA (eFPGA) frameworks now provide an alternate, more flexible pathway for implementing ML models in hardware. These customized eFPGA fabrics can be integrated as part of an overall chip design. In general, the decision between a fully custom, eFPGA, or commercial FPGA ML implementation will depend on the details of the end-use application. In this work, we explored the parameter space for eFPGA implementations of fully-connected neural network (fcNN) and boosted decision tree (BDT) models using the task of neutron/gamma classification with a specific focus on resource efficiency. We used data collected using an AmBe sealed source incident on Stilbene, which was optically coupled to an OnSemi J-series SiPM to generate training and test data for this study. We investigated relevant input features and the effects of bit-resolution and sampling rate as well as trade-offs in hyperparameters for both ML architectures while tracking total resource usage. The performance metric used to track model performance was the calculated neutron efficiency at a gamma leakage of 10$^{-3}$. The results of the study will be used to aid the specification of an eFPGA fabric, which will be integrated as part of a test chip.

Read more

4/24/2024