Next Article in Journal
Molecularly Imprinted Polymers/Metal–Organic Framework (MIL-53) for Fluorescent Sensing of Ciprofloxacin in Water
Previous Article in Journal
Active Simultaneous Localization and Mapping Method Based on Model Prediction
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Proceeding Paper

Real-Time Hardware Identification of Complex Dynamical Plant by Artificial Neural Network Based on Experimentally Processed Data by Smart Technologies †

by
Valerii I. Kruzhkov
1,2,*,
Yuri V. Mitrishkin
1,2 and
Eugenia A. Pavlova
1
1
V.A. Trapeznikov Institute of Control Science of RAS, Moscow 117997, Russia
2
Faculty of Physics, M. V. Lomonosov Moscow State University, Moscow 119991, Russia
*
Author to whom correspondence should be addressed.
Presented at the 15th International Conference “Intelligent Systems” (INTELS’22), Moscow, Russia, 14–16 December 2022.
Eng. Proc. 2023, 33(1), 17; https://doi.org/10.3390/engproc2023033017
Published: 13 June 2023
(This article belongs to the Proceedings of 15th International Conference “Intelligent Systems” (INTELS’22))

Abstract

:
Artificial neural networks with different structures are used for identification of complex dynamic plant with distributed parameters. The plant is a high-temperature plasma in the spherical Globus-M2 tokamak. Experimental data from it were processed by plasma reconstruction code based on Picard iterations, namely, the Flux-Current Distribution Identification (FCDI) code. This represents smart technology employed to obtain distributed plasma parameters by minimizing the difference between measured and reconstructed signals. An artificial neural network was then applied to identify the data obtained by the FCDI code on the hardware as a real-time testbed realized on a Speedgoat computer. The aim of this repeated identification is to increase the operational response speed in real time in the closed-loop control system of the plasma shape.

1. Introduction

An artificial neural network is a powerful and universal algorithm of identification and approximation. It can be used to predict parameters of a complex dynamical plants under control. The advantages of neural network models include low computational complexity and wide possibilies of hardware implementation. From this perspective, it is especially beneficial to employ neural networks with a small number of neurons.
In tokamak experiments, plasma parameters cannot be directly measured because of the high temperature plasma that is able to disable diagnostics. The simplest and most widely used method to detect the boundary and integral parameters of the plasma is the use of magnetic sensors which measure the changes in magnetic field and flux outside the plasma, but within the region of the magnetic field produced by the plasma. The plasma shape is to be identified from the signals of the tokamak diagnostic system. This inverse problem is known as the plasma equilibrium reconstruction problem [1,2]. The FCDI algorithm was developed for plasma equilibrium reconstruction in the Globus-M2 tokamak and uses the Picard iteration approach [3]. The FCDI code is able to obtain the plasma shape offline after cessation of experiment and cannot be used online because of high computational complexity and high task execution time. For real-time use, it is necessary to achieve identification of the FCDI code via a fast model.
There are different approximation methods of a plasma reconstruction algorithm [4]. Neural networks were used for plasma reconstruction in COMPASS tokamak (UK) [5], ASDEX-Upgrade (Germany) [6], D-IIID (USA) [7], and models of ITER [8]. The EFIT reconstruction code was approximated through neural networks by researchers in [9]. In these works, fully connected neural networks with different layer numbers, activation functions, layers sizes were employed.
An artificial neural network was used for identification of a reconstruction algorithm for Globus-M2 in [4,10]. In [10], a neural network was used for identification of moving filaments of the plasma reconstruction approach. In [4], several methods of FCDI algorithm identification were considered including artificial neural networks. The present work offers further development in the use of artificial neural networks for plasma shape prediction in the Globus-M2 tokamak. Neural network structure, optimization of hyperparameters and real-time hardware implementation are considered.
A real-time imitation platform was constructed for working out algorithms of tokamaks plasma control [11]. It is composed of two Speedgoat Performance computers including digital-to-analog and analog-to-digital converters connected by analog feedback. The first computer models the controller with a plasma reconstruction algorithm; the second computer models the tokamak with plasma and actuators. Such an approach provides several opportunities for digital control systems development. In particular, the imitation platform allows us to measure the working time required of the plasma reconstruction algorithm for plasma shape calculation. Calculation of TET of the Globus-M2 plasma shape control system with a plasma reconstruction algorithm on a Speedgaot computer gives less than 100 μ s. Consequently, the time for plasma shape calculation should be about 10 μ s.

2. Experimental Signals

This paper deals with the spherical Globus-M2 tokamak (Ioffe Institute, Saint-Petersburg, Russia) [12]. The basic parameters of this device are as follows: major radius R = 0.36 m, minor radius a = 0.24 m, aspect ratio R/a = 1.5, toroidal magnetic field, B t max = 1 T, plasma current 0.5 MA, impulse duration less than 0.7 s. Plasma confinement and control are provided by 8 poloidal field coils: horizontal field coil, vertical field coil, central solenoid, 4 poloidal field coils and a correcting coil. Plasma diagnostics consists of measurements of plasma current and 24 magnetic fluxes loops.
A plasma discharge consists of several phases. The phase when plasma is present inside the vacuum vessel and is not in contact with the inner walls is known as the diverter phase. In the Globus-M2 tokamak, a duration of the diverter phase is about 30 ms. For improving plasma confinement and control, it is necessary to use feedback control of the plasma shape. The plasma shape is determined at 6 points on a separatrix. The separatrix is the largest closed equal line of magnetic flux in Figure 1. In this paper, time series from 51 Globus-M2 discharges were processed. The FCDI algorithm was used to obtain the plasma shape in these discharges on the diverter phase. An example from the experimental data can be seen in Figure 2. The time step of the experimental data is 1 ms.

3. Artificial Neural Networks

The simplest type of artificial neural network is a single layer perceptron [13]. The signal from inputs multiplied by weights, summarized with bias, and converted by a nonlinear activation function is written as follows:
o u t p u t = a c t i v a t i o n ( W · i n p u t + b ) ,

3.1. Fully Connected Feedforward Neural Networks

An artificial neural network consisting of a set of fully connected layers is called a fully connected feedforward neural network [14]. In these neural networks, the layers are connected consequentially without loops (Figure 3). Values of x i are referred to as hidden layers.
x 1 = a c t i v a t i o n 1 ( W 1 · i n p u t + b 1 ) , x 2 = a c t i v a t i o n 2 ( W 2 · x 1 + b 2 ) , x n 1 = a c t i v a t i o n n 1 ( W n 1 · x n 2 + b n 1 ) , o u t p u t N N = W n · x n 1 + b n ;
Regarding the identification of the FCDI algorithm, the neural network has 33 input signals (8 coil currents, plasma current and 24 magnetic fluxes) and 6 output signals (2 strike point coordinates and 4 gaps between the plasma separatrix and the vacuum vessel). In general cases, the sizes the of hidden layers differ, and in the case of the FCDI code identification neural networks with hidden layers of the same size s were considered
W 1 R 33 × s , W 2 , , W n 1 R s × s , W n R s × 6 ,
b 1 , , b n 1 R s , b n R 6 .
An activation function is a nonlinear function that is needed for separating different hidden layers. In general, activation functions in various layers can differ. In the case of FCDI identification, a neural network with different activation functions but the same in all layers was considered. These are ReLU, LeakyReLU, ELU, Sigmoid, LogSigmoid, Tanh. Values of n and s and type of the activation function are called hyperparameters of the neural network (Figure 4). It is necessary to obtain optimal values of hyperparameters.
R e L U ( x ) = 0 , x < 0 x , x 0 , L e a k y R e L U ( x ) = 0.01 x , x < 0 x , x 0 , E L U ( x ) = e x 1 , x < 0 x , x 0 , S i g m o i d ( x ) = 1 1 + e x , L o g S i g m o i d ( x ) = log 1 1 + e x , T a n h ( x ) = t a n h ( x ) = e x e x e x + e x .
Training of the neural network involves finding values of weights W i and biases b i to obtain minimum of the loss-function between a real output signal and a signal predicted by the neural network. In case of FCDI identification, the MSE (Mean Square Error) loss is used. This is a multi-parameter non-linear optimization problem. The most widely used algorithm for training artificial neural networks is backpropagation with a gradient method [15]. The main idea rests in calculation of the gradient of the loss function with respect to weights from output to input. A gradient descent with backpropagation does not guarantee finding the global minimum of the loss function, but only a local minimum. For minimizing this problem, a stochastic gradient method with momentum is used. Furthermore, normalization of signals was made to improve performance of the backpropagation algorithm. Training of the neural network for the FCDI identification was achieved using the Adam [16] algorithm in PyTorch. The experimental data were divided into two parts: 46 training shots and 5 testing shots. Thus, the size of training data is 1795 points and the size of the test data is 145 points. Results are shown in Figure 5.
l o s s ( o u t p u t N N , o u t p u t F C D I ) W i , b i min ,
l o s s ( x , y ) = M S E ( x , y ) = i = 1 N ( x i y i ) 2 / N .

3.2. Recurrent Neural Networks

The feedforward neural network only uses a current input signal for calculation of the output signal. In the case of dynamic system identification, it could be useful to apply values from previous time moments. Recurrent neural networks use an additional hidden layer h. The values of the hidden layer h t 1 on the time step t 1 uses for calculation next step h t . Accuracy of RNN in dependence of hyperparameters is shown in Figure 6.
h t = a c t i v a t i o n ( W 1 · i n p u t + W h · h t 1 + b 1 ) , o u t p u t = W 2 · h t + b 2 ; W 1 R 33 × s , W 2 R s × 6 , W h R s × s , b 1 R s , b 2 R 6 .

3.3. Implementation of Neural Network Models in Real-Time Hardware

The imitation platform with Speedgoat computers is based on a SimulinkRT operation system. Real-time test bed for plasma control in tokamaks consists of two Speedgoat performance real-time target machines that are connected in feedback: one computer plays the role of the controlled plant model and the other one acts as the MIMO controller. PyTorch models were transferred to Matlab with the help of SciPy library. The neural networks with different structures were testified in real-time regime (Figure 7). Each neuron is connected with all neurons of adjacent layers. Because of this, the computation complexity of one layer of the neural network is proportional to the square of the layer size.
T E T ( n , s ) = a · n · s 2 + b , a = 7.33 × 10 10 s , b = 1.79 × 10 6 s
Plasma shape control in Globus-M2 requires plasma-reconstruction works in about 10 μ s. Consequently, for real-time usage neural networks containing 100–150 neurons are applicable.

4. Conclusions

The artificial neural network model of the FCDI plasma reconstruction code was obtained along with an optimal structure and hyperparameters. The optimal model for FCDI algorithm identification is a fully connected feedforward neural network with one hidden layer and LeakyReLU activation function. Modeling on the imitation platform showed the possibility of using the neural network model for real-time high-performance control systems, with results demonstrating a Task Execution Time of 4.4 μ s and a Mean Square Error of 3.4 × 10 5 m 2 .

Author Contributions

Conceptualization, Y.V.M.; methodology, Y.V.M.; funding acquisition, Y.V.M.; software, V.I.K.; supervision, Y.V.M.; validation, V.I.K.; visualization, V.I.K. and E.A.P.; writing—original draft preparation, V.I.K., Y.V.M. and E.A.P.; writing—review and editing, Y.V.M. and E.A.P. All authors have read and agreed to the published version of the manuscript.

Funding

This research was sponsored by the Russian Science Foundation (RSF), Grant No. 21-79-20180.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data used in this paper are not currently publicly accessible.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Mitrishkin, Y.V.; Korenev, P.S.; Prokhorov, A.A.; Kartsev, N.M.; Patrov, M.I. Plasma control in tokamaks. Part 1. Controlled thermonuclear fusion problem. Tokamaks. Components of control systems. Adv. Syst. Sci. Appl. 2018, 18, 26–52. [Google Scholar] [CrossRef]
  2. Mitrishkin, Y.V.; Kartsev, N.M.; Kuznetsov, E.A.; Korostelev, A.Y. Metodi i Sistemi Magnitnogo Upravleniya Plazmoi vs. Tokamakakh [Methods and Systems of Plasma Magnetic Control in Tokamaks]; KRASAND: Moscow, Russia, 2020. (In Russian) [Google Scholar]
  3. Korenev, P.S.; Mitrishkin, Y.V.; Patrov, M.I. Rekonstruktsiya ravnovesnogo raspredeleniya parametrov plasmi tokamaka po vneshnim magnitnim izmereniyam i postroyeniye lineynikh plazmennikh modeley [Reconstruction of equilibrium distribution of plasma parameters on the base of external magnetic measurements and construction of plasma linear models]. Mechatron. Autom. Control 2016, 17, 254–265. (In Russian) [Google Scholar]
  4. Mitrishkin Yuri, V.; Korenev Pavel, S.; Konkov Artem, E.; Kruzhkov Valerii, I.; Ovsyannikov Nicolai, E. New Identification Approach and Methods for Plasma Equilibrium Reconstruction in D-Shaped Tokamaks. Mathematics 2022, 10, 40. [Google Scholar] [CrossRef]
  5. Bishop, C.M.; Haynes, P.S.; Smith, M.E.U.; Todd, T.N.; Trotman, D.L. Real-Time Control of a Tokamak Plasma Using Neural Networks. Neural Comput. 1995, 7, 206–217. [Google Scholar] [CrossRef]
  6. Coccorese, E.; Morabito, C.; Martone, R. Identification of noncircular plasma equilibria using a neural network approach. Nucl. Fusion 1994, 34, 1349–1363. [Google Scholar] [CrossRef]
  7. Lister, J.B.; Schnurrenberger, H. Fast non-linear extraction of plasma equilibrium parameters using a neural network mapping. Nucl. Fusion 1991, 31, 1291–1300. [Google Scholar] [CrossRef] [Green Version]
  8. Albanese, R.; Coccorese, E.; Gruber, O.; Martone, R.; McCarthy, P.; Morabito, F.C. Identification of Plasma Equilibria in ITER from Magnetic Measurements Via Functional Parameterization and Neural Networks. Fusion Technol. 1996, 30, 219–236. [Google Scholar] [CrossRef]
  9. Joung, S.; Kim, J.; Kwak, S.; Bak, J.G.; Lee, S.; Han, H.; Ghim, Y. Deep neural network Grad-Shafranov solver constrained with measured magnetic signals. Nucl. Fusion 2019, 60, 016034. [Google Scholar] [CrossRef] [Green Version]
  10. Prokhorov, A.; Mitrishkin, Y.; Korenev, P.; Patrov, M. The Plasma Shape Control System in the Tokamak with the Neural Network as a Plasma Equilibrium Reconstruction Algorithm; Elsevier Ltd.: London, UK, 2020; pp. 857–862. [Google Scholar] [CrossRef]
  11. Mitrishkin, Y.V. Plasma magnetic control systems in D-shaped tokamaks and imitation digital computer platform in real time for controlling plasma current and shape. Adv. Syst. Sci. Appl. Int. Inst. Gen. Syst. Stud. 2022, 22, 1–15. [Google Scholar]
  12. Minaev, V.B.; Gusev, V.K.; Sakharov, N.V.; Varfolomeev, V.I.; Bakharev, N.N.; Belyakov, V.A.; Bondarchuk, E.N.; Brunkov, P.N.; Chernyshev, F.V.; Davydenko, V.I.; et al. Spherical tokamak Globus-M2: Design, integration, construction. Nucl. Fusion 2017, 57, 066047. [Google Scholar] [CrossRef]
  13. Rosenblatt, F. The perceptron: A probabilistic model for information storage and organization in the brain. Psychol. Rev. 1958, 65, 386. [Google Scholar] [CrossRef] [Green Version]
  14. Schmidhuber, J. Deep learning in neural networks: An overview. Neural Netw. Off. J. Int. Neural Netw. Soc. 2015, 61, 85–117. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  15. Goodfellow, I.; Bengio, Y.; Courville, A. Deep learning. Genet. Program. Evolvable Mach. 2018, 19, 305–307. [Google Scholar] [CrossRef] [Green Version]
  16. Kingma, D.; Ba, J. Adam: A Method for Stochastic Optimization. In Proceedings of the International Conference on Learning Representations, Banff, AB, Canada, 14–16 April 2014. [Google Scholar]
Figure 1. (a) Globus-M2 tokamak (b) Vertical cross-section with poloidal system, diagnostic probes (red dots) and points on separatrix (g1–g6).
Figure 1. (a) Globus-M2 tokamak (b) Vertical cross-section with poloidal system, diagnostic probes (red dots) and points on separatrix (g1–g6).
Engproc 33 00017 g001
Figure 2. Experimental signals from shot #37255 and Gaps reconstructed by the FCDI algorithm at a divertor phase of the plasma discharge.
Figure 2. Experimental signals from shot #37255 and Gaps reconstructed by the FCDI algorithm at a divertor phase of the plasma discharge.
Engproc 33 00017 g002
Figure 3. Structure of the fully connected feedforward neural network containing two hidden layers at a size of s. Input size is k, output size is m.
Figure 3. Structure of the fully connected feedforward neural network containing two hidden layers at a size of s. Input size is k, output size is m.
Engproc 33 00017 g003
Figure 4. Dependency of accuracy on hyperparameter values of the fully connected feedforward neural network. Accuracy is measured on test data.
Figure 4. Dependency of accuracy on hyperparameter values of the fully connected feedforward neural network. Accuracy is measured on test data.
Engproc 33 00017 g004
Figure 5. Results of the FCDI identification by the fully connected feedforward neural network with one hidden layer of the size of 100 neurons and the LeakyReLU activation function. In total, 5 test signals from Globus-M2 shots #37336, #37338, #37702, #37712 and #37320 are shown.
Figure 5. Results of the FCDI identification by the fully connected feedforward neural network with one hidden layer of the size of 100 neurons and the LeakyReLU activation function. In total, 5 test signals from Globus-M2 shots #37336, #37338, #37702, #37712 and #37320 are shown.
Engproc 33 00017 g005
Figure 6. Dependency of accuracy on hyperparameter values of the recurrent neural network. Accuracy is measured on test data.
Figure 6. Dependency of accuracy on hyperparameter values of the recurrent neural network. Accuracy is measured on test data.
Engproc 33 00017 g006
Figure 7. Dependency of Task Execution Time (TET) on number of neurons.
Figure 7. Dependency of Task Execution Time (TET) on number of neurons.
Engproc 33 00017 g007
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Kruzhkov, V.I.; Mitrishkin, Y.V.; Pavlova, E.A. Real-Time Hardware Identification of Complex Dynamical Plant by Artificial Neural Network Based on Experimentally Processed Data by Smart Technologies. Eng. Proc. 2023, 33, 17. https://doi.org/10.3390/engproc2023033017

AMA Style

Kruzhkov VI, Mitrishkin YV, Pavlova EA. Real-Time Hardware Identification of Complex Dynamical Plant by Artificial Neural Network Based on Experimentally Processed Data by Smart Technologies. Engineering Proceedings. 2023; 33(1):17. https://doi.org/10.3390/engproc2023033017

Chicago/Turabian Style

Kruzhkov, Valerii I., Yuri V. Mitrishkin, and Eugenia A. Pavlova. 2023. "Real-Time Hardware Identification of Complex Dynamical Plant by Artificial Neural Network Based on Experimentally Processed Data by Smart Technologies" Engineering Proceedings 33, no. 1: 17. https://doi.org/10.3390/engproc2023033017

Article Metrics

Back to TopTop