A configuration prediction system, method, device and medium for tokamak plasma

The configuration of the tokamak plasma is predicted through the data fusion module and the multi-head attention mechanism, which solves the problem of limited prediction performance in the existing technology and achieves more accurate and stable plasma configuration prediction.

CN118656803BActive Publication Date: 2024-10-22THE ENG & TECHN COLLEGE OF CHENGDU UNIV OF TECH +1
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411153466.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-21
Publication Date
2024-10-22
Estimated Expiration
2044-08-21

AI Technical Summary

Technical Problem

Existing deep learning methods are difficult to adapt to the complexity and large amount of data in tokamak plasma configuration prediction. Their prediction performance is limited and they cannot accurately capture the motion patterns of the plasma.

Method used

The data fusion module is used to fuse multiple time series data, and the relevant information in the data is captured through a multi-head attention mechanism, and combined with one-dimensional convolution layer and contrast layer, the prediction results of the plasma configuration sequence are generated.

Benefits of technology

It improves the accuracy and stability of plasma configuration prediction, reduces data noise and outliers, enhances the robustness of the model, and can more effectively control the plasma state in tokamak experiments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118656803B_ABST
    Figure CN118656803B_ABST
Patent Text Reader

Abstract

The present application proposes a configuration prediction system, method, device and medium for tokamak plasma, which relates to the field of magnetic confinement nuclear fusion. The system includes a data fusion module and an M‑TR module; wherein the data fusion module is used to fuse multiple input time series data to extract global information of multiple time series data and obtain fused time series data; the time series data includes the power supply voltage of the vertical field coil, the power supply voltage of the horizontal field coil, the loop current of the multi-level field coil and the ohmic field coil voltage. The M‑TR module is used to capture the correlation information of different positions in the fused time series data based on the multi-head attention mechanism, so as to generate the prediction result of the plasma configuration sequence according to the captured correlation information. This scheme can be used to accurately and effectively predict the configuration of tokamak plasma.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of magnetic confinement nuclear fusion, and in particular to a tokamak plasma configuration prediction system, method, device and medium. Background Art

[0002] In a Tokamak device, the configuration of plasma is crucial to the success of the experiment. The traditional method is to use the Maxwell equation model for calculation, but it is difficult to input a large amount of data. In order to deal with this problem, with the development of artificial intelligence technology, neural network models based on deep learning have gradually attracted attention.

[0003] However, plasma prediction has the characteristics of many variables, large amount of data and high complexity. In existing research, the main research content is just a simple reference to deep learning methods, and the neural network model for computer problems is difficult to adapt to complex and large-data plasma predictions in some aspects. Its prediction performance is limited and it still cannot predict the movement laws of plasma well. Summary of the invention

[0004] The purpose of the present application is to provide a tokamak plasma configuration prediction system, method, device and medium, which can accurately and effectively predict the configuration of tokamak plasma.

[0005] This application is implemented as follows:

[0006] In a first aspect, the present application provides a configuration prediction system for a tokamak plasma, comprising:

[0007] The data fusion module is used to fuse the input multiple time series data to extract the global information of the multiple time series data and obtain the fused time series data; the time series data includes the power supply voltage of the vertical field coil, the power supply voltage of the horizontal field coil, the loop current of the multi-level field coil and the ohmic field coil voltage. The M-TR module is used to capture the correlation information of different positions in the fused time series data based on the multi-head attention mechanism to generate the prediction result of the plasma configuration sequence according to the captured correlation information.

[0008] Further, based on the above scheme, the data fusion module includes: a sequence alignment layer, which is used to unify the length of multiple input time series data to unify them to a preset longest sequence length; a normalization layer, which is used to normalize the sequence values ​​corresponding to the multiple input time series data; a difference layer, which is used to calculate the difference between each time step and the previous time step of the multiple input time series data, and stabilize the multiple input time series data according to the calculation result; a one-dimensional convolution layer, which is used to use a one-dimensional convolution kernel to extract local features of the multiple time series data after length unification, normalization and stabilization, so as to obtain fused time series data in the form of a one-dimensional sequence.

[0009] Further, based on the above solution, the calculation formula of the difference layer includes: △ X t = X t - X t-1 , where △ X t is at the time step t The difference value at X t is at the time step t The original data points at X t-1 is at the time step t- The original data point at 1.

[0010] Further, based on the above scheme, the M-TR module includes contrast layering to restore the original trend of the data through anti-differential processing.

[0011] Further, based on the above solution, the calculation formula of the contrast layering includes: X t = X t-1 + △ X t ,in X t is at the time step t The original data points at X t-1 is at the time step t- The original data point at 1, △ X t is at the time step t The difference value at .

[0012] Further, based on the aforementioned scheme, the multi-head attention mechanism of the M-TR module includes extracting query vectors, key vectors and value vectors from the fused time series data, and obtaining the output of the attention mechanism by weighted summation based on the extraction results.

[0013] Further, based on the aforementioned scheme, the M-TR module adopts the GLU activation function as the activation function of the encoder / decoder intermediate layer to enhance the extraction and retention of long-term features of plasma configuration prediction.

[0014] In a second aspect, the present application provides a method for predicting the configuration of a tokamak plasma, which comprises the following steps:

[0015] Acquire multiple time series data; the time series data includes the power supply voltage of the vertical field coil, the power supply voltage of the horizontal field coil, the loop current of the multi-level field coil and the ohmic field coil voltage. Perform fusion processing on the multiple time series data to extract the global information of the multiple time series data and obtain fused time series data. Based on the multi-head attention mechanism, capture the correlation information of different positions in the fused time series data to generate the prediction result of the plasma configuration sequence according to the captured correlation information.

[0016] In a third aspect, the present application provides an electronic device, comprising a memory for storing one or more programs; a processor; when the one or more programs are executed by the processor, a method as described in any one of the second aspects is implemented.

[0017] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method as described in any one of the above-mentioned second aspects.

[0018] Compared with the prior art, the present invention has at least the following advantages or beneficial effects:

[0019] The present application proposes a configuration prediction system for tokamak plasma, which fuses multiple time series data through a data fusion module, so that the M-TR module can obtain more comprehensive and consistent data input. This helps the M-TR module to more accurately capture the associated information in the data, thereby improving the prediction accuracy of the plasma configuration sequence. Secondly, the data fusion module can process multiple data from different sensors and measuring devices and fuse them into consistent time series data. This data fusion process can reduce noise and outliers in the data and improve the reliability and stability of the data. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0021] Figure 1 This is a structural block diagram of an embodiment of a tokamak plasma configuration prediction system of the present application;

[0022] Figure 2 This is a structural block diagram of another embodiment of a tokamak plasma configuration prediction system of the present application;

[0023] Figure 3 This is a schematic diagram of the structure of the M-TR module in one embodiment of the present application;

[0024] Figure 4 A flowchart of an embodiment of a method for predicting the configuration of a tokamak plasma according to the present application;

[0025] Figure 5 A structural block diagram of an electronic device provided in an embodiment of the present application.

[0026] Icon: 201, processor; 202, memory; 203, communication interface. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various different configurations.

[0028] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application for which protection is sought, but merely represents selected embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present application.

[0029] In conjunction with the accompanying drawings, some embodiments of the present application are described in detail below. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.

[0030] Example 1

[0031] In the prediction of the configuration of tokamak plasma using a neural network model based on deep learning, Bin Yang et al. proposed to use deep learning methods to model the HL-2A plasma vertical displacement control system. The deep learning method can improve the modeling accuracy of the plasma vertical configuration control system, and proposed a new data-driven adaptive control algorithm that can effectively control the vertical configuration of plasma. Hailong Yan et al. proposed to identify the plasma boundary based on U-Net convolutional neural network, and fit the pixel coordinates of the boundary points with EFIT through the XGBoost model, and achieved a high reconstruction accuracy. This result is helpful for the reconstruction of the plasma boundary based on the visible light camera. Semin Joung's paper Bayesian neural network for plasma equilibria in the Korea Superconducting Tokamak Advanced Research proposed a reliable deep learning model concept that can present the probability distribution of fusion-grade plasma, and also incorporate plasma physics theory into the model. The paper Neural net modeling of equilibria in NSTX-U by JT Wai, MD Boyer and E.Kolemen developed two neural networks (NNs) related to equilibrium and shape control modeling as part of a suite of tools developed for the National Spherical Torus Experiment-Upgrade to rapidly predict, optimize and visualize plasma scenarios.Semin Joung, Y.-C. Ghim, Jaewook Kim's paper GS-DeepNet_mastering tokamak plasma equilibria with deep neural networks and the Grad-Shafranov equation. proposed the GS-DeepNet algorithm, which learns plasma equilibrium through unsupervised learning to achieve reliable plasma equilibrium. Other advances include the development of a Gaussian process Bayesian framework and the development of a three-dimensional perturbation equilibrium database using magnetohydrodynamic resistance spectroscopy feedback (MARS-F).

[0032] Looking at these prior arts, it can be found that plasma prediction has the characteristics of many variables, large amount of data, and high complexity. In existing research, the main research content is to simply quote the deep learning method, and the neural network model for computer problems is difficult to adapt to complex and large amount of data plasma prediction in some aspects. Therefore, in order to further improve the control effect of tokamak plasma, the embodiment of the present application provides a tokamak plasma configuration prediction system, which can realize the demand for accurate and effective prediction of the configuration of tokamak plasma.

[0033] See also Figure 1 The configuration prediction system of a tokamak plasma includes: a data fusion module for fusing a plurality of input time series data to extract global information of the plurality of time series data and obtain fused time series data; the time series data includes a power supply voltage of a vertical field coil, a power supply voltage of a horizontal field coil, a loop current of a multi-level field coil, and an ohmic field coil voltage. An M-TR module is used to capture the association information of different positions in the fused time series data based on a multi-head attention mechanism, so as to generate a prediction result of a plasma configuration sequence according to the captured association information.

[0034] The scheme of the present application mainly includes predicting the vertical configuration and the horizontal configuration. In the design of HL-2A, the power supply voltage Vv of the vertical field coil is mainly used to control the horizontal configuration, while the power supply voltage Vr of the horizontal field coil and the loop current ImpE2 of the multi-level field coil are mainly used to control the vertical configuration. In addition, the ohmic field coil voltage is also an important factor affecting the plasma configuration. Therefore, the time series data received by the data fusion module of the present application includes the power supply voltage of the vertical field coil, the power supply voltage of the horizontal field coil, the loop current of the multi-level field coil and the ohmic field coil voltage.

[0035] In the prediction of plasma configuration, the actual prediction will be affected by many factors, such as vertical field coils, horizontal field coils, and multi-level field coils. In order to comprehensively consider the impact of various modal factors on the prediction results, the data fusion module first receives multiple time series data from different sensors and measuring devices, including the supply voltage of the vertical field coil, the supply voltage of the horizontal field coil, the loop current of the multi-level field coil, and the ohmic field coil voltage. Then, the input multiple time series data are fused to extract the global information of these data. The fusion process may include data standardization, feature selection, time alignment and other steps to ensure the consistency and comparability of the data. Finally, the global information of the original multiple time series data will be integrated in the obtained fused time series data.

[0036] The M-TR module (MIMO-Transformer module) receives the fused time series data output by the data fusion module and captures the correlation information of different positions in the fused time series data based on the multi-head attention mechanism. The multi-head attention mechanism allows the model to focus on multiple related information at different positions at the same time, thereby more accurately capturing the intrinsic pattern of the data. Finally, based on the captured correlation information, the prediction results of the plasma configuration sequence are generated. These prediction results can be used to guide the plasma control in the tokamak experiment.

[0037] In summary, the data fusion module passes the fused time series data to the M-TR module, providing comprehensive and consistent data input for the M-TR module. The M-TR module uses the fused time series data provided by the data fusion module to capture the associated information in the data through the multi-head attention mechanism and generate the prediction results of the plasma configuration sequence. Among them, if the M-TR module finds anomalies or needs to adjust the model parameters during the prediction process, it can feedback relevant information to the data fusion module so that the data fusion module can adjust the fusion strategy or reprocess the data.

[0038] That is to say, by fusing multiple time series data through the data fusion module, the M-TR module can obtain more comprehensive and consistent data input. This helps the M-TR module to capture the associated information in the data more accurately, thereby improving the prediction accuracy of the plasma configuration sequence. Secondly, the data fusion module can process multiple data from different sensors and measurement devices and fuse them into consistent time series data. This data fusion process can reduce noise and outliers in the data and improve the reliability and stability of the data. Thereby enhancing the robustness of the M-TR model and enabling it to cope with complex and changing experimental environments. Thirdly, if the M-TR module finds anomalies or needs to adjust model parameters during the prediction process, it can feedback relevant information to the data fusion module. This helps the data fusion module to adjust the fusion strategy or reprocess the data according to the feedback information, thereby optimizing the performance of the entire prediction system. Finally, by accurately predicting the plasma configuration sequence, experimenters can more effectively control the plasma state in the tokamak experiment. This helps to reduce the uncertainty factors in the experiment and improve the efficiency and success rate of the experiment.

[0039] like Figure 2 As shown, in one implementation of the present application, the data fusion module includes: a sequence alignment layer, which is used to unify the length of multiple input time series data to unify them to a preset longest sequence length; a normalization layer, which is used to normalize the sequence values ​​corresponding to the multiple input time series data; a difference layer, which is used to calculate the difference between each time step and the previous time step of the multiple input time series data, and stabilize the multiple input time series data according to the calculation result; a one-dimensional convolution layer, which is used to use a one-dimensional convolution kernel to extract local features of the multiple time series data after length unification, normalization and stabilization, and obtain fused time series data in the form of a one-dimensional sequence (with uniform length and stable features).

[0040] For the sequence alignment layer, it unifies the length of multiple input time series data to ensure that all sequences have the same length. Usually, the preset longest sequence length is selected as a unified standard. This is because the sampling frequencies of different sensors or measuring devices may be different, resulting in different lengths of collected time series data. The sequence alignment layer ensures the consistency of the data and provides a basis for subsequent fusion processing. For example, a longest sequence length can be set in advance as a unified value, and other sequences that are less than the longest length can be padded with 0 at the end to make their length reach the preset sequence length.

[0041] For the normalization layer, by normalizing the sequence values ​​corresponding to the input multiple time series data, that is, converting data of different dimensions into the same dimension, the scale differences between the data can be eliminated. This will help improve the stability and generalization ability of the model, so that the model can better handle data of different dimensions. For example, the sigmoid function can be used to normalize the sequence values ​​so that their range is unified to between 0 and 1.

[0042] For the difference layer, the difference operation is performed on the input multiple time series data to calculate the difference between each time step and the previous time step. Based on these differences, the time series can be stabilized to reduce the noise and trend components in the data. That is, the difference operation helps to capture the change information in the time series data, while the stabilization process helps to reduce the non-stationary factors in the data and improve the quality of the data. Exemplarily, the calculation formula of the difference layer may include: X t = X t - X t-1 , where △ X t is at the time step t The difference value at X t is at the time step t The original data points at X t-1 is at the time step t- The original data point at 1. The above difference operation calculates the difference between each time step and the previous time step, which can help remove trends and seasonality and convert non-stationary data into stationary data, making it more suitable for series analysis and modeling.

[0043] For the one-dimensional convolution layer, a one-dimensional convolution kernel is used to extract local features from multiple time series data after length unification, normalization and stabilization. Through the convolution operation, the key information in the time series data can be extracted to form fused time series data in the form of a one-dimensional sequence. Among them, the one-dimensional convolution layer can capture the local features in the time series data and fuse them into a one-dimensional sequence that reflects the global information. This fused time series data provides a rich information basis for the subsequent M-TR module, which helps to improve the accuracy of plasma configuration prediction.

[0044] In summary, through sequence alignment, normalization, differentiation and stabilization processing, the data fusion module can significantly improve the quality of input time series data and reduce the influence of noise and non-stationary factors. Among them, the normalization process eliminates the scale difference between the data, so that the model can better process data of different dimensions, thereby improving the generalization ability of the model. The one-dimensional convolution layer can capture the local features in the time series data and fuse them into a one-dimensional sequence reflecting global information. This fused time series data provides a rich information basis for the subsequent M-TR module, which helps to improve the accuracy of plasma configuration prediction. In addition, through the effective processing of the data fusion module, the performance of the entire prediction system is optimized. More accurate data input and a richer information basis enable the M-TR module to more accurately predict the plasma configuration sequence, thereby improving the prediction performance and stability of the entire system.

[0045] Since the present application performs first-order difference on the plasma configuration sequence in the data fusion module, in order to ensure accurate restoration of the prediction results, in one implementation of the present application, the M-TR module includes contrast stratification to restore the original trend of the data through reverse differential processing. The calculation formula of the contrast stratification includes: X t = X t-1 + △ X t ,in X t is at the time step t The original data points at X t-1 is at the time step t- The original data point at 1, △ X t is at the time step t The difference value at .

[0046] After the M-TR module predicts the plasma configuration sequence, an additional step may be required to recover the original trend of the data in order to compare with the original data or other models, or to use the prediction results in applications that require the original trend information. At this time, contrast stratification plays a key role.

[0047] Contrast stratification is the inverse process of difference stratification, which is used to restore the original trend of the data through the reverse difference processing. In the data fusion module, the difference layer reduces the trend component in the data by calculating the difference between adjacent time steps, making the data more stable. In the M-TR module, once the forecast results are generated, the contrast layer will reintegrate these forecast results into a form that contains the original trend based on the previous difference data. The implementation method of contrast stratification depends on the specific implementation of the difference layer. In a simple case, if the difference layer simply calculates the difference between adjacent time steps (such as △ X t = X t - X t-1 ), then contrast stratification can restore the original data by accumulating these differences.

[0048] like Figure 3 As shown, in one implementation of the present application, the multi-head attention mechanism of the M-TR module includes extracting query vectors, key vectors and value vectors from the fused time series data, and obtaining the output of the attention mechanism by weighted summation based on the extraction results.

[0049] The M-TR module (a module that combines a multi-head attention mechanism with some time series processing (such as Transformer)) is used to process fused time series data. The multi-head attention mechanism is a key component of this module. It extracts query vectors (Query), key vectors (Key), and value vectors (Value) from the fused time series data, calculates attention weights based on these vectors, and then performs weighted summation to obtain the final output. Exemplarily, in order to build an efficient model, the representation dimension can be set to 16 in the M-TR structure, each multi-head attention mechanism uses 8 attention heads, and the number of layers of the encoder and decoder are set to 2 respectively, with the number of hidden units in each layer being 128.

[0050] Among them, the principles and processing of the multi-head attention mechanism mainly include:

[0051] (1) Data input: The input is fused time series data, which has undergone steps such as sequence alignment, normalization, difference processing, and one-dimensional convolution, and has been converted into a format that the model can process.

[0052] (2) Vector extraction: Query vector (Query), extracts features from the data at the current time step or a specific position for matching with the key vector. Key vector (Key), extracts features from the data at all time steps for matching with the query vector. Value vector (Value), associated with the key vector, is used to generate the final output based on the attention weights. In the multi-head attention mechanism, the extraction of the above three vectors is achieved through linear transformation (i.e., the product of the weight matrix and the input data).

[0053] (3) Calculate attention weights: Calculate the attention weights between each time step and the current time step by taking the dot product (or other similarity measure) of the query vector and the key vector. These weights reflect the importance of different time steps to the current time step. Then, use the softmax function to normalize the attention weights to ensure that the sum of all weights is 1.

[0054] (4) Weighted summation: Use the normalized attention weights to perform weighted summation on the value vector to obtain the output of the attention mechanism. This output comprehensively considers the information of all time steps, but pays more attention to the information related to the current time step.

[0055] (5) Multi-head processing: In the multi-head attention mechanism, the above process is performed multiple times in parallel (i.e., multiple "heads"), and each head uses different linear transformation parameters. This helps the model capture multiple correlation patterns in the data. Finally, the outputs of all heads are concatenated and may be transformed again through a linear transformation to obtain the final output.

[0056] In this way, the multi-head attention mechanism of the M-TR module can effectively extract key information from the fused time series data and generate more accurate prediction results based on this information. This mechanism is particularly effective when processing long time series data or data with complex dependencies.

[0057] In one implementation of the present application, the M-TR module uses the GLU activation function as the activation function of the encoder / decoder intermediate layer to enhance the extraction and retention of long-term features for plasma configuration prediction.

[0058] It should be noted that although the stabilization process enhances the predictability of time series data, it degenerates the complex time-varying distribution of the original sequence into a stable distribution that does not change over time. As a deep model that relies on learning data patterns from distributions, this degradation will obviously cause the Transformer to lose its original advantage in modeling time series dependencies. In addition, non-stationarity is an essential characteristic of time series data in the real world, and is often interrelated with the time series dependencies that can be captured by the sequence itself. Therefore, how to simultaneously improve the predictability of time series data and make full use of the time series modeling capabilities of deep models is the key to improving the effect of non-stationary time series prediction. To this end, in the above implementation, by using the GLU activation function as the activation function of the encoder / decoder intermediate layer, the extraction and retention of long-term features for plasma configuration prediction can be enhanced.

[0059] Among them, the GLU activation function is characterized by its gating mechanism, which allows the network to selectively filter and retain information based on the context of the input data. This mechanism gives the GLU activation function a great advantage in processing sequence data because it can capture and retain long-term dependencies. Therefore, choosing the GLU activation function as the activation function of the middle layer of the encoder / decoder of the M-TR module can significantly enhance the model's ability to extract and retain long-term features in plasma configuration prediction, which can greatly improve the performance and effect of the model.

[0060] Specifically, the GLU activation function calculates the output of two parallel linear transformations (usually fully connected layers or convolutional layers) and uses the Sigmoid function to compress the output of one of the transformations to between 0 and 1 as a gating signal. This gating signal is then multiplied element-by-element with the output of the other linear transformation to achieve selective filtering of the input information. This mechanism enables the GLU activation function to dynamically adjust its output according to the context of the input data, thereby better capturing and preserving long-term dependencies. In the M-TR module, the encoder / decoder intermediate layer is responsible for processing the potential representation of the input and output sequences. By using the GLU activation function as the activation function of this layer, the M-TR module is able to better extract and preserve long-term features in plasma configuration prediction, thereby improving the accuracy and reliability of the prediction. In addition, the nonlinear transformation capability and adaptive function of the GLU activation function also help to improve the generalization ability and robustness of the model.

[0061] Example 2

[0062] See also Figure 4 The present application embodiment provides a method for predicting the configuration of a tokamak plasma, which comprises the following steps:

[0063] Acquire multiple time series data; the time series data includes the power supply voltage of the vertical field coil, the power supply voltage of the horizontal field coil, the loop current of the multi-level field coil and the ohmic field coil voltage. Perform fusion processing on the multiple time series data to extract the global information of the multiple time series data and obtain fused time series data. Based on the multi-head attention mechanism, capture the correlation information of different positions in the fused time series data to generate the prediction result of the plasma configuration sequence according to the captured correlation information.

[0064] For the specific implementation process of the above method, please refer to the Tokamak plasma configuration prediction system provided in Example 1, which will not be repeated here.

[0065] Example 3

[0066] See also Figure 5 , the embodiment of the present application provides an electronic device, the electronic device includes at least one processor 201 and at least one memory 202; wherein the processor 201 and the memory 202 are directly connected to each other, or communicate with each other through a communication interface 203, or are electrically connected through one or more communication buses or signal lines to achieve data transmission or interaction; the memory 202 stores program instructions that can be executed by the processor 201, and the processor 201 calls the program instructions to execute a configuration prediction method for a tokamak plasma. For example, the following is realized:

[0067] Acquire multiple time series data; the time series data includes the power supply voltage of the vertical field coil, the power supply voltage of the horizontal field coil, the loop current of the multi-level field coil and the ohmic field coil voltage. Perform fusion processing on the multiple time series data to extract the global information of the multiple time series data and obtain fused time series data. Based on the multi-head attention mechanism, capture the correlation information of different positions in the fused time series data to generate the prediction result of the plasma configuration sequence according to the captured correlation information.

[0068] Among them, the memory 202 can be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc.

[0069] The processor 201 may be an integrated circuit chip with signal processing capability. The processor 201 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0070] Understandably, Figure 5 The structure shown is for illustration only. The electronic device may also include Figure 5 More or fewer components as shown, or with Figure 5 Different configurations are shown. Figure 5 Each component shown in the figure can be implemented by hardware, software or a combination thereof.

[0071] Example 4

[0072] The present application provides a computer-readable storage medium having a computer program stored thereon, which implements a configuration prediction method of a tokamak plasma when executed by a processor 201. For example, the following is implemented:

[0073] Acquire multiple time series data; the time series data includes the power supply voltage of the vertical field coil, the power supply voltage of the horizontal field coil, the loop current of the multi-level field coil and the ohmic field coil voltage. Perform fusion processing on the multiple time series data to extract the global information of the multiple time series data and obtain fused time series data. Based on the multi-head attention mechanism, capture the correlation information of different positions in the fused time series data to generate the prediction result of the plasma configuration sequence according to the captured correlation information.

[0074] If the above functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0075] It will be apparent to those skilled in the art that the present application is not limited to the details of the exemplary embodiments described above, and that the present application can be implemented in other specific forms without departing from the spirit or essential features of the present application. Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of the present application is defined by the appended claims rather than the above description, and it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims be included in the present application. Any reference numeral in a claim should not be considered as limiting the claim to which it relates.

Claims

1. A configuration prediction system for a tokamak plasma, characterized in that: include: A data fusion module is used to fuse the input multiple time series data to extract the global information of the multiple time series data and obtain fused time series data; the time series data includes the power supply voltage of the vertical field coil, the power supply voltage of the horizontal field coil, the loop current of the multi-level field coil and the ohmic field coil voltage; The data fusion module includes: a sequence alignment layer, which is used to unify the length of multiple time series data input to unify them to a preset maximum sequence length; a normalization layer, which is used to normalize the sequence values ​​corresponding to the multiple time series data input; a difference layer, which is used to calculate the difference between each time step and the previous time step of the multiple time series data input, and perform a stabilization process on the multiple time series data input according to the calculation result; a one-dimensional convolution layer, which is used to use a one-dimensional convolution kernel to extract local features from the multiple time series data after length unification, normalization and stabilization, and obtain fused time series data in the form of a one-dimensional sequence; The calculation formula of the difference layer includes: X t = X t - X t-1 , where △ X t is at the time step t The difference value at X t is at the time step t The original data points at X t-1 is at the time step t- The original data point at 1; The M-TR module is used to capture the correlation information of different positions in the fused time series data based on the multi-head attention mechanism, so as to generate the prediction results of the plasma configuration sequence according to the captured correlation information; wherein, the M-TR module is a module that combines the multi-head attention mechanism and time series processing.

2. A Tokamak plasma configuration prediction system according to claim 1, characterized in that: The M-TR module includes contrast layering to restore the original trend of the data through anti-differentiation processing.

3. A Tokamak plasma configuration prediction system according to claim 2, characterized in that: The calculation formula of the contrast layering includes: X t = X t-1 + △ X t ,in X t is at the time step t The original data points at X t-1 is at the time step t- The original data point at 1, △ X t is at the time step t The difference value at .

4. A Tokamak plasma configuration prediction system according to claim 1, characterized in that: The multi-head attention mechanism of the M-TR module includes The query vector, key vector and value vector are extracted from the fused time series data, and the output of the attention mechanism is obtained by weighted summation based on the extracted results.

5. A Tokamak plasma configuration prediction system according to claim 1, characterized in that: The M-TR module adopts the GLU activation function as the activation function of the encoder / decoder intermediate layer to enhance the extraction and retention of long-term features for plasma configuration prediction.

6. A method for predicting the configuration of a tokamak plasma, characterized in that: The following steps are involved: Acquire a plurality of time series data; the time series data includes a power supply voltage of a vertical field coil, a power supply voltage of a horizontal field coil, a loop current of a multi-level field coil, and an ohmic field coil voltage; The multiple time series data are fused to extract the global information of the multiple time series data and obtain the fused time series data, which specifically includes: unifying the length of the multiple time series data to unify them to the preset longest sequence length; normalizing the sequence values ​​corresponding to the multiple time series data; using the calculation formula △ X t = X t - X t-1 The difference between each time step and the previous time step is calculated for the input multiple time series data, and the input multiple time series data are stabilized according to the calculation results, where △ X t is at the time step t The difference value at X t is at the time step t The original data points at X t-1 is at the time step t- 1; use a one-dimensional convolution kernel to extract local features from multiple time series data after length unification, normalization and stabilization, and obtain fused time series data in the form of a one-dimensional sequence; Based on the multi-head attention mechanism, the correlation information of different positions in the fused time series data is captured to generate the prediction results of the plasma configuration sequence according to the captured correlation information.

7. An electronic device, characterized in that: include: A memory for storing one or more programs; processor; When the one or more programs are executed by the processor, the method according to claim 6 is implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to claim 6 is implemented.

Citation Information

Patent Citations

  • Electromechanical linearly actuated electrode

    CN110771269A

  • Tokamak plasma large fracture prediction algorithm based on deep neural network

    CN113780522A

  • Short temporary rainfall prediction method based on multi-scale attention and convolution fusion

    CN118298222A

  • Controller for nuclear fusion reactor

    JP1984101800A

  • The Convergence Plasma Cleaning Appratus for the Vacuum Pump , Vacuum Line and PFC gases decomposition

    KR1020160100022A