A nuclear fusion diagnostic data recovery method, system, device and storage medium

By using a multi-domain sparse representation model and an adaptive gating mechanism, combined with a multi-layer parameterized iterative structure, the accuracy and efficiency issues under undersampling conditions in nuclear fusion diagnostic data recovery were solved, achieving high-precision and stable recovery of nuclear fusion diagnostic signals.

CN123158201APending Publication Date: 2026-11-24SOUTHWESTERN INST OF PHYSICS
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611654942.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-10-26
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing methods for recovering diagnostic data from nuclear fusion suffer from problems such as insufficient recovery accuracy, limited structural adaptability, and low computational efficiency under conditions of high undersampling, making it difficult to effectively handle complex structures in plasma signals.

Method used

A multi-domain sparse representation model is adopted, combined with an adaptive gating mechanism. By constructing a multi-layer parameterized iterative structure, the signal is represented using discrete cosine transform, wavelet transform, and spline smoothing basis. Overlapping sliding window block recovery and Hanning window weighted fusion are introduced to achieve adaptive signal recovery.

Benefits of technology

It achieves high-precision and stable recovery of nuclear fusion diagnostic signals, combining the interpretability of traditional methods with the adaptability of data-driven methods, thus improving computational efficiency and result reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123158201A_ABST
    Figure CN123158201A_ABST
Patent Text Reader

Abstract

This invention relates to the field of nuclear fusion data processing technology, and discloses a method, system, device, and storage medium for recovering nuclear fusion diagnostic data. The method includes: acquiring undersampled observation signals generated by a nuclear fusion diagnostic device; constructing an observation operator based on the sampling positions corresponding to the undersampled observation signals; mapping the undersampled observation signals to a complete signal space to obtain an initial estimated signal; constructing a joint dictionary based on multiple sparse representation bases with different structural representation capabilities; calculating the contribution weights of each base in conjunction with the initial estimated signal; weighting and combining the reconstructed components of each base according to the contribution weights to obtain an adaptive joint representation operator; expanding the sparse recovery iterative process based on the observation operator and the adaptive joint representation operator into a multi-layer parameterized iterative structure; repeating multiple iterations to obtain and recover the complete signal. This invention can achieve high-precision and stable recovery of undersampled nuclear fusion diagnostic data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of nuclear fusion data processing technology, and in particular to a method, system, device and storage medium for recovering nuclear fusion diagnostic data. Background Technology

[0002] Thermonuclear fusion is the fundamental physical process by which energy is generated inside the sun and stars. It involves the fusion of light atomic nuclei under high temperature and pressure to form heavier atomic nuclei, releasing a large amount of energy. Due to the abundant reserves of fusion fuels, the fact that the reaction process does not directly produce greenhouse gases, and its high safety, controlled thermonuclear fusion is considered one of the important directions for the development of future clean energy.

[0003] In magnetic confinement fusion devices such as tokamas and stellarators, high-temperature plasmas are typically confined by strong magnetic fields to maintain the operating conditions required for the fusion reaction, including temperature, density, and confinement time. However, plasmas exhibit strong nonlinearity, multi-scale characteristics, and strong coupling, and their evolution involves various complex physical phenomena such as instabilities, turbulence, particle transport, and energy transport. Therefore, accurate monitoring and analysis of plasma operating states are crucial for conducting fusion experimental research and optimizing device operation. In practical research, the analysis of plasma behavior is highly dependent on experimentally measured data. However, due to factors such as the sampling capacity of diagnostic systems, the number of channels, signal interference, equipment failures, and the complexity of the experimental environment, experimental data often suffers from missing, undersampled, or incomplete data.

[0004] Currently, the data recovery methods commonly used in the field of nuclear fusion can be divided into three types: traditional signal processing methods, inversion and regularization methods based on physical models, and data-driven methods.

[0005] (1) Traditional signal processing methods Traditional methods mainly include interpolation methods (such as linear interpolation and spline interpolation), statistical estimation methods (such as Kalman filtering and Gaussian process regression), and conventional filtering methods. These methods are relatively simple to implement and can achieve certain results in some stationary signal scenarios. However, they still have shortcomings: most methods rely on the assumption of signal stationarity or smoothness, making it difficult to effectively recover non-stationary processes such as ELM bursts and abrupt perturbations; the reconstruction accuracy decreases significantly when the undersampling ratio is high; and the lack of physical consistency constraints may result in non-physical structures in the recovery results that do not conform to the laws of plasma physics.

[0006] (2) Inversion and regularization method based on physical model These methods typically model the diagnostic process as an inverse problem, solving for unknown parameters by introducing regularization constraints. Typical methods include ridge regression, total variation regularization, and the maximum entropy method, which have been applied to diagnostic problems such as tomography and spectral line inversion. However, the recovery effect of these methods is highly dependent on the accuracy of the physical model, while the actual diagnostic process often involves model simplification and uncertainty; most methods require iterative solutions to optimization problems, resulting in high computational complexity and difficulties in high temporal resolution or real-time applications.

[0007] (3) Data-driven approach In recent years, data-driven methods based on deep learning have been gradually introduced into the field of nuclear fusion diagnostic data recovery. For example, models such as convolutional neural networks and autoencoders are used for undersampling completion and resolution enhancement, achieving good results in some application scenarios. However, the network structure of these methods is usually a black box model, making it difficult to explain the physical rationality of the recovery results; the models mainly rely on data distribution learning and lack explicit physical constraints, which may lead to insufficient credibility of the output results under complex working conditions; they are also highly dependent on the quality and scale of training data, and there is still room for improvement in generalization ability.

[0008] In summary, existing methods for recovering nuclear fusion diagnostic data still suffer from insufficient recovery accuracy, limited structural adaptability, and low computational efficiency under conditions of high undersampling. Compressed sensing provides an effective approach for recovering undersampling diagnostic signals, but traditional methods typically rely on fixed sparse substrates and manually set parameters, making it difficult to adapt to complex structures in plasma signals such as smooth evolution, local abrupt changes, and multi-scale perturbations. Summary of the Invention

[0009] To address the aforementioned issues, this invention proposes a method, system, device, and storage medium for recovering nuclear fusion diagnostic data. By constructing a multi-domain sparse representation model, it jointly characterizes the smooth changes, local abrupt changes, and multi-scale structures of diagnostic signals. An adaptive gating mechanism is introduced to dynamically adjust the contribution weights of different representation domains. Furthermore, the sparse recovery process is unfolded into a finite-layer parameterized iterative structure to achieve adaptive optimization of key parameters. This invention combines the interpretability of compressed sensing model-driven approaches with the adaptive capabilities of data-driven learning, enabling high-precision and stable recovery of undersampled nuclear fusion diagnostic data.

[0010] The technical solution adopted in this invention is as follows: A method for recovering nuclear fusion diagnostic data includes: The undersampled observation signal generated by the nuclear fusion diagnostic equipment is acquired, an observation operator is constructed based on the sampling position corresponding to the undersampled observation signal, and the undersampled observation signal is mapped to the complete signal space to obtain the initial estimated signal; A joint dictionary is constructed based on multiple sparse representation bases with different structural representation capabilities. The contribution weight of each base is calculated in combination with the initial estimation signal. The reconstruction components of each base are weighted and combined according to the contribution weight to obtain an adaptive joint representation operator. The sparse recovery iterative process based on the observation operator and the adaptive joint representation operator is expanded into a multi-layer parameterized iterative structure. In each layer, the observation residual is calculated based on the current sparse coefficients, the observation operator, and the joint representation operator. The sparse coefficients are updated using the observation residuals and then shrunk by soft thresholding. After repeating the multi-layer iteration, the complete signal is obtained. Long-range diagnostic sequences are recovered by overlapping sliding window blocks, and adjacent overlapping blocks are weighted and fused using Hanning window to obtain the global recovery signal.

[0011] Further, the process of acquiring the undersampled observation signal generated by the nuclear fusion diagnostic equipment, constructing an observation operator based on the sampling position corresponding to the undersampled observation signal, and mapping the undersampled observation signal to the complete signal space to obtain the initial estimated signal includes: Statistical feature analysis is performed on the discrete observation signals collected by the nuclear fusion diagnostic equipment to calculate the mean and standard deviation and perform standardization processing; based on the effective observation index of the diagnostic signal, an observation operator is constructed from the complete signal space to the undersampled observation space, which is used to select the effective observation position from the complete signal; the undersampled observation data is mapped back to the complete signal space using zero-filling projection to obtain the initial estimated signal.

[0012] Furthermore, the observation operator for constructing the observation space from the complete signal space to the undersampled observation space includes: Let the length of the complete diagnostic signal be N, and the length of the undersampled observation signal be M, where M < N. Use an M x N matrix as the observation operator. This matrix extracts the observation value at the corresponding index position from the complete signal based on the sampling time or spatial position of the nuclear fusion diagnostic device. The observation process is represented as y = Ax + n, where y is the undersampled observation signal, x is the complete diagnostic signal, A is the observation operator, and n is the observation noise or measurement error term.

[0013] Furthermore, the sparse representation basis with different structural characterization capabilities includes a discrete cosine transform basis, a wavelet transform basis, and a spline smoothing basis. The discrete cosine transform basis is used to characterize the global smooth change trend of the diagnostic signal, the wavelet transform basis is used to characterize the local abrupt changes and transient perturbation structure of the diagnostic signal, and the spline smoothing basis is used to describe the evolution curve characteristics and local curvature changes of the diagnostic signal.

[0014] Further, the calculation of the contribution weights of each basis in conjunction with the initial estimated signal includes: The initial estimated signal is input into the gated weight calculation module, which extracts features from the initial estimated signal through multi-layer nonlinear mapping. The extracted features are then mapped to the contribution weights of the three basis functions through a gated activation function. These contribution weights are scalar values ​​used to characterize the relative importance of the corresponding basis function in the current diagnostic signal recovery task. Each contribution weight is adaptively adjusted according to the structural features of the input signal.

[0015] Further, the step of weighting and combining the reconstructed components of each basis according to the contribution weights to obtain the adaptive joint representation operator includes: Based on the contribution weights corresponding to each basis, the discrete cosine transform basis, wavelet transform basis, and spline smoothing basis and their corresponding sparse coefficients are weighted and combined to construct an adaptive joint representation operator. The joint sparse coefficients are mapped to the complete signal space using the adaptive joint representation operator to obtain the recovered signal. The adaptive joint representation operator adaptively adjusts the contribution of different basis to the recovered signal according to the structural characteristics of the input signal.

[0016] Furthermore, the sparse recovery iterative process based on the observation operator and the adaptive joint representation operator is expanded into a multi-layer parameterized iterative structure, including: The iterative soft thresholding method in compressed sensing theory is expanded into a deep neural network structure with a fixed number of layers along the time dimension. Each layer corresponds to a complete iterative update process in the traditional iterative algorithm. The layers are sequentially connected, and the output of the current layer serves as the input of the next layer. Each layer contains learnable step size parameters and threshold parameters, and is optimized through training data-driven methods.

[0017] Further, the step of calculating the observation residual in each layer based on the current sparse coefficients, the observation operator, and the joint representation operator includes: The sparse coefficients of the current layer are transformed into a reconstructed signal using a joint representation operator. The reconstructed signal is then mapped to the observation space using an observation operator to obtain a reconstructed estimate of the observation space. The difference between the reconstructed estimate and the undersampled observation signal is calculated as the observation residual, which is used to measure the degree of deviation between the current reconstruction result and the actual observation data.

[0018] Further, the step of updating the sparse coefficients using the observed residuals and then shrinking them using a soft threshold includes: The observation residuals are sequentially passed through the transpose mapping of the observation operator and the transpose mapping of the joint representation operator, and then fed back to the sparse representation domain. The feedback result is multiplied by the learnable step size parameter of the current layer to obtain the product result. The product result is subtracted from the sparse coefficients of the current layer to obtain the intermediate sparse coefficients after gradient update. The learnable step size parameter is adaptively adjusted during model training.

[0019] Furthermore, the step of updating the sparse coefficients using the observed residuals and then shrinking them using a soft threshold also includes: For each element in the intermediate sparse coefficients after gradient update, retain its sign according to its positive or negative sign, subtract the absolute value from the threshold, and if the difference is greater than zero, retain the difference as the value of the shrunken element; if the difference is not greater than zero, set the element to zero; where different sparse bases correspond to their own independent layer independent threshold parameters, and each threshold parameter is optimized separately during model training.

[0020] Furthermore, the method of recovering the long-range diagnostic sequence using overlapping sliding windows in blocks includes: A fixed-length sliding window is set along the time series direction of the diagnostic signal. The window is moved according to a set step size to divide the long-range diagnostic sequence into multiple data blocks with overlapping regions. The observation operator mapping, joint representation operator construction and multi-level iterative sparse reconstruction are performed independently on each data block to obtain the local recovery signal corresponding to each data block. The length of the overlapping region between adjacent data blocks is less than the window length.

[0021] Furthermore, the step of weighted fusing adjacent overlapping blocks using the Hanning window to obtain the global recovery signal includes: Configure window weights for each data block, multiply each local recovered data with its corresponding window weight element by element, and then perform weighted summation according to the position of each data block in the original nuclear fusion diagnostic data. The weighted summation result at each position is divided by the accumulated window weight value corresponding to that position to obtain the global recovery data; The window weights include Hanning window weights or square root Hanning window weights.

[0022] Furthermore, the training of the multi-layer parameterized iterative structure employs a composite loss function, which includes at least two of the following: a reconstruction error term, a structural similarity constraint term, a sparse coefficient constraint term, and a gating weight constraint term.

[0023] A nuclear fusion diagnostic data recovery system, comprising: The initial estimation signal calculation module is configured to acquire the undersampled observation signal generated by the nuclear fusion diagnostic equipment, construct an observation operator based on the sampling position corresponding to the undersampled observation signal, and map the undersampled observation signal to the complete signal space to obtain the initial estimation signal. The adaptive multi-basis joint representation construction module is configured to construct a joint dictionary based on multiple sparse representation bases with different structural representation capabilities, calculate the contribution weight of each base in combination with the initial estimation signal, and perform weighted combination of the reconstruction components of each base according to the contribution weight to obtain the adaptive joint representation operator. The sparse reconstruction module is configured to expand the sparse recovery iterative process based on the observation operator and the adaptive joint representation operator into a multi-layer parameterized iterative structure. In each layer, the observation residual is calculated based on the current sparse coefficients, the observation operator and the joint representation operator. The sparse coefficients are updated using the observation residuals and then shrunk by soft thresholding. After repeating the multi-layer iteration, the complete signal is obtained. The global continuous signal fusion module is configured to recover long-range diagnostic sequences by using overlapping sliding windows in block division, and to perform weighted fusion of adjacent overlapping blocks using Hanning windows to obtain the global recovered signal.

[0024] A computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the nuclear fusion diagnostic data recovery method.

[0025] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the nuclear fusion diagnostic data recovery method.

[0026] The beneficial effects of this invention are as follows: 1. This invention employs a recovery framework combining multi-basis joint sparse representation with an adaptive gating mechanism, overcoming the limitations of traditional interpolation, filtering, and smoothing methods in terms of insufficient characterization capabilities under undersampling conditions. This invention can simultaneously characterize the global smoothing trend, local abrupt structural changes, and continuous evolution features in nuclear fusion diagnostic signals, and adaptively adjust the contribution weights of different basis bases according to the signal state. This invention can effectively recover the main structural features in the tested diagnostic signals.

[0027] 2. Regarding the reconstruction algorithm, this invention expands the traditional sparse recovery iterative process into a joint sparse iterative expansion structure, achieving layer-by-layer recovery of diagnostic signals through residual feedback, gradient update, and domain-specific soft threshold contraction. This invention effectively balances the mathematical interpretability of traditional optimization methods with the adaptive learning capability of data-driven methods, reducing reliance on manual parameter adjustment and extensive iterative calculations, and enhancing the computational efficiency and reliability of the algorithm in nuclear fusion diagnostic data recovery tasks.

[0028] 3. In terms of long-range signal processing and result optimization, this invention combines overlapping block segmentation with Hanning window weighted fusion mechanism, and introduces a composite loss function composed of mean square error, one-dimensional structural similarity, sparse coefficient regularization term, and gate weight constraint term. This invention can reduce the computational and storage overhead in the long sequence recovery process, weaken splicing artifacts at block boundaries, and achieve a better balance between noise suppression and structural detail preservation, providing a more reliable data foundation for subsequent nuclear fusion physics analysis. Attached Figure Description

[0029] Figure 1This is a flowchart of a nuclear fusion diagnostic data recovery method according to Embodiment 1 of the present invention.

[0030] Figure 2 This is a coherent scattering data recovery diagram from Embodiment 2 of the present invention.

[0031] Figure 3 This is a local detail diagram of coherent scattering data recovery according to Embodiment 2 of the present invention.

[0032] Figure 4 This is the recovery result image obtained by the traditional linear interpolation method.

[0033] Figure 5 This is the adaptive gating weight evolution diagram of Embodiment 2 of the present invention. Detailed Implementation

[0034] To provide a clearer understanding of the technical features, objectives, and effects of the present invention, specific embodiments are now described. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention; that is, the described embodiments are only a part of the embodiments of the invention, not all of them. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without inventive effort are within the scope of protection of the present invention.

[0035] Example 1 like Figure 1 As shown, this embodiment provides a method for recovering nuclear fusion diagnostic data, including: The undersampled observation signal generated by the nuclear fusion diagnostic equipment is acquired, an observation operator is constructed based on the sampling position corresponding to the undersampled observation signal, and the undersampled observation signal is mapped to the complete signal space to obtain the initial estimated signal; A joint dictionary is constructed based on multiple sparse representation bases with different structural representation capabilities. The contribution weight of each base is calculated in combination with the initial estimation signal. The reconstruction components of each base are weighted and combined according to the contribution weight to obtain an adaptive joint representation operator. The sparse recovery iterative process based on the observation operator and the adaptive joint representation operator is expanded into a multi-layer parameterized iterative structure. In each layer, the observation residual is calculated based on the current sparse coefficients, the observation operator, and the joint representation operator. The sparse coefficients are updated using the observation residuals and then shrunk by soft thresholding. After repeating the multi-layer iteration, the complete signal is obtained. Long-range diagnostic sequences are recovered by overlapping sliding window blocks, and adjacent overlapping blocks are weighted and fused using Hanning window to obtain the global recovery signal.

[0036] Preferably, the step of acquiring the undersampled observation signal generated by the nuclear fusion diagnostic equipment, constructing an observation operator based on the sampling position corresponding to the undersampled observation signal, and mapping the undersampled observation signal to the complete signal space to obtain an initial estimated signal includes: performing statistical feature analysis on the discrete observation signal collected by the nuclear fusion diagnostic equipment, calculating the mean and standard deviation, and performing standardization processing; constructing an observation operator from the complete signal space to the undersampled observation space based on the effective observation index of the diagnostic signal, wherein the observation operator is used to select effective observation positions from the complete signal; and mapping the undersampled observation data back to the complete signal space using zero-filling projection to obtain the initial estimated signal.

[0037] Specifically, during each discharge experiment, the nuclear fusion diagnostic equipment collects diagnostic signals at a preset sampling rate. However, due to hardware resource limitations, the actual stored or transmitted signals are often subsets of observations acquired at specific sampling times or spatial locations; these observation locations constitute the effective observation index. In a complete implementation process, the preprocessing module first receives the raw discrete observation signals, performs statistical feature analysis on the signals, and calculates their mean and standard deviation. Subsequently, using these mean and standard deviation as a benchmark, a standardization operation is performed on each element of the raw observation signal, that is, subtracting the mean from each element and dividing by the standard deviation, so that the standardized signal has zero mean and unit variance. This operation can eliminate the numerical scale differences between different diagnostic channels caused by differences in sensor sensitivity, variations in different discharge experimental conditions, or different physical dimensions, enabling the subsequent recovery process to uniformly process various diagnostic signals. At the same time, the effective observation index is determined based on the sampling time record or spatial location encoding of the diagnostic equipment during the acquisition process. On this basis, an observation operator is constructed from the complete signal space to the undersampled observation space. This operator is essentially a mapping matrix that extracts the corresponding position elements from the complete signal based on the effective observation index positions. After the observation operator is constructed, the initial estimated signal is obtained using a zero-filling projection method. That is, for each position in the complete signal space, if the position corresponds to a valid observation index, the corresponding observation value is filled in; if the position does not belong to a valid observation index, the value zero is filled in. The resulting signal vector is the initial estimated signal.

[0038] It should be noted that standardization enables the recovery model to adapt well to diagnostic signals with different dimensions and amplitude ranges, improving the model's generalization ability and training stability. The construction of the observation operator accurately describes the actual sampling process, ensuring that the data consistency constraints in the subsequent reconstruction process have a physical basis. The zero-filling projection method is simple and efficient, enabling the rapid acquisition of initial estimates without prior knowledge, providing a reasonable basic input for subsequent adaptive gating weight calculation.

[0039] Preferably, the construction of the observation operator from the complete signal space to the undersampled observation space includes: denoting the length of the complete diagnostic signal as N and the length of the undersampled observation signal as M, where M < N; using an M-row N-column matrix as the observation operator, which extracts the observation value at the corresponding index position from the complete signal based on the sampling time or spatial position of the nuclear fusion diagnostic device, and the observation process is represented as y = Ax + n, where y is the undersampled observation signal, x is the complete diagnostic signal, A is the observation operator, and n is the observation noise or measurement error term.

[0040] Specifically, in the data processing of nuclear fusion diagnostics, the length N of the complete diagnostic signal is usually determined based on the theoretical sampling rate of the diagnostic system or the length of the time window of interest, while the length M of the undersampled observation signal is determined based on the actual number of data points acquired, and M is usually much smaller than N. The matrix form of the observation operator is an M-row, N-column matrix. In this matrix, each row corresponds to a valid observation index position, and each column corresponds to a position in the complete signal space. Specifically, for the i-th observation value, which corresponds to the j-th sampling time or spatial position in the complete signal, the element in the i-th row and j-th column of the observation operator is set to one, and the elements in the remaining columns of that row are set to zero. Taking a magnetic probe array in nuclear fusion diagnostics as an example, if the number of complete spatial positions is N, and the number of probes actually deployed is M, then the observation operator sets one in the corresponding column according to the actual spatial coordinate position of each probe, thereby extracting observation values ​​at M positions from the complete spatial distribution signal. The observation process can be represented as y = Ax + n, where n represents the observation noise or measurement error term introduced during the measurement process. In practice, this noise term manifests as sensor electronic noise, environmental electromagnetic interference, or quantization error, etc. The above observation equation describes the precise mapping relationship between the complete diagnostic signal and the actual undersampled observation data. This mapping relationship remains unchanged throughout the recovery process, providing data consistency constraints for subsequent sparse reconstruction.

[0041] It should be noted that the matrix-based observation operator accurately describes the undersampling process, allowing the recovery algorithm to mathematically constrain the error between the reconstructed result and the actual observation. Furthermore, this matrix exhibits high structural sparsity, enabling efficient implementation via index mapping in practical computations, eliminating the need for explicit storage of the complete matrix and significantly reducing storage overhead and computational complexity. The noise term in the observation process endows the recovery method with noise robustness, enabling it to adapt to various measurement interferences present in real-world fusion experimental environments.

[0042] Preferably, the joint dictionary is constructed based on multiple sparse representation bases with different structural representation capabilities. These sparse representation bases include discrete cosine transform (DCT) bases, wavelet transform (WCT) bases, and spline smoothing bases. The DCT bases, wavelet transform bases, and spline smoothing bases are combined to form a joint sparse representation space, i.e., the joint dictionary. The DCT bases are used to characterize the global smooth change trend of the diagnostic signal, the wavelet transform bases are used to characterize the local abrupt changes and transient perturbation structures of the diagnostic signal, and the spline smoothing bases are used to describe the evolution curve characteristics and local curvature changes of the diagnostic signal.

[0043] Specifically, the construction of the joint dictionary combines three sparse bases with different structural representation capabilities into a unified representation framework. In practice, the transformation matrices or transformation functions of the three bases are first generated separately. The Discrete Cosine Transform (DCT) base concentrates the signal's energy into low-frequency components by performing a cosine-type orthogonal transformation, thus representing the global smoothing trend of the signal with a small number of coefficients. In nuclear fusion diagnostics, the macroscopic evolution of plasma parameters typically exhibits slow changes, such as the rise and flattening phases of plasma current; these global trends are effectively characterized by the DCT base. The Wavelet Transform (WT) base employs a multi-resolution analysis strategy, obtaining localized representation capabilities in both the time and frequency domains by scaling and translating the wavelet mother function. For spikes, edges, or rapid transient events in diagnostic signals, such as boundary local mode bursts and tear mode instabilities, the WT base can accurately characterize these local abrupt structures with a small number of coefficients. Spline smoothing basis functions are constructed based on spline interpolation or smooth spline theory. Their basis functions have piecewise polynomial form and satisfy certain smoothness constraints at the nodes, enabling them to describe the slow evolution curve characteristics and local curvature changes of signals. They are suitable for characterizing the smooth transition regions of plasma parameters in the time or spatial dimensions. In practical implementation, the transformation matrices or transformation functions of the three basis functions are combined to form an augmented joint dictionary. For any input signal, its transformation coefficients under each of the three basis functions are calculated, and these coefficients together constitute the sparse representation of the signal under the joint dictionary.

[0044] It should be noted that the combination of the three bases mentioned above enables the joint dictionary to comprehensively represent nuclear fusion diagnostic signals at different structural scales, overcoming the limitation of a single base in representing complex and variable signals. The discrete cosine transform base ensures effective compression of large-scale trends, the wavelet transform base ensures accurate capture of local details, and the spline smoothing base ensures smooth transitions in continuously changing regions. The complementary and synergistic nature of these three bases gives the joint dictionary the ability to adaptively match various types of nuclear fusion diagnostic signals.

[0045] Preferably, the step of calculating the contribution weights of each basis in conjunction with the initial estimated signal includes: inputting the initial estimated signal into a gated weight calculation module, wherein the gated weight calculation module extracts features from the initial estimated signal through multi-layer nonlinear mapping; mapping the extracted features to the contribution weights of the three basis bases through a gated activation function, wherein the contribution weights are scalar values ​​used to characterize the relative importance of the corresponding basis bases in the current diagnostic signal recovery task; and adaptively adjusting each contribution weight according to the structural features of the input signal.

[0046] Specifically, the gated weight calculation module can employ a multilayer perceptron structure consisting of alternating stacks of multiple fully connected layers and nonlinear activation functions. In a complete implementation, the initial estimated signal is first flattened into a one-dimensional vector and then passed sequentially through each network layer of the gated weight calculation module. The first fully connected layer maps the input vector to an intermediate feature vector, which is then transformed using a nonlinear activation function. The second fully connected layer further transforms and compresses the intermediate features, ultimately outputting a three-dimensional feature vector. This three-dimensional feature vector is processed by the gated activation function and mapped to three scalar values ​​between zero and one, corresponding to the contribution weights of the discrete cosine transform basis, wavelet transform basis, and spline smoothing basis, respectively. In practical applications, the gated activation function can be a normalized exponential function, which converts the three-dimensional feature vector into a set of positive values ​​that sum to three, giving each weight a clear physical meaning in relative comparison; alternatively, a sparse gated function can be chosen, causing the weights of some basis layers to tend to zero, thereby achieving sparsity in basis selection. Taking different discharge scenarios in nuclear fusion diagnosis as an example, when the diagnostic signal shows a slow-changing long-period trend, the weight of the discrete cosine transform basis will be automatically increased by the gating module; when there are spike disturbances caused by magnetohydrodynamic instability in the signal, the weight of the wavelet transform basis will increase accordingly; when the signal is mainly in the form of a continuous and smooth curve, the weight of the spline smoothing basis will dominate.

[0047] It should be noted that the multi-layer nonlinear mapping capability of the gating weight calculation module enables it to extract deep structural features from the initial estimated signal, rather than relying solely on the signal's shallow statistical properties. The adaptive weight adjustment mechanism allows the recovery method to dynamically select the most suitable representation basis according to different diagnostic scenarios and signal morphologies, achieving signal-driven adaptive sparse representation. Compared to fixed weight combinations, this adaptive gating strategy significantly improves the recovery method's adaptability to diverse diagnostic signals and its representation efficiency.

[0048] Preferably, the step of weighting and combining the reconstructed components of each basis according to the contribution weights to obtain the adaptive joint representation operator includes: weighting and combining the discrete cosine transform basis, wavelet transform basis, and spline smoothing basis and their corresponding sparse coefficients according to the contribution weights corresponding to each basis to construct the adaptive joint representation operator; using the adaptive joint representation operator to map the joint sparse coefficients to the complete signal space to obtain the recovered signal; and the adaptive joint representation operator adaptively adjusting the contribution of different basis components to the recovered signal according to the structural characteristics of the input signal.

[0049] Specifically, based on the sparse coefficients of the three bases already obtained, inverse transform operations are performed on the sparse coefficients of each base to obtain the corresponding reconstructed components. Taking the Discrete Cosine Transform (DCT) base as an example, the DCT coefficients are subjected to an inverse DCT to obtain a reconstructed component signal, which reflects the global smoothing trend component in the signal. Similarly, an inverse wavelet transform is performed on the wavelet transform coefficients to obtain reconstructed components reflecting local abrupt changes and transient disturbances; an inverse spline transform is performed on the spline smoothing coefficients to obtain reconstructed components reflecting the characteristics of the slowly evolving curve. After obtaining the three reconstructed components, the three generated contribution weights are multiplied by the corresponding reconstructed components, i.e., the reconstructed component of the DCT base is multiplied by the weight corresponding to the DCT, the reconstructed component of the wavelet transform base is multiplied by the weight corresponding to the wavelet transform base, and the reconstructed component of the spline smoothing base is multiplied by the weight corresponding to the spline smoothing base. Then, the three weighted reconstructed components are summed element-wise to obtain the final adaptive joint representation operator. The joint representation operator is essentially a linear mapping from the sparse coefficient space to the complete signal space, but its mapping method is different from the linear combination of fixed coefficients. Instead, it dynamically adjusts the contribution ratio of each basis according to the structural characteristics of the input signal.

[0050] It should be noted that by multiplying the reconstructed components of each basis with adaptive weights and then superimposing them, the joint representation operator can adaptively adjust the participation level of each basis for different signal structures. When the contribution weight of a basis is close to one, that basis dominates the signal representation; when the contribution weight of a basis is close to zero, its contribution to the final reconstruction result is almost negligible. This adaptive weighted combination method preserves the structural integrity of the multi-basis joint representation while avoiding the introduction of redundancy or noise interference from unrelated basis bases into the reconstruction result, thus achieving dynamic optimization of the sparse representation structure.

[0051] Preferably, the sparse recovery iterative process based on the observation operator and the adaptive joint representation operator is expanded into a multi-layer parameterized iterative structure, including: expanding the iterative soft thresholding method in compressed sensing theory into a deep neural network structure with a fixed number of layers along the time dimension, each layer corresponding to a complete iterative update process in a traditional iterative algorithm; the layers are sequentially connected, and the output of the current layer is used as the input of the next layer; each layer contains learnable step size parameters and threshold parameters, and is optimized through training data-driven methods.

[0052] Specifically, in compressed sensing theory, the sparse signal recovery problem is typically solved using iterative optimization algorithms, with the iterative soft thresholding algorithm being a classic method. This method approximates the sparse solution by repeatedly performing gradient descent and soft thresholding shrinkage operations. In this embodiment, this iterative process is unfolded sequentially into a multi-layer deep neural network structure. The unfolded network contains a fixed number of layers, each corresponding to one iteration in a traditional iterative algorithm. Taking the actual network structure as an example, the first layer receives initial sparse coefficients as input. These initial sparse coefficients can be a zero vector or sparse coefficients obtained by transforming the initial estimated signal. After performing complete gradient update and threshold shrinkage, the first layer outputs the updated sparse coefficients. The second layer takes the output of the first layer as input, performs the same operation, and outputs further optimized sparse coefficients. This process continues, with the output of each layer serving as the input to the next layer, until the last layer outputs the final sparse coefficients. Unlike traditional iterative soft thresholding algorithms where the step size and threshold are fixed preset values, in this embodiment, each layer contains its own independently learnable step size and threshold parameters. These parameters are optimized during the model training phase using backpropagation and data-driven methods, enabling the update step size and shrinkage threshold of each layer to adaptively match the needs of signal recovery.

[0053] It should be noted that unfolding the iterative algorithm into a deep network structure allows the sparse recovery process to combine the theoretical interpretability of traditional optimization methods with the parameter adaptability of deep learning. The fixed-layer unfolding structure ensures deterministic inference time, avoiding the inference time fluctuations caused by uncertain convergence criteria in traditional iterative algorithms. The independently learnable step size and threshold parameters for each layer enable the network to adaptively adjust the update amplitude and denoising intensity at different layers, significantly improving convergence speed and reconstruction accuracy compared to the globally uniform step size and threshold in traditional algorithms.

[0054] Preferably, the step of calculating the observation residual in each layer based on the current sparse coefficients, the observation operator, and the joint representation operator includes: transforming the sparse coefficients of the current layer into a reconstructed signal using the joint representation operator; mapping the reconstructed signal to the observation space using the observation operator to obtain a reconstructed estimate of the observation space; calculating the difference between the reconstructed estimate and the undersampled observation signal as the observation residual, wherein the observation residual is used to measure the degree of deviation between the current reconstruction result and the actual observation data.

[0055] Specifically, in each layer of the deep unfolded network, the sparse coefficient vector of the current layer is first obtained. This vector has a preset initial value in the initial layer of the network and is the updated result of the previous layer's output in subsequent layers. Then, a matrix multiplication operation is performed on the joint representation operator constructed from this sparse coefficient vector, i.e., multiplying the joint representation operator by the sparse coefficient vector to obtain the current reconstructed signal. This reconstructed signal is an estimated vector in the complete signal space, and its length is consistent with the length of the complete diagnostic signal. However, since undersampled observations only provide values ​​of the complete signal at some locations, directly comparing the reconstructed signal with the undersampled observation signal is inconsistent. Therefore, the reconstructed signal needs to be further mapped to the observation space through the observation operator, i.e., multiplying the reconstructed signal by the observation operator to obtain a reconstructed estimate in the observation space. The length of this reconstructed estimate is consistent with the length of the undersampled observation signal, and its positions correspond to the actual acquired observation positions. Based on this, the reconstructed estimate is subtracted element-wise from the corresponding values ​​in the actual undersampled observation signal to obtain a difference vector, which is the observation residual. Each element in the observation residual reflects the deviation between the estimated value of the currently reconstructed signal and the actual acquired value at that observation location. In a complete implementation, the calculation of the observation residual is performed at each layer of the network, driving subsequent updates to the sparse coefficients.

[0056] It should be noted that the observation residuals serve as a bridge connecting the reconstruction results with the actual measurement data, and their magnitude directly reflects the degree of agreement between the current reconstruction results and the physical observations. By mapping the reconstruction signal to the observation space for comparison, it is ensured that the residual calculations have clear physical meaning and measurement basis. The accurate calculation of the observation residuals provides accurate feedback signals for subsequent gradient updates, enabling each layer of optimization of the sparse coefficients to move in the direction of reducing observation errors, thus ensuring that the final reconstruction results can effectively fit the actual observation data.

[0057] Preferably, updating the sparse coefficients using the observation residuals includes: feeding the observation residuals sequentially through the transpose mapping of the observation operator and the transpose mapping of the joint representation operator to the sparse representation domain; multiplying the feedback result by the learnable step size parameter of the current layer to obtain the product result; subtracting the product result from the sparse coefficients of the current layer to obtain the intermediate sparse coefficients after gradient update; the learnable step size parameter is adaptively adjusted during model training.

[0058] Specifically, after obtaining the observation residuals in each layer, this residual information needs to be fed back from the observation space to the sparse representation domain to update the sparse coefficients. The feedback process consists of two steps. First, the observation residual vector is mapped to the complete signal space via the transpose of the observation operator. The transpose of the observation operator acts in the opposite direction to the observation operator; its function is to map an observation space vector of length M to a complete signal space vector of length N. The mapping method involves placing each observation residual value back into its corresponding observation position, filling non-observation positions with zeros. Second, the resulting complete signal space vector is further mapped to the sparse representation domain via the transpose of the joint representation operator to obtain the gradient direction vector of the sparse domain. This gradient direction vector indicates the direction in which the current sparse coefficients should be adjusted. After determining the gradient direction, this gradient direction vector is multiplied by the learnable step size parameter of the current layer to obtain the step size adjustment. This learnable step size parameter is a positive scalar value, and its magnitude determines the adjustment magnitude along the gradient direction. Subsequently, the step size adjustment is subtracted from the sparse coefficients of the current layer to obtain the intermediate sparse coefficients after gradient update. Taking the first layer of the network as an example, if the current sparse coefficients are zero vectors, then the intermediate sparse coefficients after gradient update are the negative values ​​of the step size adjustment, which is equivalent to taking the first step towards reducing the observation residuals. In subsequent layers of the network, this process is repeated to continuously optimize the sparse coefficients.

[0059] It should be noted that the learnable step size parameter is automatically optimized during the model training phase through end-to-end backpropagation, enabling each layer to adaptively determine an appropriate update magnitude based on the current optimization progress. Compared to the traditional fixed step size, the learnable step size avoids the problems of oscillation caused by an excessively large step size or slow convergence caused by an excessively small step size. The transpose of the observation operator and the transpose of the joint representation operator ensure accurate calculation of the gradient direction, making the update process strictly adhere to the observation consistency constraint and the sparse representation constraint.

[0060] Preferably, the step of updating the sparse coefficients using the observed residuals and shrinking them using a soft threshold further includes: for each element in the intermediate sparse coefficients after gradient update, retaining the sign of the element according to its positive or negative sign, subtracting the absolute value from the threshold, and retaining the difference as the shrunken element value if the difference is greater than zero; otherwise, setting the element to zero; wherein, different sparse bases correspond to their own independent layer-independent threshold parameters, and each threshold parameter is optimized separately during model training.

[0061] Specifically, after obtaining the intermediate sparse coefficients through gradient update, a soft thresholding shrinkage operation is performed. This operation processes each element in the intermediate sparse coefficients independently. For any element in the intermediate sparse coefficients, its sign is first extracted: if the element value is greater than zero, the sign is positive; if it is less than zero, the sign is negative; and if it is equal to zero, the sign is zero. Simultaneously, the absolute value of the element is calculated. Then, this absolute value is compared with the threshold parameter corresponding to the current layer. If the absolute value is greater than the threshold, the threshold is subtracted from the absolute value to obtain the shrunken positive value. The previously extracted sign is then multiplied by the shrunken positive value to obtain the shrunken element value. If the absolute value is not greater than the threshold, the element is directly set to zero. It should be noted that in this embodiment, the three sparse bases correspond to their respective independent threshold parameters: the coefficients corresponding to the Discrete Cosine Transform (DCT) basis use the DCT threshold, the coefficients corresponding to the Wavelet Transform (WCT) basis use the WCT threshold, and the coefficients corresponding to the Spline Smoothing (PSS) basis use the PSS threshold. Furthermore, in different layers of the deep unfolded network, the threshold parameters of the same basis are also optimized independently, meaning that each layer and each basis has independent threshold parameters. During model training, all these threshold parameters are optimized separately through backpropagation and training data-driven methods, so that the contraction strength of each basis in each layer can adaptively match the characteristics of the basis coefficient distribution.

[0062] It is important to note that the design of independent threshold parameters for different bases is crucial. Discrete cosine transform coefficients typically have a large dynamic range and a relatively concentrated distribution, requiring a relatively large threshold to remove noise. Wavelet transform coefficients exhibit a hierarchical distribution, with coefficients in different scale subbands requiring different thresholds. Spline smoothing coefficients have a relatively uniform distribution, requiring a smaller threshold to preserve smoothness details. Independent thresholds provide tailored shrinkage strategies for each base, making the denoising and sparsity reduction processes more precise. The nonlinear characteristics of the soft-threshold shrinkage operator completely suppress coefficients smaller than the threshold and reduce coefficients larger than the threshold, thus simultaneously achieving the dual functions of sparsity promotion and noise suppression.

[0063] Preferably, the method of using an overlapping sliding window to recover the long-range diagnostic sequence includes: setting a sliding window of a fixed length along the time series direction of the diagnostic signal, moving the window by a set step size to divide the long-range diagnostic sequence into multiple data blocks with overlapping regions; independently performing observation operator mapping, joint representation operator construction, and multi-level iterative sparse reconstruction on each data block to obtain the local recovery signal corresponding to each data block; the length of the overlapping region between adjacent data blocks is less than the window length.

[0064] Specifically, in nuclear fusion diagnostics, the duration of a single discharge experiment can be quite long, resulting in diagnostic signal sequences with tens or even hundreds of thousands of sampling points. Directly reconstructing the entire long sequence would lead to excessive computational resource consumption and insufficient memory. Therefore, an overlapping sliding window block strategy is adopted. In a complete implementation, the window length is first set based on the sampling rate of the diagnostic signal and the time scale of interest. The window length determines the number of sampling points contained in each data block. Simultaneously, a window movement step size is set, which is smaller than the window length, thus creating an overlapping area between adjacent windows. Starting from the beginning of the long-range diagnostic sequence, the first window covers the data within the window length starting from the first sampling point. Undersampled observations and observation operator submatrices corresponding to this window are extracted, and the complete observation operator mapping, joint representation operator construction, and multi-level iterative sparse reconstruction are performed independently to obtain the local recovered signal corresponding to this window. Subsequently, the window is moved one step to the right along the time series direction, and the second window covers the data within the window length starting from the step position. The complete reconstruction process is also performed independently to obtain the second local recovered signal. This process continues until the window covers the end of the sequence. The overlap between two adjacent windows is equal to the window length minus the step size, and this overlap length is less than the window length. For example, with a specific window length and a step size of half that value, adjacent windows will have an overlap of half the window length. The recovery process for each data block is independent and can be accelerated using parallel computing.

[0065] It is worth noting that the overlapping sliding window block strategy plays a crucial role in balancing computational efficiency and boundary continuity. The smaller window length reduces the computational complexity and memory requirements of a single reconstruction, enabling efficient reconstruction even with limited computing resources. The overlapping areas between adjacent windows provide redundant information for subsequent weighted fusion, avoiding boundary discontinuities caused by strict block division. The independent parallel processing of each data block fully leverages the parallel computing capabilities of modern computing platforms, significantly shortening the overall reconstruction time for long sequences.

[0066] Preferably, the step of weighted fusion of adjacent overlapping blocks using a Hanning window to obtain a global recovery signal includes: configuring window weights for each data block, multiplying each local recovery data by its corresponding window weight element by element, and weighting and accumulating the results according to the position of each data block in the original nuclear fusion diagnostic data; dividing the weighted accumulation result at each position by the accumulated window weight value corresponding to that position to obtain the global recovery data; wherein, the window weight includes a Hanning window weight or a square root Hanning window weight.

[0067] Specifically, after obtaining the local recovery signals of all data blocks, the local recovery signals need to be fused to form a global signal. First, a window weight sequence with the same length as the window is generated for each data block. The window weights use either Hanning window weights or square root Hanning window weights; the former is a standard conical window, while the latter maintains the power normalization characteristics within the overlapping area after squaring. The Hanning window weight coefficients are close to one at the center of the window and gradually approach zero at the two edges, with a smooth transition from the center to the edge. The local recovery signal of each data block is multiplied element-wise with the window weight sequence of that data block to obtain the weighted local recovery signal. Then, according to the position of each data block in the original long-range diagnostic sequence, all weighted local recovery signals are accumulated at the corresponding positions, and the window weights of all data blocks at the same position are also accumulated. For each position, the weighted accumulated signal value is divided by the accumulated window weight value at that position to obtain the normalized global recovery signal value. Taking the overlapping region of two adjacent data blocks as an example, each data block contributes to the weighted signal within this region, and their respective window weights approach zero at the edges, but their sum remains constant (for the Hanning window) or close to constant (for the square root Hanning window) within the overlapping region. Therefore, the amplitude remains correct after division normalization. After performing the above weighted accumulation and normalization operations on all locations, the complete global recovery signal is obtained.

[0068] It should be noted that the window weight distribution, which maximizes at the center and approaches zero at the edges, ensures that each data block's contribution to the global signal is most significant in the central region and gradually weakens at the edges. The normalization strategy of weighted accumulation followed by division by the accumulated weight value ensures that the signal amplitude within overlapping regions is not distorted due to the superposition of multiple blocks. This fusion strategy effectively eliminates the block edge effect caused by block processing, resulting in physical continuity of the spliced ​​global signal in both time and space. It avoids amplitude jumps or discontinuities at data block boundaries, guaranteeing the physical rationality and smoothness of the recovered signal.

[0069] Preferably, the training of the multi-layer parameterized iterative structure employs a composite loss function, which includes at least two of the following: a reconstruction error term, a structural similarity constraint term, a sparse coefficient constraint term, and a gating weight constraint term.

[0070] Specifically, during the model training phase, a composite loss function is constructed to drive the optimization of network parameters. The reconstruction error term uses mean squared error or mean absolute error to measure the difference between the final recovered signal and the complete true signal; the structural similarity constraint term uses the structural similarity index (SSIM) or multi-scale structural similarity to maintain the local structural fidelity of the recovered signal; the sparse coefficient constraint term uses the L1 norm or group sparsity regularization to promote the sparsity of the sparse coefficients; and the gate weight constraint term uses weight entropy regularization or sparsity penalty to avoid excessive averaging or concentration of gate weights. In actual training, based on the characteristics of the specific diagnostic signal, two or more of the above constraint terms are selected for weighted combination to balance objectives such as reconstruction accuracy, structure preservation, and sparsity.

[0071] It should be noted that this composite loss function jointly optimizes all learnable parameters in the network (including the step size, threshold, and network parameters of the gating weight calculation module of each layer) through end-to-end backpropagation, so that the network learns the optimal recovery mapping relationship on the training set.

[0072] Accordingly, this embodiment also provides a nuclear fusion diagnostic data recovery system, including: The initial estimation signal calculation module is configured to acquire the undersampled observation signal generated by the nuclear fusion diagnostic equipment, construct an observation operator based on the sampling position corresponding to the undersampled observation signal, and map the undersampled observation signal to the complete signal space to obtain the initial estimation signal. The adaptive multi-basis joint representation construction module is configured to construct a joint dictionary based on multiple sparse representation bases with different structural representation capabilities, calculate the contribution weight of each base in combination with the initial estimation signal, and perform weighted combination of the reconstruction components of each base according to the contribution weight to obtain the adaptive joint representation operator. The sparse reconstruction module is configured to expand the sparse recovery iterative process based on the observation operator and the adaptive joint representation operator into a multi-layer parameterized iterative structure. In each layer, the observation residual is calculated based on the current sparse coefficients, the observation operator and the joint representation operator. The sparse coefficients are updated using the observation residuals and then shrunk by soft thresholding. After repeating the multi-layer iteration, the complete signal is obtained. The global continuous signal fusion module is configured to recover long-range diagnostic sequences by using overlapping sliding windows in block division, and to perform weighted fusion of adjacent overlapping blocks using Hanning windows to obtain the global recovered signal.

[0073] Specifically, the above modules can be implemented using software, hardware, or a combination of both. The input of the initial estimation signal calculation module is connected to the data acquisition system of the nuclear fusion diagnostic equipment to receive the undersampled observation signal and its sampling location information. This module contains a standardization processing submodule and an observation operator construction submodule. The standardization processing submodule is used to calculate the statistical characteristics of the observation signal and perform standardization, while the observation operator construction submodule is used to construct the observation operator based on the sampling location.

[0074] The adaptive multi-basis joint representation construction module is connected to the output of the initial estimation signal calculation module. Internally, it includes a joint dictionary storage unit, a gated weight calculation network, and a weighted combination unit. The joint dictionary storage unit pre-stores the transformation matrices of three basis bases (discrete cosine transform, wavelet transform, and spline smoothing basis). The gated weight calculation network is a multilayer perceptron structure, and the weighted combination unit is used to perform weighted superposition of basis reconstruction components.

[0075] The input of the sparse reconstruction module is connected to the adaptive multi-basis joint representation construction module and the initial estimation signal calculation module, respectively. Internally, it contains a series of multi-layer iterative units. Each iterative unit includes a residual calculation subunit, a gradient update subunit, and a soft-threshold shrinkage subunit. The residual calculation subunit calculates the observation residual based on the current sparse coefficients, the observation operator, and the joint representation operator. The gradient update subunit uses the observation residual, fed back through the transpose of the observation operator and the joint representation operator, and updates the sparse coefficients using a learnable step size. The soft-threshold shrinkage subunit performs soft-threshold shrinkage using independent layer threshold parameters for each basis.

[0076] The global continuous signal fusion module is connected to the output of the sparse reconstruction module. It contains a sliding window partitioning submodule, a window weight generation submodule (generating Hanning window or square root Hanning window weights), and a weighted accumulation and normalization submodule, which are used to fuse the local recovered signals into a global signal and output it.

[0077] It should be noted that each module in this system corresponds to a step in the described nuclear fusion diagnostic data recovery method. The data flow relationship between modules is consistent with the logical flow of the method, ensuring the complete implementation of the method at the system level. The loose coupling design between modules gives the system good scalability and maintainability; optimization and upgrades of any module will not affect the normal operation of other modules. The modular structure of the system also facilitates deployment on different computing platforms and can adapt to the actual engineering needs of nuclear fusion diagnostic data processing.

[0078] Example 2 This embodiment provides a method for recovering nuclear fusion diagnostic data. It addresses the problems of insufficient recovery accuracy, loss of structural details, and limited model interpretability faced by nuclear fusion diagnostic data under undersampling conditions. By organically integrating multi-basis sparse representation, adaptive gating mechanism, and deep unfolding reconstruction framework, it achieves joint characterization and high-precision recovery of smooth change structure, local mutation features, and multi-scale evolution law in diagnostic signals.

[0079] The core idea of ​​this method is as follows: First, an observation model is constructed based on the sampling method of the diagnostic data to obtain the initial signal to be recovered. Then, a multi-basis joint representation space is constructed, consisting of a discrete cosine transform basis, a wavelet transform basis, and a spline smoothing basis. An adaptive gating mechanism is used to dynamically evaluate the contribution of different basis bases to the current diagnostic signal, forming a joint representation operator that matches the structural features of the input signal. On this basis, the traditional sparse recovery optimization process is expanded into a finite-layer joint sparse iterative expansion network. Layer-by-layer optimization of sparse coefficients is achieved through observation consistency constraints, gradient feedback updates, and soft threshold shrinkage operations. Finally, a global continuous recovery result is obtained by combining a sliding window reconstruction and Hanning weighted fusion strategy. The model parameters are then trained and optimized end-to-end using a composite loss function, thereby achieving high-precision, stable, and well-interpretable recovery of nuclear fusion diagnostic data.

[0080] Specifically, the nuclear fusion diagnostic data recovery method in this embodiment includes: undersampled observation model construction (step 1), adaptive multi-basis joint representation construction (step 2), deep expansion sparse reconstruction (step 3), global continuous signal fusion (step 4), and model training optimization and result output (step 5). Step 1 is responsible for undersampled diagnostic signal preprocessing and observation model construction; Step 2 is responsible for constructing the adaptive gating mechanism and multi-basis joint representation operator; Step 3 is responsible for sparse coefficient iterative update and signal reconstruction based on the Joint-LISTA deep expansion structure; Step 4 is responsible for block recovery and continuous fusion of long-sequence diagnostic data; and Step 5 is responsible for model training optimization, recovery result output, and physical dimension restoration, detailed below.

[0081] Step 1: Preprocessing of undersampled diagnostic signals and construction of observation operators 1.1 Signal Normalization Processing Statistical feature analysis was performed on the discrete observation signals acquired by the nuclear fusion diagnostic equipment to calculate their mean and standard deviation, and standardization was performed to reduce the impact of different diagnostic channels, different experimental conditions or different physical dimensions on the subsequent recovery process.

[0082] 1.2 Construction of Observation Operator Based on the sampling location, sampling time, or effective observation index of the diagnostic signal, an observation operator is constructed to transform the complete signal space into the undersampled observation space. Let the complete diagnostic signal be... The undersampled observation signal is The length of the undersampled observation signal <Complete diagnostic signal length The observation process can then be represented as:

[0083] in, This represents the observation operator, used to select valid observation positions from the complete signal; This represents the observation noise or measurement error term. The observation equation describes the mapping between the complete diagnostic signal and the actual undersampled observation data, and provides data consistency constraints for the subsequent sparse reconstruction process.

[0084] 1.3 Initial Signal Estimation By using backfilling or zero-filling projection, undersampled observation data is mapped back to the complete signal space to obtain the initial signal vector to be recovered, providing input for subsequent multi-basis sparse characterization and deep unfolding reconstruction.

[0085] Step 2: Construction of a multi-basis joint dictionary based on adaptive gating mechanism 2.1 Construction of a multi-base joint dictionary A joint sparse representation space consisting of a discrete cosine transform basis, a wavelet transform basis, and a spline basis is constructed to characterize nuclear fusion diagnostic signals at different structural scales. Specifically, the discrete cosine transform basis is mainly used to characterize the global smooth variation trend of the signal, the wavelet transform basis is mainly used to characterize local abrupt changes and transient perturbation structures, and the spline smooth basis is mainly used to describe slow evolution, continuous curve-like changes, and local curvature features.

[0086] 2.2 Adaptive Gating Weight Calculation The initial signal vector to be recovered obtained in step 1 is input into the gated weight calculation module, and the contribution weights corresponding to each basis are obtained through multi-layer nonlinear mapping. Let the initial signal vector to be recovered be... The gating weight calculation module is Then the gating weights corresponding to each basis can be expressed as:

[0087] in, Represents the gating weights for different sparse bases. This represents the gated activation function, and a suitable activation function can be selected based on the specific implementation. This weight is used to characterize the relative importance of different sparse bases in the current diagnostic signal recovery task, enabling the model to adaptively adjust its representation based on the structural characteristics of the input signal.

[0088] 2.3 Construction of Adaptive Joint Representation Operator Based on the gating weights obtained in step 2.2, the reconstructed components corresponding to different sparse bases are weighted and combined to form an adaptive joint representation operator that matches the structure of the current input signal. Let... Indicates the first A sparse substrate This represents the corresponding sparsity coefficient. The gating weights corresponding to the basis are used to recover the signal. It can be uniformly represented as:

[0089] in, This indicates the number of sparse substrates; in this embodiment, These correspond to the discrete cosine transform basis, wavelet transform basis, and spline smoothing basis, respectively. The adaptive joint representation operator constructed in this way is used for sparse coefficient updating and signal recovery in the subsequent deep unfolding reconstruction process.

[0090] Step 3: Sparse Reconstruction Based on Joint Iterative Expansion Structure The purpose of this step is to expand the traditional compressed sensing sparse recovery iterative process into a finite-layer parameterized iterative structure, so that each layer corresponds to one sparse coefficient update process. Specifically, step 3.1 is responsible for calculating the observation consistency residual, step 3.2 is responsible for updating the sparse domain gradient, and step 3.3 is responsible for domain-specific soft thresholding shrinkage. Steps 3.1, 3.2, and 3.3 constitute a single-layer joint sparse iterative process, which is repeated in each layer of the network to gradually optimize the sparse coefficients and recover the complete diagnostic signal.

[0091] Let the first The sparsity coefficient of the layer is The adaptive joint representation operator is The observation operator is The undersampled observation signal is The specific update process for each layer is as follows: 3.1 Calculation of observation consistency residuals Based on the estimated sparsity coefficient of the current layer and the adaptive joint representation operator constructed in step 2 Generate the reconstruction signal corresponding to the current layer. And through observation operators This data is mapped to the observation space; subsequently, the residual vector between this mapping result and the actual undersampled observation data is calculated to measure the consistency error between the current reconstruction result and the true observations. This observation residual can be expressed as:

[0092] in, Indicates the first Layer observation consistency residuals.

[0093] 3.2 Gradient Update in Sparse Domain The residual vector obtained in step 3.1 is fed back to the sparse representation domain through the transpose mapping of the observation operator and the transpose mapping of the joint representation operator. Combined with the learnable step size parameter of the current layer, the sparse coefficients are updated with gradients, so that the reconstruction result gradually approximates the actual observation data. This update process can be represented as:

[0094] in, Indicates the first The learnable step size parameter of the layer, This represents the intermediate sparse coefficients after gradient update.

[0095] 3.3 Domain-specific soft threshold shrinkage A soft-threshold shrinkage operation is performed on the intermediate sparse coefficients obtained in step 3.2, and corresponding layer-independent threshold parameters are set for different sparse substrates to suppress noise components and invalid perturbations while preserving the main structural features in the diagnostic signal. This shrinkage process can be expressed as:

[0096] in, Indicates the first The layer's domain threshold parameter, This represents the soft-threshold shrinkage operator. For any element... The soft threshold shrinkage operator can be expressed as:

[0097] in, The sign function is represented. By repeating the above residual calculation, gradient update, and threshold shrinkage process multiple times, the final sparse coefficient representation is obtained, and the complete diagnostic signal is further recovered.

[0098] Step 4: Global Physics Reconstruction Based on Sliding Window and Hanning Weights 4.1 Block-based parallel recovery An overlapping sliding window mechanism is used to divide long-range diagnostic sequences into blocks, ensuring that each data block can still maintain high-precision reconstruction even under limited computing resources.

[0099] 4.2 Structural Continuity Integration By using the Hanning window to perform weighted fusion on adjacent overlapping blocks, the block edge effect is eliminated, ensuring that the output physical profile satisfies physical continuity in the time dimension.

[0100] Step 5: Model training optimization and recovery result output based on composite loss function To improve the recovery accuracy, structure preservation capability, and model stability of diagnostic signals under undersampling conditions, this embodiment introduces a composite loss function to optimize the learnable parameters in the deep unfolded structure during the training phase, and restores the physical dimensions of the recovery results during the inference phase to obtain the final recovered signal.

[0101] 5.1 Optimization of Composite Loss Function During the model training phase, mean squared error loss, one-dimensional structural similarity loss, sparse coefficient regularization term, and gated weight constraint term are used together to perform end-to-end optimization of the model. Let the recovered signal be... The complete diagnostic signal is The sparsity coefficient is The gating weight is The composite loss function can then be expressed as:

[0102] in, Used to constrain the consistency between the recovery results and the reference signal in terms of overall amplitude and trend. Used to enhance the preservation of local structure, peak variations, and morphological details; , , All are preset weighting coefficients. Used to constrain sparse coefficients This is used to constrain the stability of the gating weights. The aforementioned composite loss function is used to perform end-to-end training optimization of the step size, threshold, and gating weight calculation module parameters in the joint sparse iterative expansion structure.

[0103] 5.2 Output of Recovery Results and Restoration of Physical Dimensions During the model inference phase, the undersampled diagnostic signal to be recovered is input into the trained recovery model. After preprocessing, adaptive construction of the joint dictionary, deep unfolding sparse reconstruction, and overlapping block weighted fusion, the complete recovered signal in the normalized space is obtained. Subsequently, the recovered signal is denormalized based on the mean and standard deviation recorded in step 1.

[0104] in, This represents the recovered signal in the normalized space. and These represent the mean and standard deviation of the original signal recorded in step 1, respectively. This represents the diagnostic signal after restoration to the original physical dimensions. The final output includes complete nuclear fusion diagnostic recovery data and corresponding visualization results.

[0105] Experimental verification To verify the recovery performance of this method under undersampling conditions of nuclear fusion diagnostic data, actual acquired nuclear fusion diagnostic time series data was used as an example. First, the complete diagnostic signal was randomly undersampled, retaining only a portion of the observation points as observation data, with the remaining locations as data to be recovered. Then, the proposed method was used to reconstruct the undersampled signal.

[0106] In the experiment, the observed data were first normalized, and an observation operator was constructed based on the sampling location. Then, a multi-basis joint representation space was constructed using discrete cosine transform, wavelet transform, and spline smoothing bases. An adaptive gating mechanism was used to dynamically calculate the contribution weights of each representation domain, and a joint sparse iterative expansion structure was combined to complete sparse reconstruction. Finally, a weighted fusion of overlapping sliding windows and Hanning windows was used to obtain the complete reconstruction result.

[0107] The overall recovery results of this method are attached. Figure 2 As shown, both the sampling points and amplitudes are dimensionless data (this will not be elaborated further). From Figure 2 As can be seen, even under high undersampling conditions, this method can still recover the overall trend and main structural features of the diagnostic signal well, and the recovery results have a high degree of consistency with the original signal.

[0108] To further verify the local structural recovery capability, attached Figure 3 Local magnification results for a typical region are presented. Figure 3 As can be seen, this method can better preserve the variation characteristics and local detailed structure near the signal peak, and still has good recovery ability in rapidly changing regions.

[0109] For comparison, see attached Figure 4 The restoration results obtained using the traditional linear interpolation method are presented. (See attached diagram.) Figure 2 and attached Figure 3 In comparison, while linear interpolation methods can recover the overall trend of signal changes, they are significantly lacking in the recovery of local details, peak preservation, and rapidly changing regions, making it difficult to accurately reconstruct the structural information in the original signal.

[0110] The above results show that the proposed method can effectively improve the recovery accuracy of nuclear fusion diagnostic data under undersampling conditions, and has good structure preservation capability and practical application value.

[0111] Appendix Figure 5The changes in adaptive gating weights for different reconstruction blocks during the recovery process of this method are presented, where the reconstruction block number and gating weight are dimensionless data. Figure 5 As can be seen, the weights of different sparse representation bases change dynamically with the location of the reconstruction block; the discrete cosine transform base has a high weight in most regions, while the wavelet transform base and spline smoothing base have significantly increased weights in some local regions. This indicates that the proposed method can adaptively adjust the contribution of different representation domains according to the local structural features of the diagnostic signal, thereby achieving more effective sparse representation and data recovery.

[0112] Table 1 - Structural similarity indices of recovery results under different missing rates

[0113] Furthermore, to quantitatively evaluate the structure preservation ability of this method under different undersampling conditions, Table 1 presents the structural similarity index of the recovered results under different missing rates. As shown in Table 1, when the missing rate is 60%, the SSIM (structural similarity index) of the recovered results is 92.96%; when the missing rate increases to 80%, the SSIM (structural similarity index) of the recovered results remains at 82.41%. These results indicate that this method still possesses good structure preservation ability and recovery stability under high missing rate conditions.

[0114] Example 3 This embodiment provides a computer device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the nuclear fusion diagnostic data recovery method of Embodiment 1 or 2. The computer program can be in the form of source code, object code, executable file, or some intermediate form.

[0115] Example 4 This embodiment provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the nuclear fusion diagnostic data recovery method of Embodiment 1 or 2. The computer program can be in the form of source code, object code, executable file, or some intermediate form. The storage medium includes any entity or device capable of carrying computer program code, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc.

[0116] The above description is merely a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the forms disclosed herein and should not be construed as excluding other embodiments. It can be used in various other combinations, modifications, and environments, and can be altered within the scope of the concept described herein through the above teachings or related technologies or knowledge. Modifications and variations made by those skilled in the art that do not depart from the spirit and scope of the present invention should be within the protection scope of the appended claims.

[0117] It should be noted that, for the sake of simplicity, the foregoing method embodiments are described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.

Claims

1. A nuclear fusion diagnostic data recovery method, characterized by, include: The undersampled observation signal generated by the nuclear fusion diagnostic equipment is acquired, an observation operator is constructed based on the sampling position corresponding to the undersampled observation signal, and the undersampled observation signal is mapped to the complete signal space to obtain the initial estimated signal; A joint dictionary is constructed based on multiple sparse representation bases with different structural representation capabilities. The contribution weight of each base is calculated in combination with the initial estimation signal. The reconstruction components of each base are weighted and combined according to the contribution weight to obtain an adaptive joint representation operator. The sparse recovery iterative process based on the observation operator and the adaptive joint representation operator is expanded into a multi-layer parameterized iterative structure. In each layer, the observation residual is calculated based on the current sparse coefficients, the observation operator, and the joint representation operator. The sparse coefficients are updated using the observation residuals and then shrunk by soft thresholding. After repeating the multi-layer iteration, the complete signal is obtained. Long-range diagnostic sequences are recovered by overlapping sliding window blocks, and adjacent overlapping blocks are weighted and fused using Hanning window to obtain the global recovery signal.

2. The nuclear fusion diagnostic data recovery method of claim 1, wherein, The process of acquiring undersampled observation signals generated by nuclear fusion diagnostic equipment, constructing observation operators based on the sampling positions corresponding to the undersampled observation signals, and mapping the undersampled observation signals to the complete signal space to obtain an initial estimated signal includes: Statistical feature analysis is performed on the discrete observation signals collected by the nuclear fusion diagnostic equipment to calculate the mean and standard deviation and perform standardization processing; based on the effective observation index of the diagnostic signal, an observation operator is constructed from the complete signal space to the undersampled observation space, which is used to select the effective observation position from the complete signal; the undersampled observation data is mapped back to the complete signal space using zero-filling projection to obtain the initial estimated signal.

3. The nuclear fusion diagnostic data recovery method of claim 2, wherein, The observation operator that constructs the transition from the complete signal space to the undersampled observation space includes: Let the length of the complete diagnostic signal be N, and the length of the undersampled observation signal be M, where M < N. Use an M x N matrix as the observation operator. This matrix extracts the observation value at the corresponding index position from the complete signal based on the sampling time or spatial position of the nuclear fusion diagnostic device. The observation process is represented as y = Ax + n, where y is the undersampled observation signal, x is the complete diagnostic signal, A is the observation operator, and n is the observation noise or measurement error term.

4. The nuclear fusion diagnostic data recovery method of claim 1, wherein, The sparse representation basis with different structural characterization capabilities includes a discrete cosine transform basis, a wavelet transform basis, and a spline smoothing basis. The discrete cosine transform basis is used to characterize the global smooth change trend of the diagnostic signal, the wavelet transform basis is used to characterize the local abrupt changes and transient perturbation structure of the diagnostic signal, and the spline smoothing basis is used to describe the evolution curve characteristics and local curvature changes of the diagnostic signal.

5. The method for recovering nuclear fusion diagnostic data according to claim 1, characterized in that, The calculation of the contribution weights of each basis in conjunction with the initial estimated signal includes: The initial estimated signal is input into the gated weight calculation module, which extracts features from the initial estimated signal through multi-layer nonlinear mapping. The extracted features are then mapped to the contribution weights of the three basis functions through a gated activation function. These contribution weights are scalar values ​​used to characterize the relative importance of the corresponding basis function in the current diagnostic signal recovery task. Each contribution weight is adaptively adjusted according to the structural features of the input signal.

6. The method for recovering nuclear fusion diagnostic data according to claim 1, characterized in that, The step of weighting and combining the reconstructed components of each basis according to the contribution weight to obtain the adaptive joint representation operator includes: Based on the contribution weights corresponding to each basis, the discrete cosine transform basis, wavelet transform basis, and spline smoothing basis and their corresponding sparse coefficients are weighted and combined to construct an adaptive joint representation operator. The joint sparse coefficients are mapped to the complete signal space using the adaptive joint representation operator to obtain the recovered signal. The adaptive joint representation operator adaptively adjusts the contribution of different basis to the recovered signal according to the structural characteristics of the input signal.

7. The method for recovering nuclear fusion diagnostic data according to claim 1, characterized in that, The sparse recovery iterative process based on the observation operator and the adaptive joint representation operator is expanded into a multi-layer parameterized iterative structure, including: The iterative soft thresholding method in compressed sensing theory is expanded into a deep neural network structure with a fixed number of layers along the time dimension. Each layer corresponds to a complete iterative update process in the traditional iterative algorithm. The layers are sequentially connected, and the output of the current layer serves as the input of the next layer. Each layer contains learnable step size parameters and threshold parameters, and is optimized through training data-driven methods.

8. The method for recovering nuclear fusion diagnostic data according to claim 1, characterized in that, The step of calculating the observation residual in each layer based on the current sparse coefficients, the observation operator, and the joint representation operator includes: The sparse coefficients of the current layer are transformed into a reconstructed signal using a joint representation operator. The reconstructed signal is then mapped to the observation space using an observation operator to obtain a reconstructed estimate of the observation space. The difference between the reconstructed estimate and the undersampled observation signal is calculated as the observation residual, which is used to measure the degree of deviation between the current reconstruction result and the actual observation data.

9. The method for recovering nuclear fusion diagnostic data according to claim 1, characterized in that, The process of updating the sparse coefficients using the observed residuals and then shrinking them using a soft threshold includes: The observation residuals are sequentially passed through the transpose mapping of the observation operator and the transpose mapping of the joint representation operator, and then fed back to the sparse representation domain. The feedback result is multiplied by the learnable step size parameter of the current layer to obtain the product result. The product result is subtracted from the sparse coefficients of the current layer to obtain the intermediate sparse coefficients after gradient update. The learnable step size parameter is adaptively adjusted during model training.

10. The method for recovering nuclear fusion diagnostic data according to claim 9, characterized in that, The process of updating the sparse coefficients using the observed residuals and then shrinking them using a soft threshold also includes: For each element in the intermediate sparse coefficients after gradient update, retain its sign according to its positive or negative sign, subtract the absolute value from the threshold, and if the difference is greater than zero, retain the difference as the value of the shrunken element; if the difference is not greater than zero, set the element to zero; where different sparse bases correspond to their own independent layer independent threshold parameters, and each threshold parameter is optimized separately during model training.

11. The method for recovering nuclear fusion diagnostic data according to claim 1, characterized in that, The method of recovering long-range diagnostic sequences using overlapping sliding windows in blocks includes: A fixed-length sliding window is set along the time series direction of the diagnostic signal. The window is moved according to a set step size to divide the long-range diagnostic sequence into multiple data blocks with overlapping regions. The observation operator mapping, joint representation operator construction and multi-level iterative sparse reconstruction are performed independently on each data block to obtain the local recovery signal corresponding to each data block. The length of the overlapping region between adjacent data blocks is less than the window length.

12. The method for recovering nuclear fusion diagnostic data according to claim 1, characterized in that, The step of weighted fusion of adjacent overlapping blocks using the Hanning window to obtain the global recovery signal includes: Configure window weights for each data block, multiply each local recovered data with its corresponding window weight element by element, and then perform weighted summation according to the position of each data block in the original nuclear fusion diagnostic data. The weighted summation result at each position is divided by the accumulated window weight value corresponding to that position to obtain the global recovery data; The window weights include Hanning window weights or square root Hanning window weights.

13. The method for recovering nuclear fusion diagnostic data according to claim 1, characterized in that, The training of the multi-layer parameterized iterative structure employs a composite loss function, which includes at least two of the following: a reconstruction error term, a structural similarity constraint term, a sparse coefficient constraint term, and a gated weight constraint term.

14. A nuclear fusion diagnostic data recovery system, characterized in that, include: The initial estimation signal calculation module is configured to acquire the undersampled observation signal generated by the nuclear fusion diagnostic equipment, construct an observation operator based on the sampling position corresponding to the undersampled observation signal, and map the undersampled observation signal to the complete signal space to obtain the initial estimation signal. The adaptive multi-basis joint representation construction module is configured to construct a joint dictionary based on multiple sparse representation bases with different structural representation capabilities, calculate the contribution weight of each base in combination with the initial estimation signal, and perform weighted combination of the reconstruction components of each base according to the contribution weight to obtain the adaptive joint representation operator. The sparse reconstruction module is configured to expand the sparse recovery iterative process based on the observation operator and the adaptive joint representation operator into a multi-layer parameterized iterative structure. In each layer, the observation residual is calculated based on the current sparse coefficients, the observation operator and the joint representation operator. The sparse coefficients are updated using the observation residuals and then shrunk by soft thresholding. After repeating the multi-layer iteration, the complete signal is obtained. The global continuous signal fusion module is configured to recover long-range diagnostic sequences by using overlapping sliding windows in block division, and to perform weighted fusion of adjacent overlapping blocks using Hanning windows to obtain the global recovered signal.

15. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the nuclear fusion diagnostic data recovery method according to any one of claims 1-13.

16. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the nuclear fusion diagnostic data recovery method according to any one of claims 1-13.