Fetal brain magnetic resonance motion correction method and device based on feature association fusion
Through the deep learning method of feature correlation fusion, combined with convolutional neural network and recurrent neural network, the problem of long time and low accuracy in fetal brain magnetic resonance image motion correction is solved, and more efficient motion parameter estimation and image reconstruction are achieved. Improved the accuracy of clinical diagnosis.
Patent Information
- Application Number
- CN202210449508.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-04-26
- Publication Date
- 2024-08-23
- Estimated Expiration
- 2042-04-26
AI Technical Summary
The motion correction process of fetal brain magnetic resonance images is time-consuming and difficult to correct larger movements. Existing neural networks cannot effectively estimate the motion parameters of each layer, resulting in low image reconstruction quality.
Using a deep learning method based on feature correlation fusion, through the combination of two-dimensional convolutional neural network and three-dimensional convolutional neural network, using a bidirectional recurrent neural network and affinity fusion module, it iteratively estimates and corrects the motion parameters between layers to generate high-resolution three-dimensional volume.
It improves the accuracy and image quality of motion correction, reduces the iteration time in traditional methods, enhances the reconstruction success rate of fetal brain magnetic resonance images, and provides more accurate clinical diagnosis support.
Smart Images

Figure CN115115803B
Abstract
Description
Technical Field
[0001] The present application relates to the field of post-processing of fetal brain magnetic resonance images, and in particular to a method for magnetic resonance image motion parameter estimation and motion correction based on deep learning. Background Art
[0002] Fetal brain magnetic resonance imaging is a commonly used prenatal examination method. Compared with traditional ultrasound examination, magnetic resonance imaging can provide more precise anatomical details and higher imaging contrast, which can better detect abnormalities in fetal brain development. In order to quantitatively analyze fetal magnetic resonance images, it is necessary to obtain high-resolution three-dimensional images of the fetal brain, but the direct acquisition of three-dimensional images is more complicated and is very susceptible to irregular movements of the fetus and the mother. Therefore, the commonly used clinical acquisition method is to use a single-shot fast spin echo sequence to acquire layer by layer along different directions of the brain, and then reconstruct the multiple slice stacks acquired into a three-dimensional volume through post-processing.
[0003] Although the use of single-shot fast spin echo sequences can reduce the acquisition time of a single layer and thus reduce the impact of intra-layer motion, inter-layer motion still poses a great challenge to the reconstruction of three-dimensional volumes in post-processing, so inter-layer motion correction is required before reconstruction. Traditional motion correction methods are based on iterative slice-to-volume registration (SVR) and super-resolution reconstruction (SRR), but this iterative method takes a lot of time and has a high failure rate in motion correction in order to correctly estimate the parameters of large-scale motion.
[0004] Deep learning provides a new solution for image registration and motion correction. At present, convolutional neural networks (CNNs) are often used for motion tracking. The network learns relevant data-driven functions such as the similarity between two-dimensional layers and three-dimensional volumes to efficiently perform motion correction. However, since the registration of two-dimensional layers is more similar to motion posture estimation based on image retrieval rather than structure-based methods, and there is a lack of suitable three-dimensional reference volumes during registration, the accuracy of simple registration using convolutional neural networks cannot meet the requirements of motion correction of fetal brain magnetic resonance images. In addition, current studies usually only use a single two-dimensional layer set as the input of the network, which contains less information and the motion parameters of the boundary layer are difficult to estimate. Since layers in different directions are collected during magnetic resonance image acquisition, this feature can be used to select a suitable reference and integrate the features of each layer set for better motion correction. Summary of the invention
[0005] Aiming at the shortcomings of traditional fetal brain magnetic resonance image post-processing, such as long time and difficulty in correcting large-amplitude fetal movements, and the shortcomings of existing neural networks that cannot effectively obtain motion parameters of each layer, the present invention proposes a fetal brain magnetic resonance motion correction method and device based on feature association fusion.
[0006] In order to achieve the above object, the present invention adopts the following technical solutions:
[0007] In a first aspect, the present invention provides a fetal brain magnetic resonance motion correction method based on feature association fusion, which is used to iteratively correct random inter-slice motion in magnetic resonance images, and comprises the following steps:
[0008] S1. Acquire a first data set comprising different magnetic resonance image samples, wherein each magnetic resonance image sample comprises three layer sets acquired along the cross-sectional, coronal and sagittal planes of the fetal brain; pre-process each magnetic resonance image sample in the first data set to obtain a super-resolution isotropic fetal brain volume for each sample, thereby forming a second data set;
[0009] S2. Simulate and obtain random initial motion parameters of the fetal brain, each set of motion parameters includes three rotation parameters and three translation parameters; sample the fetal brain volume in the second data set in the form of three-dimensional rigid transformation according to the motion parameters obtained by simulation, and obtain a layer set affected by motion in the acquisition direction after sampling a piece of fetal brain volume with each set of motion parameters; the training data is composed of a series of layer sets affected by motion, and the layer sets affected by motion in three directions are isotropic reference volumes obtained by a scattered data approximation (SDA) method, and a single training sample in the training data includes a layer set affected by motion and a reference volume corresponding to the layer set;
[0010] S3. Using the training data to train the deep learning network to obtain a motion parameter estimation model;
[0011] The network input of the deep learning network is divided into two parts, the first part of the input is a single layer set, and the second part of the input is a reference volume corresponding to the layer set in the first part; the motion parameter estimation process in the deep learning network is as follows a) to c):
[0012] a) Extracting each layer image in the first part of the input through a two-dimensional convolutional neural network to obtain the corresponding two-dimensional feature map, and extracting the two-dimensional feature map through a bidirectional recurrent neural network to obtain the sequence relationship between the two-dimensional feature maps of each layer; extracting the reference volume in the second part of the input through a three-dimensional convolutional neural network to obtain a three-dimensional feature map; extracting the two-dimensional feature map and the three-dimensional feature map through an affinity fusion module to obtain the structural similarity relationship between each layer and the reference volume, and finally estimating the motion parameters corresponding to each layer through a fully connected layer according to the sequence relationship and the similarity relationship;
[0013] b), based on the motion parameters corresponding to each layer estimated in a), the three layer sets in the first part are corrected respectively, and the three layer sets are reconstructed into an isotropic reference volume by a discrete data estimation method;
[0014] c) iteratively executing a) and b) for several times, and updating the second part of the input with the latest reference volume before each iteration, and after all iterations are completed, taking the latest motion parameters corresponding to each layer as the network output;
[0015] S4. In actual application, the layer set collected for the target object is obtained, and an isotropic reference volume is obtained through a discrete data estimation method. The layer set of the target object and the reference volume are used as the network input of the motion parameter estimation model to estimate the motion parameters corresponding to each layer in the layer set. Then, the layer set collected for the target object is reconstructed based on the estimated motion parameters to obtain the isotropic volume of the target object.
[0016] Based on this solution, each step can further provide the following preferred implementations. It should be noted that the technical features in each preferred implementation can be combined with each other without conflict. Of course, these preferred implementations can also be implemented by other methods that can achieve the same technical effects, which does not constitute a limitation.
[0017] As a preferred embodiment of the first aspect, in S1, the method of preprocessing each magnetic resonance image sample to obtain the fetal brain volume is as follows:
[0018] S11, for three slice sets in the magnetic resonance image sample, use N4 deviation correction to perform global slice inhomogeneity correction;
[0019] S12, using the mask to extract the fetal brain part in each layer processed by S11, and performing three-dimensional non-local mean denoising;
[0020] S13, normalizing the three slice sets processed by S12 respectively, and then performing inter-slice motion correction and super-resolution reconstruction on them to obtain an isotropic volume that meets the target resolution;
[0021] S14, the isotropic volume reconstructed by S13 is rigidly registered to the spatiotemporal map of the fetal brain according to the corresponding fetal gestational age, and the center of the registered volume is aligned, and then the volume size of all data is set to be consistent by filling the area around the volume with 0, and finally the isotropic fetal brain volume is obtained.
[0022] As a preferred embodiment of the first aspect, the implementation method of S2 is as follows:
[0023] S21, randomly selecting a set of motion parameters from the preset uniform distribution of the motion parameters as the first control point, and then iteratively randomly selecting a set of motion parameter changes from the preset uniform distribution of the motion parameter changes and superimposing them on the motion parameters of the previous control point, so that a new set of motion parameters is used as the next control point, and finally forming a set of multiple control points; performing smooth fitting on the multiple control points in the set to obtain a motion curve, and adding a random offset to change the mean of the motion curve, and then uniformly sampling the offset motion curve according to the number of layers in the layer set to obtain motion parameters corresponding to each layer; the motion parameters corresponding to one layer include three rotation parameters θ=(θ x ,θ y ,θ z ) T and three translation parameters d=(d x ,d y ,d z ) T ;
[0024] S22, for a fetal brain volume in the second data set, use the motion parameters corresponding to each layer generated in S21 to perform a three-dimensional rigid transformation in the Euler-Cartesian coordinate system, so as to simulate the movement of the fetal brain during the layer set acquisition process, and three layer sets affected by the movement obtained by sampling along the cross-sectional plane, coronal plane and sagittal plane of the fetal brain respectively form a layer set sample;
[0025] S23. Repeat S21 and S22 continuously to form training data consisting of a series of different level set samples.
[0026] As a preferred embodiment of the first aspect, in the deep learning network, the bidirectional recurrent neural network is composed of multiple groups of GRU unit pairs, and the number of pairs of GRU unit pairs is the same as the total number of layers in the input layer set; each layer in the input layer set corresponds to a group of unit modules composed of a two-dimensional convolutional neural network, a GRU unit pair and a fully connected layer, and all layers share a three-dimensional convolutional neural network and an affinity fusion module;
[0027] For any layer s in the layer set input in the first part, its layer image passes through the two-dimensional convolutional neural network corresponding to layer s and outputs a two-dimensional feature map x s1 ; Two-dimensional feature map x s1 The output feature obtained after passing through the GRU unit pair corresponding to the layer s is used as the first input of the fully connected layer corresponding to the layer s; and the reference volume in the second part of the input is output through the three-dimensional convolutional neural network to output the three-dimensional feature map x v1 ; At the same time, extract the three-dimensional feature map x from the convolution process of the two-dimensional convolutional neural network v1 The size of the intermediate feature map x matches s2 , and then the intermediate feature map x s2 and the three-dimensional feature map x v1 Flatten to two dimensions respectively, and get feature x s and feature x v , the feature x s and feature x v The structural similarity relationship y between each layer and the reference volume is extracted through the affinity fusion module:
[0028]
[0029] Among them, σ s (·) is the softmax activation function, W g , W s and W v is the weight matrix to be learned, C is the two-dimensional feature map x s1 and the three-dimensional feature map x v1 The number of channels;
[0030] The similarity relationship y is used as the second input of the fully connected layer corresponding to the level s, and the fully connected layer outputs the motion parameters corresponding to the level s based on the two inputs.
[0031] As a preferred embodiment of the first aspect, the loss function of the deep learning network is:
[0032]
[0033] Among them, λ is a weighted hyperparameter, R s and d s are the true value of the rotation matrix and the true value of the translation parameter corresponding to the level s, and are the estimated values of the rotation matrix and the estimated values of the translation parameters corresponding to the layer s, respectively, F is the Ferrobenius norm, log(·) is the matrix logarithm operation, S represents the set of all layers in the layer set, γ is the weight hyperparameter; I represents the layer set, V represents the fetal brain volume without movement, is the final estimated motion parameter, Ω(·) represents the discrete data estimation method, and ‖·‖2 represents the L2 norm.
[0034] As a preferred embodiment of the first aspect, the deep learning network is trained in batches using the training data iteration until the network accuracy reaches the requirement and then used as the motion parameter estimation model; and each training batch optimizes the network parameters by minimizing the total loss function, and the total loss function is the loss function value of all input samples in each training batch sum.
[0035] As a preferred embodiment of the first aspect, in the discrete data estimation method, a nearest neighbor algorithm and Gaussian blur are used to sample discrete two-dimensional layers onto a three-dimensional regular grid.
[0036] As a preferred embodiment of the first aspect, in S4, the acquisition direction of the layer set acquired for the target object includes one or more of the three directions of the cross-section, coronal and sagittal planes of the fetal brain.
[0037] In a second aspect, the present invention provides a computer-readable storage device having a computer program stored thereon. When the computer program is executed by a processor, the method for fetal brain magnetic resonance motion correction based on feature association fusion as described in any one of the schemes in the first aspect above is implemented.
[0038] In a third aspect, the present invention provides a fetal brain magnetic resonance motion correction device based on feature association fusion, which includes a memory and a processor;
[0039] The memory is used to store computer programs;
[0040] The processor is used to implement the fetal brain magnetic resonance motion correction method based on feature association fusion as described in any one of the schemes in the first aspect when executing the computer program.
[0041] Compared with the prior art, the present invention has the following beneficial effects:
[0042] The present invention proposes a fetal brain magnetic resonance motion correction method based on feature association fusion, which combines the slice-to-volume registration algorithm of traditional motion correction and the deep learning method, and integrates the core idea of coarse-to-fine based on the two-step iteration of SVR-SRR in traditional post-processing into the neural network. The method includes a motion parameter estimation part based on convolutional neural network and recurrent neural network and a three-dimensional volume reconstruction and multi-dimensional data fusion part based on association fusion. Through the iterative processing of the two parts, the motion between different layers of the layer set can be effectively corrected, thereby improving the image quality of the final reconstructed volume, and providing assistance for more accurate clinical diagnosis and treatment. Compared with the existing motion correction method based on deep learning, the motion trajectory estimated by this method is more accurate, and the reconstructed volume has a higher structural similarity with the gold standard. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 This is a flow chart of the fetal brain magnetic resonance motion correction method and device based on feature association fusion of the present invention.
[0044] Figure 2 It is the specific network structure of the deep learning network.
[0045] Figure 3 Schematic diagram of motion simulation, where (a) is the layer with simulated motion, (b) is the motion curve corresponding to the layer set, and (c) is the three-dimensional distribution of the fetal brain posture on the unit sphere.
[0046] Figure 4 Comparison of the volume reconstruction result images of the present invention and other networks, where (a) and (b) represent the results of different gestational ages.
[0047] Figure 5 Quantitative comparison of the volume reconstruction results of the present invention and other networks, where (a) is the structural similarity between the reconstructed volume and the gold standard, and (b) is the normalized root mean square error between the reconstructed volume and the gold standard.
[0048] Figure 6 The reconstruction results of the present invention are compared with those of the traditional method, wherein (a) is the result of reconstruction using the traditional method, and the reconstruction quality of different fetal ages is poor, and (b) is the result of reconstruction using the proposed invention, and the reconstruction quality has been greatly improved. DETAILED DESCRIPTION
[0049] The following is a method proposed in the present invention and combined with embodiments to demonstrate its specific technical effects so that those skilled in the art can better understand the essence of the present invention.
[0050] The present invention draws on the traditional motion correction method based on layer-to-volume registration, combines the convolutional neural network, recurrent neural network and feature association fusion in deep learning, and achieves better results.
[0051] In a preferred embodiment of the present invention, Figure 1 As shown, a fetal brain magnetic resonance motion correction method based on feature association fusion is provided, specifically a fetal brain magnetic resonance image motion correction method based on feature association fusion (abbreviated as AFFIRM), which is used to obtain posture and motion parameters at the input level, and reconstruct a high-resolution volume according to the motion parameters, and specifically includes the following steps:
[0052] S1. Acquire a first data set comprising different magnetic resonance image samples, wherein each magnetic resonance image sample comprises three layer sets acquired along the cross-sectional, coronal and sagittal planes of the fetal brain; preprocess each magnetic resonance image sample in the first data set to obtain a super-resolution isotropic fetal brain volume for each sample, thereby forming a second data set.
[0053] In this embodiment, in step S1, the method of preprocessing each magnetic resonance image sample to obtain the fetal brain volume is as follows:
[0054] S11, for three slice sets in the magnetic resonance image sample, use N4 deviation correction to perform global slice inhomogeneity correction;
[0055] S12, using a mask (which can be drawn manually) to extract the fetal brain part in each layer processed by S11, and perform three-dimensional non-local mean denoising;
[0056] S13, normalize the three slice sets processed by S12 respectively (0-1 normalization can be used), and then perform inter-slice motion correction and super-resolution reconstruction (which can be achieved using the NiftyMIC toolkit) to obtain an isotropic volume that meets the target resolution (preferably a resolution of 0.8 mm);
[0057] S14, the isotropic volume reconstructed by S13 is rigidly registered to the spatiotemporal map of the fetal brain according to the corresponding fetal gestational age, and the center of the registered volume is aligned, and then the volume size of all data is set to be consistent by filling the area around the volume with 0, and finally the isotropic fetal brain volume is obtained.
[0058] In this step, the isotropic fetal brain volume obtained is a high-resolution volume, which will be used as the gold standard for judging the prediction effect of the deep learning network.
[0059] S2. The fetal brain is randomly initialized and obtained by simulation. Each set of motion parameters includes three rotation parameters and three translation parameters. The fetal brain volume in the second data set is sampled in the form of three-dimensional rigid transformation according to the motion parameters obtained by simulation. After sampling a fetal brain volume with each set of motion parameters, a layer set affected by motion in the acquisition direction is obtained. The training data is composed of a series of layer sets affected by motion, and the layer sets affected by motion in three directions are isotropic reference volumes obtained by discrete data estimation method. A single training sample in the training data includes a layer set affected by motion and a reference volume corresponding to the layer set.
[0060] It should be noted that the scattered data approximation (SDA) method used in the present invention belongs to the prior art, and its specific principle is not repeated here. In this embodiment, in the above SDA method, the nearest neighbor algorithm and Gaussian blur can be used to sample the discrete two-dimensional layer onto a three-dimensional regular grid.
[0061] In the Euler-Cartesian coordinate system, the motion parameters of the fetal brain are expressed using a three-dimensional rigid transformation T with six degrees of freedom, including three rotation parameters θ = (θ x ,θ y ,θ z ) T and three translation parameters d=(d x ,d y ,d z ) T , the three rotation parameters θ can be further converted into a rotation matrix R. Therefore, the three-dimensional rigid transformation T can be expressed as a 4×4 matrix:
[0062]
[0063] In the present invention, each layer in the layer set can be considered as a time series, and after given specific motion parameters, each layer can be obtained by sampling the fetal brain with a specific posture in the three-dimensional standard space. Corresponding to the fetal brain images collected in the three directions of the cross-section, coronal plane and sagittal plane, the simulated layer set is divided into three groups.
[0064] Therefore, in this embodiment, a control point-based method is used in the above step S2 to simulate the random movement of the fetal brain. This method can randomly generate a series of control points and generate corresponding continuous motion trajectories according to the given control points. Specifically, the implementation method of step S2 is as follows:
[0065] S21, randomly selecting a set of motion parameters from the preset uniform distribution of the motion parameters as the first control point, and then iteratively randomly selecting a set of motion parameter changes from the preset uniform distribution of the motion parameter changes and superimposing them on the motion parameters of the previous control point, so that a new set of motion parameters is used as the next control point, and finally a set of control points is formed. The generation process of the control point can be expressed by the following formula:
[0066] P k =P k-1 +ΔP
[0067] P k-1 represents the previous control point, and P k Represents the next control point.
[0068] Finally, N c Control Points Wherein P1 and ΔP are both derived from a given uniform distribution, and the specific uniform distribution needs to be determined based on statistical analysis of the actual sampling data of these two parameters.
[0069] Then, a plurality of control points in the set are smoothed and fitted (which can be implemented by using a univariate cubic spline smoothing method) to obtain a motion curve, and a random offset is added to change the mean of the motion curve. Then, the offset motion curve is uniformly sampled according to the number of layers in the layer set to obtain the motion parameters corresponding to each layer. The motion parameters corresponding to one layer include three rotation parameters θ=(θ x ,θ y ,θ z ) T and three translation parameters d=(d x ,d y ,d z ) T .
[0070] S22, for a fetal brain volume in the second data set, use the motion parameters corresponding to each layer generated in S21 to perform a three-dimensional rigid transformation in the Euler-Cartesian coordinate system, so as to simulate the movement of the fetal brain during the layer set acquisition process, and three layer sets affected by the movement obtained by sampling along the cross-sectional plane, coronal plane and sagittal plane of the fetal brain respectively form a layer set sample;
[0071] S23. Repeat S21 and S22 continuously to form training data consisting of a series of different level set samples.
[0072] Different combinations of the above control points can correspond to various movement patterns of the fetal brain, so a large number of layer sets can be generated according to the above simulation process for subsequent network training and testing.
[0073] S3. Use the training data to train the deep learning network to obtain a motion parameter estimation model.
[0074] In the present invention, the motion parameter estimation network is used to predict the rigid transformation parameters corresponding to each layer. The specific design principle of the deep learning network trained to form the motion parameter estimation model is first introduced below.
[0075] First, the network can extract feature information for each layer and reference volume using two-dimensional convolutional neural network (2D CNN) and three-dimensional convolutional neural network (3DCNN) respectively. These two convolution-based neural networks use standard convolutional neural network modules, each of which contains a convolutional layer and corresponding batch normalization layer, activation layer and pooling layer.
[0076] After using CNN to extract the two-dimensional feature sequence of each layer, the present invention uses a bidirectional recurrent neural network (BiRNN) to learn the serialized relationship between the motion parameters of the layers. The bidirectional structure of the network can enhance the ability to learn the motion patterns between adjacent layers. We chose the gate recurrent unit (GRU) as the backbone of the recurrent network. GRU is a variant of the long short-term memory network (LSTM), which includes a gating mechanism and can learn long-term dependencies. Each GRU unit can receive information about the previous and current states, and the gate in the unit can use a sigmoid function to control the amount of information to be released. The fully gated GRU unit is implemented as follows:
[0077] z i =σ g (W xx x i +W zh h i-1 +b z )
[0078] r i =σ g (W rx x i +W rh h i-1 +b r )
[0079] h i =(1-z i )⊙h i-1 +z i ⊙σ h (W hx x i +W hr (r i ⊙hi-1 )+b h )
[0080] Among them, z i 、r i and h i Represent the update gate, reset gate and hidden state at time i respectively. zx , W zh and W rx , W rh are the weights corresponding to the update gate and the reset gate, respectively. hx and W hr It determines the weight of the output. z , b r , b h is the bias term, σ g (·) and σ h (·) are the sigmoid function and the hyperbolic tangent function tanh respectively. ⊙ is the Hadamard product of the matrix. After that, the output h of each GRU unit i It is passed to two processing parts, which include a fully connected layer, a ReLU activation function, and random dropout. Finally, a range-dependent tanh activation function is added to the outermost layer to predict the transformation parameters at each time node.
[0081] Inspired by non-local cross attention, this paper proposes an affinity fusion-based method, which uses the correlation information between two-dimensional and three-dimensional feature maps to estimate the transformation parameter T through the affinity fusion module. Specifically, the intermediate feature maps in the two-dimensional and three-dimensional CNNs need to be Flatten (can be achieved through the reshape function), where H, W, D are the shapes of the feature maps and C is the number of channels. Fusion operator y at position j j It can be expressed as:
[0082]
[0083] Among them, a(·) is a function used to calculate affinity, that is, to calculate the two-dimensional feature map x s The spatial position j and the three-dimensional feature map x v The affinity relationship between the spatial positions k in the function g is used to represent the three-dimensional feature map x v The information of position k in can usually be obtained using a simple linear function, such as Where W g is the weight learned by the network. In order to improve learning efficiency, the affinity operator y j It needs to be regularized by the operator h(·). In the present invention, the affinity function a(·) is defined as a Gaussian function in the feature space, so the output of affinity fusion can be expressed as:
[0084]
[0085] Among them, σ s (·) is the softmax activation function, W s and W v is the weight matrix to be learned. The operation in the formula uses a scaled dot product attention mechanism to encode the spatial relationship between layers and volumes.
[0086] Finally, the output of the affinity fusion part is the relationship between the two-dimensional layer and the three-dimensional volume feature map, and the output of BiRNN is the sequence relationship between the feature maps of each two-dimensional layer. The two sets of outputs are input into the fully connected layer, and finally the transformation parameters corresponding to each layer are obtained.
[0087] Based on the above principle discussion, the specific process and network structure of the above deep learning network are further described below.
[0088] The network input of the above deep learning network is divided into two parts. The first part of the input is a single layer set, and the second part of the input is a reference volume corresponding to the layer set in the first part. In this deep learning network, the specific motion parameter estimation process is as follows: a) to c):
[0089] a) Each layer image in the first part of the input is extracted by a two-dimensional convolutional neural network to obtain the corresponding two-dimensional feature map, and the two-dimensional feature map is extracted by a bidirectional recurrent neural network to obtain the sequence relationship between the two-dimensional feature maps of each layer; the reference volume in the second part of the input is extracted by a three-dimensional convolutional neural network to obtain a three-dimensional feature map; the two-dimensional feature map and the three-dimensional feature map are extracted by an affinity fusion module to obtain the structural similarity relationship between each layer and the reference volume, and finally the motion parameters corresponding to each layer are estimated according to the sequence relationship and the similarity relationship through a fully connected layer.
[0090] b) Based on the motion parameters corresponding to each layer estimated in a), the three layer sets in the first part are corrected respectively, and the three layer sets are reconstructed into isotropic reference volumes through a discrete data estimation method.
[0091] c) Iterate a) and b) several times, and before each iteration, update the second part of the input with the latest reference volume. After all iterations are completed, the latest motion parameters corresponding to each layer are used as network output.
[0092] During the internal iteration process of the above deep learning network, the standard deviation of the reconstructed Gaussian blur kernel decreased from the initial 0.8mm to the final 0.52mm.
[0093] In this embodiment, the specific network structure of the deep learning network is as follows: Figure 2As shown, the bidirectional recurrent neural network consists of multiple groups of GRU unit pairs (a group of GRU unit pairs contains two GRU units), and the number of pairs of GRU unit pairs is the same as the total number of levels in the input level set; each level in the input level set corresponds to a group of unit modules consisting of a two-dimensional convolutional neural network, a GRU unit pair, and a fully connected layer, and all levels share a three-dimensional convolutional neural network and an affinity fusion module. Assuming that there are N levels s in a level set, then there are a total of N unit modules consisting of a two-dimensional convolutional neural network, a GRU unit pair, and a fully connected layer in the deep learning network, and the N GRU unit pairs constitute the above-mentioned bidirectional recurrent neural network.
[0094] For any layer s in the layer set input in the first part, its layer image passes through the two-dimensional convolutional neural network corresponding to layer s and outputs a two-dimensional feature map x s1 ; Two-dimensional feature map x s1 The output feature obtained after passing through the GRU unit pair corresponding to the layer s is used as the first input of the fully connected layer corresponding to the layer s; and the reference volume in the second part of the input is output through the three-dimensional convolutional neural network to output the three-dimensional feature map x v1 ; At the same time, extract the three-dimensional feature map x from the convolution process of the two-dimensional convolutional neural network v1 The size of the intermediate feature map x matches s2 , and then the intermediate feature map x s2 and the three-dimensional feature map x v1 Flatten to two dimensions respectively, and get feature x s and feature x v , the feature x s and feature x v The structural similarity relationship y between each layer and the reference volume is extracted through the affinity fusion module:
[0095]
[0096] Among them, σ s (·) is the softmax activation function, W g , W s and W v is the weight matrix to be learned, C is the two-dimensional feature map x s1 and the three-dimensional feature map x v1 The number of channels;
[0097] The similarity relationship y is used as the second input of the fully connected layer corresponding to the level s, and the fully connected layer outputs the motion parameters corresponding to the level s based on the two inputs.
[0098] In this embodiment, the loss function of the above deep learning network includes two parts. The first part is the regression loss function of the transformation parameters. The second part is the similarity of the volume after motion correction
[0099] In the first part, since the simulated 3D rigid body motion is a special set of Euclidean groups, we use the geodesic distance instead of the Euclidean norm as the loss function to express the difference between the estimated parameters and the gold standard on the 6D Euclidean manifold. The loss function is expressed as follows:
[0100]
[0101] Among them, R s and d s are the true value of the rotation matrix and the true value of the translation parameter corresponding to the level s, and are the estimated values of the rotation matrix and the estimated values of the translation parameters corresponding to the layer s, respectively, F is the Ferrobenius norm, log(·) is the matrix logarithm operation, S represents the set of all layers in the layer set, and γ is a hyperparameter used to balance the rotation and translation loss functions.
[0102] In the second part, the loss function of the reconstructed volume is is defined as:
[0103]
[0104] Where I represents the slice set, V represents the volume of the fetal brain without movement, is the final estimated motion parameter, Ω(·) represents the discrete data estimation method, and ‖·‖2 represents the L2 norm.
[0105] The final network loss function is expressed as and The weighted sum of is:
[0106]
[0107] Among them, λ is a weighted hyperparameter.
[0108] In this embodiment, the deep learning network is trained in batches using the training data iterations until the network accuracy reaches the requirement and then serves as a motion parameter estimation model; and each training batch optimizes the network parameters by minimizing the total loss function, and the total loss function is the loss function value of all input samples in each training batch. sum.
[0109] After the above deep learning model is trained, the model parameters can be fixed and put into practical application as a motion parameter estimation model.
[0110] S4. In practical applications, the target object that actually needs motion correction, i.e., the fetal brain, can be collected through magnetic resonance equipment for data collection. The newly collected fetal brain data (which includes layer set data) is used to obtain an isotropic reference volume through a discrete data estimation method. The layer set of the target object and the reference volume are used as the network input of the motion parameter estimation model to estimate the motion parameters corresponding to each layer in the layer set. Then, based on the estimated motion parameters, the layer set collected for the target object is reconstructed to obtain the isotropic volume of the target object.
[0111] It should be noted that the acquisition direction of the layer set acquired for the target object may include one or more of the three directions along the cross-section, coronal and sagittal planes of the fetal brain, that is, S4 may reconstruct the layer set in a single acquisition direction or the layer set in multiple acquisition directions.
[0112] The AFFIRM method shown in S1 to S4 above is applied to a specific example to demonstrate its specific implementation method and technical effect.
[0113] Example
[0114] In this embodiment, the basic process framework of the fetal brain magnetic resonance motion correction method based on feature association fusion is shown in S1 to S4 above, and the overall framework is not repeated. The following mainly shows the specific implementation process of the method for a specific example scenario, which includes:
[0115] Step 1: On the human magnetic resonance system, the magnetic resonance images of the fetal brain are collected layer by layer through the T2-weighted half-Fourier acquisition single-shot fast spin echo sequence (HASTE). The collected images need to include three directions: transverse, coronal and sagittal planes, and multiple layers in each direction constitute a layer set. The number of layers collected in each direction can be adjusted according to actual conditions. In this embodiment, on a 3T Siemens Skyra magnetic resonance system, at least one layer set was collected in each direction through a half-Fourier acquisition single-shot fast spin echo sequence. Among them, each layer set contains 35 to 55 layers, each layer has a resolution of 1.09×1.09mm, and a layer thickness of 2mm. During the scan, TR and TE were set to 800 and 97ms respectively, the GRAPPA parameter was set to 2, and the scan objects were 180 normal pregnant women with a gestational age of 23 to 40 weeks.
[0116] Due to the long acquisition time, magnetic resonance imaging of the fetal brain is susceptible to the irregular rigid motion of the fetus. Although the use of the HASTE sequence shortens the acquisition time of each layer and reduces the impact of intra-layer motion, the inter-layer motion between each two layers will also bring challenges to volume reconstruction. In order to ensure that the high-resolution volume can be successfully reconstructed, the input layer set needs to be preprocessed to ensure that each layer is aligned as much as possible. The first step is to remove low-quality fetal brain data, including low image signal-to-noise ratio, severe image signal loss, and obvious intra-layer motion in each layer. The second step is to use N4 deviation correction to correct the global inhomogeneity of the layer after excluding the low-quality data, and then perform three-dimensional non-local mean denoising. The third step is to manually draw the brain mask of each layer to improve accuracy, and extract the effective fetal brain part in each layer. The fourth step is to use traditional methods to perform motion correction on each layer to enhance the internal alignment of the layer set. The traditional method of motion correction is mainly based on layer-to-volume registration (SVR), which can be implemented using the NiftyMIC toolkit. SVR is a process of 2D to 3D registration. Each 2D layer in each layer set needs to be registered to the 3D reference volume to obtain the corresponding motion parameters. In the fifth step, a high-resolution 3D volume can be reconstructed based on the obtained motion parameters. Usually, due to the high complexity of fetal brain data and the relatively large amplitude of fetal movement, the SVR in the fourth step has poor stability. Therefore, there is an outlier rejection algorithm in the traditional method, which automatically discards the layers with abnormal parameters. At the same time, in order to improve the registration success rate and reconstruction quality, the fourth and fifth steps need to be repeated iteratively multiple times, that is, the high-resolution volume reconstructed in the fifth step based on the motion parameters obtained by the registration will be used again in the fourth step as the reference volume.
[0117] In the first step, 31 cases of poor quality data were discarded. During the reconstruction, due to large inter-layer motion and other reasons, a total of 34 cases of data failed to successfully reconstruct the correct volume. These data can be used to test the network's capabilities later. In the end, a total of 115 cases were successfully reconstructed. After obtaining the reconstructed volume, it was rigidly aligned to the fetal brain spatiotemporal map according to different gestational weeks, and the center of the aligned volume was ensured to be aligned. Then, the volume size of all data was set to be consistent by filling the area around the volume with 0.
[0118] Step 2: In order to train the deep learning network proposed in the invention, it is necessary to construct a training set, a validation set, and a test set by simulation. In the simulation, the rigid motion parameter T of the fetal brain can be expressed by three rotation parameters θ = (θ x ,θ y ,θ z ) T and three translation parameters d=(d x ,dy ,d z ) T Indicates that the matrix form can be expressed as
[0119]
[0120] in, is the rotation matrix obtained based on the rotation parameter θ. In the specific implementation, a motion curve is first fitted using a control point-based method, which represents the rigid motion of the fetal brain at each moment during the acquisition of each layer set. Then, based on the motion curve, the motion-impaired layer corresponding to each acquisition time point is obtained by downsampling the high-resolution 3D volume.
[0121] In the present invention, the parameters of the motion curve are set as follows: For rotational motion, in order to avoid the universal joint lock phenomenon, the average rotation angle of the simulation is That is, the average shift of the curve from arrive is obtained from the uniform distribution, that is, According to experience, the average angular velocity of rotation is limited to less than 5° to avoid the appearance of unrealistic instantaneous motion. For translational motion, since each slice set is center-aligned, the value of each translation parameter is d∈(-10,10), and the average translation distance is Through this simulation method, all possible fetal brain postures (such as Figure 3 c).
[0122] In order to simulate the layer data obtained by the staggered acquisition method, two different layer sets can be simulated in the same direction with double layer thickness, and then combined into one layer set. In this embodiment, the layer thickness of each layer of the input data is 2 mm. In order to achieve staggered simulation, the layer thickness is set to 4 mm during simulation, and each layer set contains 24 layers.
[0123] Step 3: Use the motion parameter estimation network to process the simulated layer set to obtain the motion parameters corresponding to each layer. The motion parameter estimation network of AFFIRM is mainly composed of convolutional neural network (CNN), bidirectional recurrent neural network (BiRNN), fully connected layer (FC) and affinity fusion module, such as Figure 2 As shown in a.
[0124] In the network, the convolutional neural network is used to extract the spatial information of the input image. For each input layer, there is a corresponding 2D convolutional neural network, which can generate the feature map of the input layer and extract higher-order features to input into the bidirectional recurrent neural network. For the reference volume, there is a corresponding 3D convolutional neural network to extract the feature information of the volume. The structure of the 2D and 3D convolutional neural networks is shown in Figure 2. Figure 2 As shown in Fig. 2b, it contains multiple convolutional layers with different sizes of convolution kernels and different channels, which are used to extract high-order features of the input. There are corresponding batch normalization layers, activation layers, and pooling layers after each convolutional layer. The batch normalization layer is used to normalize the feature map to prevent the data of the input activation layer from being offset or enlarged; the activation layer is used to increase the nonlinear expression ability of the network; the pooling layer is used to compress the amount of data and parameters, speed up the training speed, and avoid overfitting.
[0125] For the two-dimensional input layer, after applying a convolutional neural network to extract its spatial features, a bidirectional recurrent neural network is used to extract the temporal information between the input layers. The bidirectional structure of the network can extract temporal information of the sequence in both the forward and reverse directions, thereby enhancing the ability to learn motion patterns between adjacent layers. We choose the gated recurrent unit (GRU) as the main body of the recurrent network. GRU is a variant of the long short-term memory network that contains a gating mechanism and can learn long-term dependencies.
[0126] For the 3D reference volume, after applying the convolutional neural network to extract its spatial features, it is necessary to use the affinity fusion module to fuse its 3D features with the 2D features of each input layer, and use the relevant information between the 2D and 3D feature maps to assist in estimating the transformation parameters. The affinity fusion module applies the ideas of non-local processing and self-attention mechanism, which can calculate the mutual information between any positions of the two inputs, avoiding the problem that traditional convolutional neural networks are difficult to capture long-range dependencies. Non-local processing can usually be expressed as follows:
[0127]
[0128] Among them, x s and x v They represent two inputs of the non-local operation. In the present invention, the two inputs are the slice and the reference volume. j is the response of affinity fusion output at position j, indicating the input x s At position j with input x v The weighted sum of all position correlations. is the encoding of the input volume at position k, which can usually be done using a simple linear function such as It is used to represent the correlation between two positions, and is defined as the Gaussian function of the feature space in the present invention, that is, in, h(x s ,x v ) is a regularization term to speed up learning.
[0129] Then, the affinity between the input layer and the reference volume can be expressed as:
[0130]
[0131] Among them, σ s is the softmax activation function.
[0132] Finally, the affinity function between the layers and the reference volume in the feature space is input into a fully connected layer together with the output of the bidirectional recurrent neural network, which is used to estimate the final motion parameters of each layer.
[0133] Based on the motion parameters estimated by the network, an isotropic volume is obtained using the discrete data estimation method. In discrete data estimation, it is first necessary to construct a three-dimensional regular grid in the volume space that meets the required resolution, then sample the layers converted according to the motion parameters to the corresponding positions in the volume space, and finally use nearest neighbor sampling and Gaussian blur to obtain the volume. According to the number of iterations set by the network, the volume will be used as the reference volume of the network in the next iteration. After the iteration is completed, a super-resolution method is used to reconstruct a high-resolution volume based on the final motion parameters.
[0134] The specific network structure and specific motion parameter estimation process in the above motion parameter estimation network are as described above and will not be fully described again.
[0135] The above deep learning network and reconstruction method can be trained in batches using the aforementioned training data with simulated motion. When the network accuracy meets the requirements, it can be used as a motion parameter estimation model. During training, each training batch optimizes the network parameters by minimizing the total loss function, and the total loss function is the sum of the loss function values of all input samples in each training batch. The loss function of each input sample is as follows:
[0136]
[0137] in, Represents the regression loss function of the motion parameters, which is used to calculate the difference between the estimated motion parameters and the gold standard motion parameters added by simulation, R s and d s are the rotation matrix and displacement parameters corresponding to the layer s, respectively, ‖·‖ F is the Ferrobenius norm, log(·) is the matrix logarithm operation. S represents all levels, and γ is a hyperparameter used to balance the rotation and translation loss functions; represents the volumetric loss function used to calculate the similarity between the motion-corrected volume and the gold standard volume, where I represents the set of 2D slices and V represents the motion-free fetal brain volume. is the final estimated motion parameter, Ω(·) represents the super-resolution reconstruction. ‖·‖2 represents the L2 norm; λ is a weighted hyperparameter used to balance the weights between the two loss functions.
[0138] Step 4: In practical applications, the number of layer sets can be selected according to the situation and does not need to cover three directions. Preprocess the collected layer sets according to the first three steps in step 1. After denoising and region of interest segmentation, one or more layer sets with masks are obtained. The layer sets are input into the motion parameter estimation model to estimate the motion parameters corresponding to each layer, and finally a high-resolution volume is obtained by combining the corresponding super-resolution reconstruction algorithm.
[0139] The fetal brain magnetic resonance random motion correction method based on feature association fusion shown in steps 1 to 4 above finally has 115 data sets used for network training, of which the training set has 91 data sets, the validation set has 10 data sets, and the test set has 14 data sets. The training set contains data from all gestational weeks from 23.1 to 40.0 weeks to enhance the versatility of the network in the case of large structural differences in the fetal brain throughout pregnancy.
[0140] The present invention uses mean absolute error (MAE) and root mean square error (RMSE) to evaluate the accuracy of the network prediction of motion parameters. Structural similarity (SSIM) is used to evaluate the similarity between the volume reconstructed by the present invention and the gold standard volume. The normalized root mean square error (NRMSE) is used to evaluate the quality of the reconstruction.
[0141] MAE represents the average absolute error between the predicted value and the true value, and the calculation formula is:
[0142]
[0143] RMSE represents the root mean square value of the square difference between the predicted value and the true value, and the calculation formula is:
[0144]
[0145] The calculation of SSIM is based on the brightness, contrast and structure information of the two images. The calculation formula is as follows:
[0146]
[0147] In order to compare and demonstrate the technical effects of the present invention, the present invention is compared with other motion correction methods based on deep learning in this implementation. Other compared methods include SVRnet based on positioning points, DeepPE, a deep posture estimation network based on an 18-layer residual network, and DeepPMT, a deep motion trajectory prediction network. Since DeepPE and DeepPMT have no way to predict displacement motion, only the prediction ability of each network for rotational motion is compared. All networks are trained using the specific steps described above. Since DeepPMT errors process the layer sets in the coronal and sagittal directions, during reconstruction, the input is set to the cross-sectional layer set containing motion and the layer set without motion in the other two directions. Reconstruction is a convex problem expressed as maximum a posteriori probability (MAP) and is solved using the least squares method. All reconstructed volumes are rigidly aligned to the corresponding gold standard volumes for subsequent quantitative evaluation.
[0148] The results of fetal brain motion estimation using different methods are shown in Table 1. The results show that the AFFIRM method proposed in this invention has the best performance, with a rotation MAE of 4.83 and a translation MAE of 1.52. Compared with other methods, the MAE of the rotation parameter is reduced by 48.4% and the MAE of the translation parameter is reduced by 61.3%. The RMSE also shows the same pattern.
[0149] Table 1: Comparison of the mean absolute error (MAE) and root mean square error (RMSE) of four methods in rotational and translational motion parameter estimation
[0150]
[0151] Figure 4 and Figure 5 Experiments on reconstructing volumes using motion parameters estimated using different methods. Figure 4 The images of the volume reconstructed by different methods are shown. The top row shows the central plane of the reconstructed volume in three directions, and the bottom row shows the structural dissimilarity (DSSIM) between the central plane and the central plane of the gold standard volume. The image results show that the method proposed by the present invention has the highest similarity with the gold standard volume, and the DSSIM map is the lowest. Figure 5 In the figure, the similarity between the reconstructed volume and the gold standard volume is quantitatively compared, and a box plot is drawn. The quantitative results show that the method proposed in the present invention has the highest SSIM and the lowest NRMSE, which are 0.961 and 0.211 respectively, indicating that the method proposed in the present invention has the best performance in motion parameter estimation, and the reconstructed volume has the highest similarity with the gold standard without motion.
[0152] Figure 6The figure is the result of reconstructing real MRI data using the present invention. In the reconstruction experiment of 149 cases of good quality data using the traditional motion correction and reconstruction process, 34 cases of data were not successfully reconstructed due to large inter-layer motion, and the reconstruction success rate was 77.2%. We combined the AFFIRM method proposed in the present invention with the traditional SVR reconstruction process, used the motion parameters predicted by the present invention as its initialization input, and conducted experiments on 34 cases of data. Through the above-mentioned AFFIRM-SVR process, 22 cases of data successfully reconstructed the volume, and the reconstruction success rate increased to 91.9%. Figure 6 The reconstruction results of 3 cases at different gestational weeks using the traditional (NiftyMIC) treatment process and the (AFFIRM-SVR) treatment process proposed in the present invention are compared.
[0153] In order to evaluate the importance of feature fusion and iterative correction, we also changed the network structure and conducted four groups of experiments. Among them, the network structure of the non-fusion group only contains the two-dimensional processing part, that is, only 2D CNN, BiRNN and FC process the input layer; the splicing fusion group adopts the splicing fusion method to directly splice and merge the two-dimensional and three-dimensional feature maps, and no iterative motion correction is performed; the affinity fusion group does not perform iterative motion correction; the AFFIRM group is the network structure proposed by the present invention. The experimental results are shown in Table 2. The results show that compared with the splicing fusion group, the MAE and RMSE of the non-fusion group did not decrease significantly, and even in the prediction of translational motion, MAE (t=-4.682, p<1e-4) and RMSE (t=-4.543, p<1e-4) increased significantly. Compared with the affinity fusion group, the non-fusion group predicted rotational motion (t MAE =5.827,p MAE <1e-6; t RMSE =6.090,p RMSE <1e-7) and translational motion (t MAE =5.022,p MAE <1e-5; t RMSE =2.744,p RMSE =0.041) were significantly reduced. After iterative motion correction, the predicted rotational motion (t MAE =6.321,p MAE <1e-7; t RMSE =5.989,p RMSE <1e-6) and translational motion (t MAE =7.544,p MAE <1e-10; t RMSE =6.367,p RMSE<1e-7) both MAE and RMSE decreased significantly.
[0154] Table 2: Comparison of the mean absolute error (MAE) and root mean square error (RMSE) of different network structures in rotation and translation motion parameter estimation
[0155]
[0156] It can be seen that the present invention uses a deep learning method to perform motion correction on the MRI level and reconstruct a high-resolution volume. This method has a stronger applicability to larger movements and can correct larger movements that are difficult to estimate with traditional methods, thereby improving the reconstruction success rate.
[0157] In addition, based on the same inventive concept, in other embodiments, a computer-readable storage device may be provided, on which a computer program is stored. When the computer program is executed by a processor, it is used to implement the fetal brain magnetic resonance motion correction method based on feature association fusion as shown in S1 to S4 above.
[0158] In addition, based on the same inventive concept, in other embodiments, a fetal brain magnetic resonance motion correction device based on feature association fusion may be provided, which includes a memory and a processor;
[0159] The memory is used to store computer programs;
[0160] The processor is used to implement the fetal brain magnetic resonance motion correction method based on feature association fusion as shown in S1 to S4 above when executing the computer program.
[0161] The above-mentioned storage device or memory can be implemented by a general storage device, which may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk storage. The above-mentioned processor may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. Of course, the device should also have the necessary components to realize the operation of the program, such as a power supply, a communication bus, etc. In addition, with the widespread application of cloud servers, the above-mentioned software programs can also be carried on the cloud platform to provide corresponding services, so the computer-readable storage medium is not limited to the form of local hardware.
[0162] It should be noted that the above-described embodiment is only a preferred solution of the present invention, but it is not intended to limit the present invention. A person skilled in the relevant technical field may make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, any technical solution obtained by equivalent replacement or equivalent transformation falls within the protection scope of the present invention.
Claims
1. A fetal brain magnetic resonance motion correction method based on feature correlation fusion, used to iteratively correct random inter-slice motion in magnetic resonance images, characterized in that: The following steps are involved: S1. Acquire a first data set comprising different magnetic resonance image samples, wherein each magnetic resonance image sample comprises three layer sets acquired along the cross-sectional, coronal and sagittal planes of the fetal brain; pre-process each magnetic resonance image sample in the first data set to obtain a super-resolution isotropic fetal brain volume for each sample, thereby forming a second data set; S2. Simulate and obtain random initial motion parameters of the fetal brain, each set of motion parameters includes three rotation parameters and three translation parameters; sample the fetal brain volume in the second data set in the form of three-dimensional rigid transformation according to the motion parameters obtained by simulation, and obtain a layer set affected by motion in the acquisition direction after sampling a piece of fetal brain volume with each set of motion parameters; the training data is composed of a series of layer sets affected by motion, and the layer sets affected by motion in three directions are isotropic reference volumes obtained by discrete data estimation methods, and a single training sample in the training data includes a layer set affected by motion and a reference volume corresponding to the layer set; S3. Using the training data to train the deep learning network to obtain a motion parameter estimation model; The network input of the deep learning network is divided into two parts, the first part of the input is a single layer set, and the second part of the input is a reference volume corresponding to the layer set in the first part; the motion parameter estimation process in the deep learning network is as follows a) to c): a) Extracting each layer image in the first part of the input through a two-dimensional convolutional neural network to obtain the corresponding two-dimensional feature map, and extracting the two-dimensional feature map through a bidirectional recurrent neural network to obtain the sequence relationship between the two-dimensional feature maps of each layer; extracting the reference volume in the second part of the input through a three-dimensional convolutional neural network to obtain a three-dimensional feature map; extracting the two-dimensional feature map and the three-dimensional feature map through an affinity fusion module to obtain the structural similarity relationship between each layer and the reference volume, and finally estimating the motion parameters corresponding to each layer through a fully connected layer according to the sequence relationship and the similarity relationship; b), based on the motion parameters corresponding to each layer estimated in a), the three layer sets in the first part are corrected respectively, and the three layer sets are reconstructed into an isotropic reference volume by a discrete data estimation method; c) iteratively executing a) and b) for several times, and updating the second part of the input with the latest reference volume before each iteration, and taking the latest motion parameters corresponding to each layer as the network output after all iterations are completed; S4. In actual application, the layer set collected for the target object is obtained, and an isotropic reference volume is obtained through a discrete data estimation method. The layer set of the target object and the reference volume are used as the network input of the motion parameter estimation model to estimate the motion parameters corresponding to each layer in the layer set. Then, the layer set collected for the target object is reconstructed based on the estimated motion parameters to obtain the isotropic volume of the target object.
2. The method for fetal brain magnetic resonance motion correction based on feature association fusion according to claim 1, characterized in that: In S1, the method for preprocessing each magnetic resonance image sample to obtain the fetal brain volume is as follows: S11, for three slice sets in the magnetic resonance image sample, use N4 deviation correction to perform global slice inhomogeneity correction; S12, using the mask to extract the fetal brain part in each layer processed by S11, and performing three-dimensional non-local mean denoising; S13, normalizing the three slice sets processed by S12 respectively, and then performing inter-slice motion correction and super-resolution reconstruction on them to obtain an isotropic volume that meets the target resolution; S14, the isotropic volume reconstructed by S13 is rigidly registered to the spatiotemporal map of the fetal brain according to the corresponding fetal gestational age, and the center of the registered volume is aligned, and then the volume size of all data is set to be consistent by filling the area around the volume with 0, and finally the isotropic fetal brain volume is obtained.
3. The method for fetal brain magnetic resonance motion correction based on feature association fusion according to claim 1, characterized in that: The implementation method of S2 is as follows: S21, randomly selecting a set of motion parameters from the preset uniform distribution of the motion parameters as the first control point, and then iteratively randomly selecting a set of motion parameter changes from the preset uniform distribution of the motion parameter changes and superimposing them on the motion parameters of the previous control point, so that a new set of motion parameters is used as the next control point, and finally forming a set of multiple control points; performing smooth fitting on the multiple control points in the set to obtain a motion curve, and adding a random offset to change the mean of the motion curve, and then uniformly sampling the offset motion curve according to the number of layers in the layer set to obtain motion parameters corresponding to each layer; the motion parameters corresponding to one layer include three rotation parameters θ=(θ x ,θ y ,θ z ) T and three translation parameters d=(d x ,d y ,d z ) T ; S22, for a fetal brain volume in the second data set, use the motion parameters corresponding to each layer generated in S21 to perform a three-dimensional rigid transformation in the Euler-Cartesian coordinate system, so as to simulate the movement of the fetal brain during the layer set acquisition process, and three layer sets affected by the movement obtained by sampling along the cross-sectional plane, coronal plane and sagittal plane of the fetal brain respectively form a layer set sample; S23. Repeat S21 and S22 continuously to form training data consisting of a series of different level set samples.
4. The method for fetal brain magnetic resonance motion correction based on feature association fusion according to claim 1, characterized in that: In the deep learning network, the bidirectional recurrent neural network is composed of multiple groups of GRU unit pairs, and the number of pairs of GRU unit pairs is the same as the total number of layers in the input layer set; each layer in the input layer set corresponds to a group of unit modules composed of a two-dimensional convolutional neural network, a GRU unit pair and a fully connected layer, and all layers share a three-dimensional convolutional neural network and an affinity fusion module; For any layer s in the layer set input in the first part, its layer image passes through the two-dimensional convolutional neural network corresponding to layer s and outputs a two-dimensional feature map x s1 , two-dimensional feature map x s1 The output feature obtained after passing through the GRU unit pair corresponding to the layer s is used as the first input of the fully connected layer corresponding to the layer s; and the reference volume in the second part of the input passes through the three-dimensional convolutional neural network and outputs a three-dimensional feature map x v1 ; At the same time, extract the three-dimensional feature map x from the convolution process of the two-dimensional convolutional neural network v1 The size of the intermediate feature map x matches s2 , and then the intermediate feature map x s2 and the three-dimensional feature map x v1 Flatten to two dimensions respectively, and get feature x s and feature x v , the feature x s and feature x v The structural similarity relationship y between each layer and the reference volume is extracted through the affinity fusion module: Among them, σ s (·) is the softmax activation function, W g , W s and W v is the weight matrix to be learned, C is the two-dimensional feature map x s1 and the three-dimensional feature map x v1 The number of channels; The similarity relationship y is used as the second input of the fully connected layer corresponding to the level s, and the fully connected layer outputs the motion parameters corresponding to the level s based on the two inputs.
5. The method for fetal brain magnetic resonance motion correction based on feature association fusion according to claim 1, characterized in that: The loss function of the deep learning network is: Among them, λ is a weighted hyperparameter, R s and d s are the true value of the rotation matrix and the true value of the translation parameter corresponding to the level s, and are the estimated values of the rotation matrix and the estimated values of the translation parameters corresponding to the layer s, respectively, F is the Ferrobenius norm, log(·) is the matrix logarithm operation, S represents the set of all layers in the layer set, γ is the weight hyperparameter; I represents the layer set, V represents the fetal brain volume without movement, is the final estimated motion parameter, Ω(·) represents the discrete data estimation method, and ‖·‖2 represents the L2 norm.
6. The method for fetal brain magnetic resonance motion correction based on feature association fusion according to claim 5, characterized in that: The deep learning network is trained in batches using the training data iterations until the network accuracy reaches the requirement and is then used as a motion parameter estimation model; and each training batch optimizes the network parameters by minimizing the total loss function, and the total loss function is the loss function value of all input samples in each training batch sum.
7. The method for fetal brain magnetic resonance motion correction based on feature association fusion according to claim 1, characterized in that: In the discrete data estimation method, the discrete two-dimensional layer is sampled onto a three-dimensional regular grid using a nearest neighbor algorithm and Gaussian blur.
8. The method for fetal brain magnetic resonance motion correction based on feature association fusion according to claim 1, characterized in that: In S4, the acquisition direction of the slice set acquired for the target object includes one or more of the three directions along the fetal brain transverse plane, the coronal plane and the sagittal plane.
9. A computer-readable storage device, characterized in that: The storage device stores a computer program, and when the computer program is executed by the processor, the fetal brain magnetic resonance motion correction method based on feature association fusion as described in any one of claims 1 to 8 is implemented.
10. A fetal brain magnetic resonance motion correction device based on feature association fusion, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is used to implement the fetal brain magnetic resonance motion correction method based on feature association fusion as described in any one of claims 1 to 8 when executing the computer program.
Citation Information
Patent Citations
Nuclear magnetic resonance image reconstruction method and device, computer equipment and storage medium thereof
CN109741416A
Medical imaging method and system and non-transient computer readable storage medium
CN112089419A
Nucleic acid extraction and amplification controls and methods of use thereof
US20180073055A1
Parallel magnetic resonance imaging method and related equipment
WO2020134826A1
