A method for generating basis sets of metabolites in magnetic resonance spectroscopy for deep quantum computing
Through deep quantum computing and deep learning technology, the density matrix update in the process of quantum simulation base set generation is learned, and the base set is generated based on the spin echo sequence, which solves the challenge of metabolite base set data generation in the existing technology and achieves higher Quality and flexible basis set generation improves the accuracy and application potential of magnetic resonance spectroscopy.
Patent Information
- Application Number
- CN202410951541.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-16
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-07-16
AI Technical Summary
Existing magnetic resonance spectroscopy technology has challenges in generating high-quality metabolite basis set data. In particular, it is difficult to efficiently and accurately model different metabolite basis sets under different experimental conditions and sequence requirements, which limits the use of deep learning algorithms. Realizing potential in medical applications.
Using deep quantum computing methods, deep learning technology is used to learn the density matrix update in the quantum simulation base set generation process, generate base sets based on spin echo sequences, and adapt to the situation of multiple TEs and multiple metabolites to build a pulse based on the Densenet network module and evolution module, designing loss functions to improve the generalization ability and accuracy of the model.
It achieves more flexible and accurate base set generation, enhances the generalization ability of the model, provides higher-quality data support, provides new tools and methods for magnetic resonance spectrum analysis, and enhances the application potential in medicine and other fields.
Smart Images

Figure CN118504288B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of magnetic resonance spectroscopy, and in particular to a method for generating a magnetic resonance spectroscopy metabolite basis set based on deep quantum computing and quantum mechanics theory and a deep learning model. Background Art
[0002] Magnetic resonance spectroscopy (MRS) is a non-invasive medical imaging technique that can obtain the spectrum of metabolites in the human brain. The standard spectrum of metabolites (also called basis set) is used to linearly fit the actual spectrum collected to infer the concentration of metabolites in the brain. These metabolite concentrations can be used to diagnose various diseases, including brain tumors, epilepsy, Alzheimer's disease, etc.
[0003] Typical basis set generation is mainly based on physical numerical simulation methods, which are divided into macroscopic Bloch equations and microscopic quantum mechanics. The former is mainly based on the Bloch equations of magnetic resonance, but it cannot fully describe the evolution of the spin system during the basis set generation process in the coupled spin system. The latter better explains the basis set generation process from the perspective of microscopic particles, but the computational cost is high and the generation speed is slow.
[0004] In recent years, deep learning methods have shown great potential in the field of magnetic resonance spectroscopy, such as denoising and metabolite quantification, and integrating these methods into the platform makes spectral data processing simpler and more intuitive. However, deep learning requires a large amount of high-quality data for training the network, which is difficult to obtain in actual medical applications. At present, a feasible approach is to use deep learning methods based on magnetic resonance physics to generate simulated data. Despite this, existing methods still face challenges in generating high-quality data to train deep learning models, especially in the face of different experimental conditions and sequence requirements. How to efficiently and accurately model different metabolite basis sets under different acquisition parameters, thereby providing real and reliable data for downstream tasks.
[0005] In summary, the MRS field currently lacks a large amount of high-quality metabolite basis set data, which makes it impossible to effectively tap the potential of deep learning algorithms. Summary of the invention
[0006] The purpose of the present invention is to address the above-mentioned problems existing in the prior art and to provide a method for generating a basis set of magnetic resonance spectroscopy metabolites by deep quantum computing. By using deep learning technology, the update of the density matrix in the process of quantum simulation basis set generation is learned, and basis set generation is performed based on spin echo sequences. At the same time, it can adapt to the situation of multiple TEs and multiple metabolites, thereby improving the generalization ability and accuracy of the model and providing a more flexible and accurate simulation strategy for basis set generation.
[0007] The present invention comprises the following steps:
[0008] 1) Data generation: Obtain the spin system structure information of different metabolites from the existing database, convert it into data that can be used for magnetic resonance physics simulation, generate a simulated spin system matrix data set as a training data set, and generate the Hamiltonian operator, density operator and metabolite basis set under the pulse sequence based on quantum simulation;
[0009] 2) Design network: construct a basis set generation network and loss function based on deep quantum computing;
[0010] 3) Training network: Use the training data set constructed in step 1) as the training set of the deep learning network built in step 2) to train and obtain the trained BS-net network model;
[0011] 4) Basis set generation: Load the trained BS-net network model from step 3) and generate a metabolite basis set based on the spin echo sequence.
[0012] In step 1), the spin system structure information of different metabolites is obtained. The metabolite spin system comes from an existing database. The XML file data is read and parsed to obtain the initial parameters of the spin system data. The spin system data includes chemical shift and J coupling constant. According to the initial parameters, the initial spin density matrix is generated based on the principle of quantum mechanics. , save it as a mat file, take the initial spin density matrix saved as a mat file as input, use the magnetic resonance physics simulation data program to perform simulation calculations, and generate a simulated spin system matrix data set ;
[0013] After obtaining the spin system data, generate the Hamiltonian operator and density operator as follows:
[0014] (1)
[0015] (2)
[0016] in, For the The Hamiltonian operator for the time interval, Representative time interval, is the coupled spin number of the metabolite, For the The coupled spins It is spin Chemical shift relative to a reference molecule, usually tetramethylsilane, It is Spin in The angular momentum operator in the direction, It is Spin in The angular momentum operator in the direction, It is Spin in The angular momentum operator in the direction, represents pi, which is approximately 3.14. is the gyromagnetic ratio, It is spin and The J coupling constant between It is The angular momentum operator for a spin, It is The angular momentum operator for a spin, It is The gradient vector of the time interval, is the position vector from the isocenter of the magnet, It is The nutation angular frequency of the RF pulses is is the phase of the RF pulse; For the The density operator for a time interval;
[0017] In step 2), the specific method of constructing a basis set generation network and a loss function based on deep quantum computing is:
[0018] (1) Design a pulse module Ex-net to learn the 90-degree pulse and 180-degree pulse process of the spin echo sequence. The design is based on the Densenet network.
[0019] The input samples based on the Densenet network have 2 channels, corresponding to the real part and the imaginary part;
[0020] The network first passes through a convolutional layer with a convolution kernel size of 1 1. This convolutional layer converts the 2 channels of the input into 64 channels. This convolutional layer increases the number of features. After the convolutional layer, batch normalization is performed, which helps speed up the training process and improve the stability of the network. Then, nonlinearity is introduced using an activation function, and ReLU is used here.
[0021] The network contains a stack of four dense blocks and three transition layers. The dense blocks help learn the multi-scale features of the network, and the transition layers can reduce the number of channels and spatial dimensions. The dense blocks contain a series of dense layers. Each dense layer contains a convolutional block, which contains batch normalization, ReLU activation function, 3 3 convolutional layers and Dropout layers, the outputs of these layers are connected together and used as the input of the next layer; the transition layer contains batch normalization, ReLU activation function, 1 1 convolutional layer and Dropout layer;
[0022] Finally, after a 1 1 convolution layer, perform dimensionality reduction operation, reduce the number of output channels of the network to 2, output the learning results, and the two output channels correspond to the real part and the imaginary part respectively;
[0023] The network output of the pulse module Ex-net is expressed as :
[0024] (3)
[0025] in, For the The density operator of the time interval is used as the input of the pulse module Ex-net network. Represents the network parameter set of the pulse module Ex-net;
[0026] Loss function of the pulse module Ex-net Defined as:
[0027] (4)
[0028] in, , is the loss function parameter, For the The density operator of the time interval and the pulse module Ex-net network input, It is the network output of the pulse module Ex-net. Represents the network parameter set of the pulse module Ex-net;
[0029] (2) Design an evolution module Ev-net to learn the update process of the density operator over time. The network is based on the Densenet network, and the Densenet network structure is the same as the pulse module Ex-net structure;
[0030] The learning of the evolution module is related to the echo time TE. The evolution of the spin density operator over time is as follows:
[0031] (5)
[0032] in, For the The density operator for time intervals, For the The density operator for time intervals, is an imaginary unit, For the The Hamiltonian operator for the time interval, For the The starting time point of the time interval, For the The starting time point of the time interval;
[0033] The network input of the evolution module Ev-net is , which is the network output of the pulse module Ex-net; the network output of the evolution module Ev-net is expressed as :
[0034] (6)
[0035] in, Represents the network parameter set of the evolution module Ev-net; It is the network output of the evolution module Ev-net;
[0036] Loss function of the evolution module Ev-net Defined as:
[0037] (7)
[0038] in, is the network output of the evolution module Ev-net, For the The density operator of the time interval is the true value of the network;
[0039] (3) Design a readout module to generate the basis set signal;
[0040] In the readout module, the signal in the time domain is generated according to the density operator ;
[0041] S ( n ) = 1 2 N p − 1 ∑ j = 1 M t r [ ( I x j + i I y j ) ρ n ] (8)
[0042] in, is the number of points, set to 2048 points, is the coupled spin number of the metabolite, For the The coupled spins is the trace function (the sum of the main diagonal elements of the matrix), For the Spin in The angular momentum operator in the direction, For the first Spin in The angular momentum operator in the direction, is an imaginary unit, It is The spin density operator at the time interval.
[0043] In step 3), construct the loss function of the Bs-net network :
[0044] (9)
[0045] in, is the loss function parameter of the pulse module Ex-net, is the loss function parameter of the evolution module Ev-net, is the loss function of the pulse module Ex-net, is the loss function of the evolution module Ev-net.
[0046] In step 4), a spin echo sequence is used as a verification sequence. The complete process of the spin echo sequence includes six modules: initial Hamiltonian operator and density operator generation, excitation, evolution, flipping, evolution, and readout. After combining the modules in step 3 in the order of the spin echo sequence, the basis set generated according to the spin echo sequence is obtained.
[0047] Compared with the prior art, the advantages of the present invention are as follows:
[0048] The present invention processes magnetic resonance spectroscopy (MRS) data through a deep neural network method, which can learn the pulse task of the sequence and the process of density operator evolution over time, and integrate them into a unified network, and perform basis set simulation based on the spin echo sequence. At the same time, the network can adapt to the situation of multiple TEs and multiple metabolites, enhance the generalization ability and accuracy of the model, and provide a more flexible and accurate simulation strategy for basis set generation. The present invention can be used for artificial intelligence processing of magnetic resonance spectroscopy. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] Figure 1 It is a holistic process for the generation of a basis set of metabolites in magnetic resonance spectroscopy using deep quantum computing.
[0050] Figure 2 A network graph generated from a deep quantum computing magnetic resonance spectroscopy metabolite basis set.
[0051] Figure 3 This is a result map generated by deep quantum computing of the magnetic resonance spectroscopy metabolite basis set.
[0052] Figure 4 It is a multi-metabolite result map generated by a deep quantum computing magnetic resonance spectroscopy metabolite basis set.
[0053] Figure 5 A multi-TE result map generated by a deep quantum computing magnetic resonance spectroscopy metabolite basis set. DETAILED DESCRIPTION
[0054] In order to more clearly explain the objectives, technical solutions and advantages of the present invention, the embodiment of the present invention generates a network training set according to the density operator evolution process under quantum mechanics, learns the evolution process of the density operator by designing a network module, and obtains the final metabolite basis set after training; and verifies the accuracy of the network learning results under a spin echo sequence.
[0055] The present invention will be further described in detail below through specific embodiments in conjunction with the accompanying drawings.
[0056] like Figure 1 As shown, the embodiment of the present invention includes the following steps:
[0057] Step 1: Obtain the spin system structure information of different metabolites, and generate the Hamiltonian operator matrix, density operator matrix and metabolite basis set under the pulse sequence based on quantum simulation; specifically including:
[0058] The metabolite spin system dataset used is from a public dataset. Molecules with a spin number of 6 are selected as learning objects to obtain the chemical shifts of different metabolites. and J coupling constant , and obtain the initial spin system as input for the magnetic resonance physics simulation program.
[0059] After obtaining the spin system data, the spin echo sequence is used as the verification sequence to generate the initial Hamiltonian operator and density operator, and the basis set signals of the density operator and metabolites before and after excitation, evolution, and flipping are used as labels for network training.
[0060] The Hamiltonian and density operators are generated as follows:
[0061] (1)
[0062] (2)
[0063] in, For the The Hamiltonian operator for the time interval, For the The density operator for a time interval; Representative time interval, is the coupled spin number of the metabolite, For the The coupled spins It is spin Chemical shift relative to a reference molecule, which is usually chosen to be tetramethylsilane; It is Spin in The angular momentum operator in the direction, It is Spin in The angular momentum operator in the direction, It is Spin in The angular momentum operator in the direction, represents pi, which is approximately 3.14. is the gyromagnetic ratio, It is spin and The J coupling constant between It is The angular momentum operator for a spin, It is The angular momentum operator for a spin, It is The gradient vector of the time interval, is the position vector from the isocenter of the magnet, It is The nutation angular frequency of the RF pulses is is the phase of the RF pulse.
[0064] The parameters of the base set simulation are set as follows:
[0065] The line width is set to 2, the number of points is 2048, the field strength is 3.0T, and the spectrum width is set to 2000. The processed data set is divided into training set and test set according to a fixed ratio (0.75:0.25). The training set contains 819 spin system data, the test set contains 273 spin system data, and there are 1092 different metabolite spin system data in total.
[0066] After obtaining the spin system data, the echo time TE was set to [1:5:100], and finally 21,840 spin system data of multiple TE and multiple metabolites were obtained.
[0067] Step 2: Construct a basis set generation network and loss function based on deep quantum computing.
[0068] a) Design a pulse module Ex-net to learn the 90-degree pulse and 180-degree pulse process of the spin echo sequence. The design is based on the Densenet network.
[0069] The input size of the Densenet-based network is 32 2 64 64, set each batch to have 32 samples, each sample has 2 channels, the 2 channels correspond to the real part and the imaginary part respectively, and the sample size is 64 64 pixels.
[0070] The network first passes through a convolutional layer with a convolution kernel size of 1 1. This convolutional layer converts the 2 channels of the input into 64 channels; this convolutional layer increases the number of features. After the convolutional layer, batch normalization is performed to help speed up the training process and improve the stability of the network; then an activation function is used to introduce nonlinearity, and ReLU is used here.
[0071] The network contains a stack of 4 dense blocks and 3 transition layers, such as Figure 2 As shown in Figure (c), the dense block helps to learn the multi-scale features of the network, and the transition layer can reduce the number of channels and spatial dimensions. The dense block contains a series of dense layers; each dense layer contains a convolution block, which contains batch normalization, ReLU activation function, 3 3 convolutional layers and Dropout layers, the outputs of these layers are connected together and used as the input of the next layer. The transition layer contains batch normalization, ReLU activation function, 1 1 convolutional layer and Dropout layer.
[0072] Finally, after a 1 1 convolution layer, perform dimensionality reduction operation, reduce the number of output channels of the network to 2, output the learning results, and the two output channels correspond to the real part and the imaginary part respectively.
[0073] The network output of the pulse module Ex-net is expressed as :
[0074] (3)
[0075] in, For the The density operator of the time interval is also the input of the pulse module Ex-net network. Represents the network parameter set of the pulse module Ex-net;
[0076] Loss function of the pulse module Ex-net Defined as:
[0077] (4)
[0078] in, , is the loss function parameter, For the The density operator of the time interval is also the input of the pulse module Ex-net network. It is the network output of the pulse module Ex-net. Represents the network parameter set of the pulse module Ex-net.
[0079] b) Design an evolution module Ev-net to learn the update process of the density operator over time. The network is implemented based on the Densenet network, and the Densenet network structure is the same as the pulse module Ex-net structure.
[0080] The learning of the evolution module Ev-net is related to the echo time TE. The evolution of the spin density operator over time is as follows:
[0081] (5)
[0082] in, For the The density operator for time intervals, For the The density operator for time intervals, is an imaginary unit, For the The Hamiltonian operator for the time interval, For the The starting time point of the time interval, For the The starting time point of the time interval.
[0083] The network input of the evolution module Ev-net is , which is the output of the pulse module Ex-net; the network output of the evolution module Ev-net is expressed as :
[0084] (6)
[0085] in, Represents the network parameter set of the evolution module Ev-net; It is the network output of the evolution module Ev-net;
[0086] Loss function of the evolution module Ev-net Defined as:
[0087] (7)
[0088] in, is the network output of the evolution module Ev-net, For the The density operator of the time interval is the true value of the network.
[0089] c) Design a readout module to generate the basis set signal.
[0090] In the readout module, the signal in the time domain is generated according to the density operator .
[0091] S ( n ) = 1 2 N p − 1 ∑ j = 1 M t r [ ( I x j + i I y j ) ρ n ] (8)
[0092] in, is the number of points, set to 2048 points, is the coupled spin number of the metabolite, For the The coupled spins is the trace function (the sum of the main diagonal elements of the matrix), For the Spin in The angular momentum operator in the direction, For the first Spin in The angular momentum operator in the direction, is an imaginary unit, It is The spin density operator at the time interval.
[0093] The third step is to construct the loss function of the Bs-net network :
[0094] (9)
[0095] in, is the loss function parameter of the pulse module Ex-net, is the loss function parameter of the evolution module Ev-net, is the network loss function of the pulse module Ex-net, is the network loss function of the evolution module Ev-net.
[0096] Use Adam optimizer and set the initial learning rate Lr=1 1e-5, i.e. 0.00001, the total training rounds T=50, and the batch size B=32; the software framework used for the experimental training network in this embodiment is Pytorch1.10 version, the system memory size is 512GB, and the video memory size is 24GB.
[0097] The gradient descent method is used on the training set and the validation set to iteratively optimize the weights of the neural network until the loss function converges and the training process is completed.
[0098] The fourth step is to use the spin echo sequence as a verification sequence to generate a magnetic resonance spectroscopy metabolite basis set for deep quantum computing. Figure 2 As shown in Figure (a), the complete process of the spin echo sequence includes six modules: initial Hamiltonian operator and density operator generation, excitation, evolution, flipping, evolution, and readout; among them, excitation corresponds to a 90-degree pulse, and flipping corresponds to a 180-degree pulse, that is, the process of pulse module Ex-net learning, the pulse module Ex-net learns the excitation and flipping processes, and the evolution module Ev-net learns the evolution of the density operator over time. In the spin echo sequence, the total echo time is TE, and an evolution process corresponds to 2 / TE, which is the process of evolution module Ev-net learning; the modules in the third step are combined in the order of the spin echo sequence to obtain a network diagram for the generation of a deep quantum computing magnetic resonance spectroscopy metabolite basis set, as shown in Figure 2 As shown in Figure (b) in , the basis set generated according to the spin echo sequence is obtained.
[0099] Finally, we get a result graph generated by a deep quantum computing magnetic resonance spectroscopy metabolite basis set, such as Figure 3 As shown, Figure (a) is the true value of the network, Figure (b) is the output result of the BS-net network, specs is the signal intensity of the spectrum, ppm is the unit of chemical shift, Figure 3 It can be seen that the four peaks of the metabolite are successfully learned, and the peak intensity is close to the true value, indicating that the BS-net quantitative method of the present invention has good fitting performance.
[0100] The BS-net network model of the present invention learns multiple metabolites, such as Figure 4 The figure shown is a multi-metabolite result diagram generated by a deep quantum computing magnetic resonance spectroscopy metabolite basis set. Figure (a) is the network truth value of a unimodal metabolite at TE=1, Figure (b) is the BS-net network output result of a unimodal metabolite, Figure (c) is the network truth value of a bimodal metabolite at TE=1, Figure (d) is the BS-net network output result of a bimodal metabolite, Figure (e) is the network truth value of a trimodal metabolite at TE=1, and Figure (f) is the BS-net network output result of a trimodal metabolite. True represents the network truth value, specs is the signal intensity of the spectrum, and ppm is the unit of chemical shift. From Figure 4 It can be seen that the BS-net network of the present invention has good simulation results for metabolites with different numbers of peaks, and can learn the peaks and peak values of metabolites with different numbers of peaks.
[0101] The BS-net network of the present invention sets different TE parameters for the same metabolites to learn, such as Figure 5The figure shown is a multi-TE result diagram generated by a deep quantum computing magnetic resonance spectroscopy metabolite basis set. Figure (a) is the network truth value when TE=1, Figure (b) is the BS-net network learning result when TE=1, Figure (c) is the network truth value when TE=51, Figure (d) is the BS-net network learning result when TE=51, Figure (e) is the network truth value when TE=96, and Figure (f) is the BS-net network learning result when TE=96. True represents the network truth value, the value in brackets is the TE value, specs is the signal intensity of the spectrum, and ppm is the unit of chemical shift. From Figure 5 It can be seen that with the increase of TE value, the signal intensity of metabolites gradually weakens. From the network learning results, especially comparing the cases of TE=1 and TE=51, it can be found that the signal intensity of BS-net weakens from greater than 1 to less than 1, which is consistent with the expected law, proving that the BS-net network of the present invention can effectively learn the dynamic change process of the density operator evolving over time.
[0102] In summary, the present invention obtains the spin system structure information of different metabolites based on the characteristics of magnetic resonance spectroscopy signals, generates the Hamiltonian operator matrix, density operator matrix and metabolite basis set of the pulse sequence based on quantum simulation simulation, constructs the basis set generation network and loss function based on the Densenet network structure, designs the pulse module Ex-net and the evolution module Ev-net, verifies it according to the characteristics of the spin echo sequence, and obtains the BS-net network model after iterative training. The pulse module network of the present invention is used to learn the sequence pulse process at different angles, and the evolution module is used to learn the update of the density operator over time, and integrates it in a unified network. At the same time, the network can adapt to the situation of multiple TE and multiple metabolites, enhance the generalization ability and accuracy of the model, and in addition, through the learning of the atomic process of the update of the density operator matrix in the quantum simulation process, the atomic process can be recombined according to the characteristics of different sequences, thereby generating basis sets based on different sequences, and providing a more flexible and accurate simulation strategy for basis set generation. The present invention not only improves the accuracy and flexibility of basis set generation, but also provides new tools and methods for magnetic resonance spectroscopy analysis, which can be widely used in medicine, chemistry, biology and other fields.
[0103] The above embodiments are only preferred embodiments of the present invention and cannot be considered to limit the scope of the present invention. All equivalent changes and improvements made within the scope of the present invention should still fall within the scope of the present invention.
Claims
1. A method for generating a basis set of magnetic resonance spectroscopy metabolites for deep quantum computing, characterized in that: The following steps are involved: 1) Data generation: Obtain the spin system structure information of different metabolites from the existing database, convert it into data for magnetic resonance physics simulation, generate a simulated spin system matrix data set as a training data set, and generate the Hamiltonian operator, density operator and metabolite basis set under the pulse sequence based on quantum simulation; The specific method of generating the data is as follows: Obtain metabolite spin system data including chemical shift Ω through public datasets j , J coupling constant J jk ; After obtaining the spin system data, generate the Hamiltonian operator and density operator: Among them, H n represents the Hamiltonian operator of the nth time interval, n represents the nth time interval, M is the number of coupled spins of the metabolite, j is the jth coupled spin, Ω j is the chemical shift of spin j relative to a reference molecule, which is tetramethylsilane, I xj is the angular momentum operator of the jth spin in the x direction, I yj is the angular momentum operator of the jth spin in the y direction, I zj is the angular momentum operator of the jth spin in the z direction, π represents the circumference of the circle, which is approximately 3.14, γ is the gyromagnetic ratio, J jk is the J coupling constant between spins j and k, I j is the angular momentum operator of the jth spin, I k is the angular momentum operator of the kth spin, G n is the gradient vector at the nth time interval, r is the position vector from the isocenter of the magnet, is the nutation angular frequency of the RF pulse in the nth time interval, f is the phase of the RF pulse; ρ n represents the density operator for the nth time interval; 2) Design and build the network: Construct a basis set generation network and loss function based on deep quantum computing; The specific method of constructing a basis set generation network and loss function based on deep quantum computing is: a) Design a pulse module Ex-net to learn the 90-degree pulse and 180-degree pulse process of the spin echo sequence. The design is based on the Densenet network. The input samples of the Densenet-based network have 2 channels, corresponding to the real and imaginary parts; The network first passes through a convolutional layer with a kernel size of 1×1, which converts the 2 channels of the input into 64 channels; this convolutional layer increases the number of features; after the convolutional layer, batch normalization is performed; then nonlinearity is introduced using an activation function, here ReLU; The network contains a stack of four dense blocks and three transition layers, where the dense blocks help learn the multi-scale features of the network, and the transition layers can reduce the number of channels and spatial dimensions; the dense blocks contain a series of dense layers; each dense layer contains a convolution block, which contains batch normalization, ReLU activation function, 3×3 convolution layer and Dropout layer. The outputs of these layers are connected together and used as the input of the next layer; the transition layer contains batch normalization, ReLU activation function, 1×1 convolution layer and Dropout layer; Finally, after a 1×1 convolutional layer, a dimensionality reduction operation is performed to reduce the number of output channels of the network to 2, and the learning results are output. The two output channels correspond to the real part and the imaginary part respectively. The network output of the pulse module Ex-net is expressed as Among them, ρ n is the density operator of the nth time interval and is also the network input of the pulse module Ex-net. Θ1 represents the network parameter set of the pulse module Ex-net. Loss function of the pulse module Ex-net Defined as: Among them, α, β are loss function parameters, ρ n is the density operator for the nth time interval and is also the input to the pulse module Ex-net network. is the network output of the pulse module Ex-net, Θ1 represents the network parameter set of the pulse module Ex-net; b) Design an evolution module Ev-net to learn the update process of the density operator over time. The evolution module Ev-net is implemented based on the Densenet network, and the Densenet network structure is the same as the pulse module Ex-net structure; The learning of the evolution module Ev-net is related to the TE time. The process of the density operator evolving over time is as follows: Among them, ρ n is the density operator for the nth time interval, ρ n+1 is the density operator of the n+1th time interval, i is the imaginary unit, H n is the Hamiltonian operator for the nth time interval, t n is the starting time point of the nth time interval, t n+1 is the starting time point of the n+1th time interval; The network input of the evolution module Ev-net is That is, the network output of the pulse module Ex-net; the network output of the evolution module Ev-net is expressed as Among them, Θ2 represents the network parameter set of the evolution module Ev-net; Loss function of the evolution module Ev-net Defined as: in, is the network output of the evolution module Ev-net, ρ n+1 is the density operator of the n+1th time interval, and is the true value of the network; c) design a readout module to generate a basis set signal; In the readout module, the signal S(n) in the time domain is generated according to the density operator; Among them, N p is the number of points, which is set to 2048 points, M is the number of coupled spins of the metabolite, j is the jth coupled spin, tr is the trace function, which is the sum of the main diagonal elements of the matrix, and I xj is the angular momentum operator of the jth spin in the x direction, I yj is the angular momentum operator of the jth spin in the y direction, i is an imaginary unit, ρ n is the density operator for the nth time interval; 3) Training the network: using the training data set constructed in step 1) as the training set of the network constructed in step 2) to train and obtain a trained BS-net network model based on deep quantum computing; 4) Basis set generation: Load the trained BS-net network model from step 3), use the spin echo sequence as a verification sequence, and generate a magnetic resonance spectroscopy metabolite basis set for deep quantum computing based on the spin echo sequence.
2. The method for generating a magnetic resonance spectroscopy metabolite basis set for deep quantum computing according to claim 1, characterized in that: In step 3), the training network first constructs the loss function of the BS-net network model based on deep quantum computing. Among them, A is the loss function parameter of the pulse module Ex-net, B is the loss function parameter of the evolution module Ev-net, is the loss function of the pulse module Ex-net, is the loss function of the evolution module Ev-net.
3. The method for generating a magnetic resonance spectroscopy metabolite basis set for deep quantum computing according to claim 1, characterized in that: In step 4), the complete process of the spin echo sequence includes six modules: initial Hamiltonian operator and density operator generation, excitation, evolution, flipping, evolution, and readout; after combining the modules of step 3 in the order of the spin echo sequence, a basis set generated according to the spin echo sequence is obtained.
