A method and system for removing artifacts from nuclear magnetic resonance based on multi-scale neural network
Through multi-scale neural network technology, data preprocessing and convolutional neural network structures are used to remove artifacts in nuclear magnetic resonance images, solving the problems of reduced image quality and slow imaging speed, and achieving high-quality nuclear magnetic resonance image matrix generation.
Patent Information
- Application Number
- CN202410728740.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-06
AI Technical Summary
There are artifacts in the images collected by the nuclear magnetic resonance system, which reduces the image quality and affects the accuracy of judgment. The existing technology has unsatisfactory local effects and slow imaging speed when removing artifacts.
Using a multi-scale neural network-based artifact removal method, through data preprocessing and multi-scale convolutional neural network structure, a residual network is established for model training and parameter adjustment, and high-quality blur kernels are used for inter-layer fusion to remove artifacts. shadow, forming a clear MRI image matrix.
It effectively solves the problems of reduced MRI image quality, unsatisfactory local effects and slow imaging speed when removing artifacts, and improves image quality and judgment accuracy.
Smart Images

Figure CN118298070B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of medical nuclear magnetic resonance imaging and deep learning technology, and in particular to a nuclear magnetic resonance artifact removal method and system based on a multi-scale neural network. Background Art
[0002] When patients undergo MRI, the rapid and dynamic changes in breathing status will cause artifacts in the images collected by the MRI system, which will reduce the quality of the MRI images of the patient's heart or brain and make the image judgment difficult. Therefore, a suitable motion artifact correction algorithm is needed to remove the artifacts and obtain clear images that are easy to observe.
[0003] There are currently several mainstream methods used to remove motion artifacts. One is to correct the acquired K-space data to eliminate artifacts in the MRI image. For example, by exchanging the direction of the phase encoding acquisition to obtain an orthogonal K-space factor, the motion artifact is corrected according to the phase difference between the two. This algorithm can significantly reduce motion artifacts, but there may be unsatisfactory local effects; the other is to directly process the acquired and reconstructed motion artifact image. For example, through the registration method, a high-resolution, low-signal-to-noise ratio cardiac MRI image is converted into a high-resolution, high-signal-to-noise ratio image, which effectively removes some motion artifacts. Traditional algorithms are based on prior knowledge. Although they can remove some motion artifacts and signal interference artifacts, they have disadvantages such as slow imaging speed and limited effect in removing motion artifacts. Summary of the invention
[0004] In view of the fact that artifacts exist in images collected by nuclear magnetic resonance systems under the prior art, which reduces the quality of patients' nuclear magnetic resonance images and causes problems in image judgment, the present application provides a nuclear magnetic resonance artifact removal method and system based on a multi-scale neural network.
[0005] The present application provides a method for removing artifacts from nuclear magnetic resonance images based on a multi-scale neural network, comprising:
[0006] Using a nuclear magnetic resonance system to collect images with artifacts, perform data preprocessing and obtain data preprocessing results;
[0007] The network model results are obtained based on the multi-scale convolutional neural network structure using the data preprocessing results;
[0008] The network model results are used to perform artifact removal to obtain an artifact-removed MRI image matrix.
[0009] Preferably, the method of using a nuclear magnetic resonance system to collect images with artifacts and perform data preprocessing to obtain data preprocessing results includes:
[0010] The image with artifacts is collected by using a nuclear magnetic resonance system to perform image conversion in a full sampling mode to obtain an image conversion result;
[0011] Using the image conversion result to perform image processing to obtain a nuclear magnetic resonance image database with artifacts;
[0012] Using a database of magnetic resonance images with artifacts as the result of data preprocessing;
[0013] The image processing includes rotation, mirroring, reduction and enlargement.
[0014] Preferably, the method of obtaining a network model result based on a multi-scale convolutional neural network structure using the data preprocessing result includes:
[0015] Establishing a corresponding residual network based on a multi-scale convolutional neural network structure according to the data preprocessing result;
[0016] Using the data preprocessing results to train, adjust parameters, and verify the residual network to obtain a first optimization model;
[0017] Performing feature structure division according to the first optimization model, and performing inter-layer fusion network structure on the feature structure to obtain a network model result;
[0018] Among them, the multi-scale convolutional neural network structure includes Tensorflow and pycharm architecture.
[0019] Furthermore, the method of using the data preprocessing result to train, adjust parameters, and verify the residual network to obtain the first optimization model includes:
[0020] Using the preprocessing result to input the residual network to perform model training according to the weight parameters to obtain a first intermediate model;
[0021] The first intermediate model is adjusted for a second time using the evaluation parameters to obtain a first optimized model.
[0022] Furthermore, the characteristic structure is divided according to the first optimization model, and the network model result obtained by performing inter-layer fusion on the characteristic structure includes:
[0023] Using the first optimization model to perform comparison and screening to obtain a picture feature structure in a nuclear magnetic resonance image database with artifacts;
[0024] Using the first optimization model to introduce an inter-layer fusion network structure to perform cross-compatibility on the feature structure to obtain a high-quality blur kernel;
[0025] The high-quality blur kernel is used as a network model result.
[0026] Preferably, the method of performing artifact removal using the network model result to obtain an artifact removed MRI image matrix comprises:
[0027] The network model result is used to perform artifact removal processing on the artifact area of the nuclear magnetic resonance based on the blur kernel to obtain an artifact-removed nuclear magnetic resonance image matrix.
[0028] Based on the same inventive concept, the present invention also provides a nuclear magnetic resonance artifact removal system based on a multi-scale neural network, comprising:
[0029] The data preprocessing module is used to use the nuclear magnetic resonance system to collect images with artifacts for data preprocessing to obtain data preprocessing results; the network model construction module is used to use the data preprocessing results to obtain network model results based on a multi-scale convolutional neural network structure; the image matrix output module is used to use the network model results to remove artifacts to obtain an artifact-removed nuclear magnetic resonance image matrix.
[0030] Compared with the closest prior art, the present invention has the following beneficial effects:
[0031] The invention solves the problem in related technologies that when artifacts exist in images collected by the MRI system, the quality of the MRI image is reduced, thereby affecting the accuracy of judgment. At the same time, the invention solves the problems of unsatisfactory local effect and slow imaging speed when removing MRI artifacts in the technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0033] Figure 1 A flowchart of a method for removing artifacts from nuclear magnetic resonance images based on a multi-scale neural network provided by the present invention;
[0034] Figure 2 A flowchart of a method for removing artifacts from nuclear magnetic resonance images based on a multi-scale neural network provided by the present invention;
[0035] Figure 3 A sub-network structure diagram of ResNet of a nuclear magnetic resonance artifact removal method based on a multi-scale neural network provided by the present invention;
[0036] Figure 4 An improved ResNet sub-network structure diagram of a nuclear magnetic resonance artifact removal method based on a multi-scale neural network provided by the present invention;
[0037] Figure 5A schematic diagram of a nuclear magnetic resonance artifact removal system based on a multi-scale neural network provided by the present invention;
[0038] Figure 6 A schematic diagram of a nuclear magnetic resonance artifact removal system based on a multi-scale neural network provided by the present invention. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0040] The terms used in the implementation section of this application are only used to explain the specific embodiments of this application and are not intended to limit this application.
[0041] In view of the problems that the existing technology has in removing nuclear magnetic resonance artifacts, such as unsatisfactory local effects and slow imaging speed, the embodiments of the present application provide a nuclear magnetic resonance artifact removal method and system based on a multi-scale neural network.
[0042] Embodiment 1: The present invention provides a method for removing artifacts from nuclear magnetic resonance images based on a multi-scale neural network, such as Figure 1 As shown, including:
[0043] For example, Figure 1 Shown is a general flow chart of a method and system for removing artifacts from magnetic resonance imaging based on a multi-scale neural network.
[0044] S100, using a nuclear magnetic resonance system to collect images with artifacts, perform data preprocessing, and obtain a data preprocessing result.
[0045] Specifically, an image with artifacts is collected by using a nuclear magnetic resonance system to perform image conversion, wherein the image conversion method includes but is not limited to a full sampling mode, thereby obtaining an image conversion result;
[0046] In one embodiment, in S100, the image acquired by the nuclear magnetic resonance system is in Dicom format, and image conversion in full sampling mode is performed on the image to convert the image acquired by the nuclear magnetic resonance into an image in jpg format.
[0047] Furthermore, the image conversion result is used to perform image processing to obtain a nuclear magnetic resonance image database with artifacts.
[0048] Specifically, the image processing method includes but is not limited to rotating, mirroring, enlarging, reducing, etc. the image in jpg format obtained through image conversion in S100, and storing it in a nuclear magnetic resonance image database, which is further named "nuclear magnetic resonance image database with artifacts". Through image processing, the nuclear magnetic resonance image database with artifacts becomes diverse and complex.
[0049] The MRI image database with artifacts is further used as the data preprocessing result.
[0050] S200, using the data preprocessing results to obtain a network model result based on a multi-scale convolutional neural network structure.
[0051] Specifically, a corresponding residual network is established based on a multi-scale convolutional neural network structure according to the data preprocessing result;
[0052] Among them, the multi-scale convolutional neural network structure includes Tensorflow and pycharm architecture.
[0053] In one embodiment, in S200, a residual network (Res-Net) is established, and a convolutional neural network framework (Tensorflow+pycharm environment) is further constructed.
[0054] For example, Figure 2 The figure shows a method and system flow chart of nuclear magnetic resonance artifact removal based on a multi-scale neural network. The output result after S1 executes S100 is Figure 2 The input of step S2, specifically, the artifact-bearing MRI image database is directly associated with the neurons in the residual network structure (Res-Net).
[0055] Specifically, each neuron is a set of mathematical operations, which includes accepting input, multiplying it by the weight of the neuron, and then passing the sum to other neurons through the activation function (ReLU). Furthermore, a neural network is a group of neurons organized in layers. The neural network adjusts the input weights of unit neurons according to the generated data through learning, which serves as a reference for hierarchical input data and feature extraction in the process of outputting network model results.
[0056] The data preprocessing results are used to train, adjust parameters, and verify the residual network to obtain a first optimization model.
[0057] Specifically, the artifact-containing magnetic resonance image database is used to associate the residual network, and the model is trained, parameterized, and verified to obtain a first optimized model, and the aforementioned actions are repeated until an optimal residual network model is achieved.
[0058] Furthermore, the optimal criterion is that when the evaluation parameters maintain a relatively fixed maximum value during the model training process, the network model is determined to be optimal.
[0059] Furthermore, the model adjusts the weight parameters to adjust the hyperparameters of the network structure, thereby optimizing the evaluation parameters to obtain a determined residual network model.
[0060] Specifically, the network structure parameters can be defined as the first-level parameters of the model's internal parameters, where the weight parameters are the secondary parameters of the first-level parameters, and the evaluation parameters generated during the training process are defined as the second-level parameters. The model adjusts the weight parameters to determine the first-level parameters, and then optimizes the second-level parameters to obtain a determined residual network model.
[0061] Furthermore, the hyperparameters of the network structure include but are not limited to: learning rate α, number of network layers, number of hidden units per layer, learning rate decay value, mini-batch, etc. The evaluation parameters are generated during the model training process, specifically, the accuracy and recall rate, mean average precision mAP, model detection rate, and model size model_size.
[0062] Specifically, the preprocessing result is input into the residual network to perform model training according to the weight parameters to obtain a first intermediate model;
[0063] The first intermediate model is adjusted for a second time using the evaluation parameters to obtain a first optimized model.
[0064] Specifically, the data preprocessing result is used to perform comparison and screening processing to obtain the image feature structure in the nuclear magnetic resonance image database with artifacts;
[0065] Using the first optimization model to introduce an inter-layer fusion network structure to perform cross-compatibility on the feature structure to obtain a high-quality blur kernel;
[0066] Using the high-quality blur kernel as a network model result;
[0067] Among them, the comparison and screening processing is to use the adjusted model to input data, and the output result, that is, the comparison and screening result, is used as the image feature structure in the nuclear magnetic resonance image database with artifacts.
[0068] Specifically, Figure 3 , Figure 4 As shown, Figure 3It is a sub-network structure diagram. Specifically, "in" is the associated MRI image database with artifacts, "x" is the location of the locked blur kernel area, the network model performs convolution processing on the area where "x" is located, and increases the number of network layers through the activation function. The initially locked blur kernel "x" is hierarchically superimposed with the output result obtained through model processing, and then a clear blur kernel pixel matrix is output.
[0069] Furthermore, there is no upper limit on the number of subnetwork structures, e.g. Figure 4 The figure shows the improved sub-network structure. Compared with single-layer processing, the fuzzy kernel processing is deeper with more layers.
[0070] The feature structure is divided according to the first optimization model, and the network model result is obtained by performing inter-layer fusion of the feature structure, which is named "MDW-ResNet network".
[0071] Specifically, Figure 5 As shown in the figure, the input of size 1 is saved in the storage layer after passing through the convolution layer and the separation layer. The output of size 1 is further used as the upsampling layer of the input of size 2. The input of size 2 and the upsampling layer are cross-fused through the network structure of inter-layer fusion as the complete input of size 2. Furthermore, it is saved in the storage layer after passing through the convolution layer and the separation layer.
[0072] Furthermore, the output of size 2 is used as the upsampling layer of size 3. The input of size 3 is cross-fused with the upsampling layer through the inter-layer fusion network structure as the complete input of size 3. Further, it is saved in the storage layer after the convolution layer and the separation layer.
[0073] Furthermore, there are only adjacent level associations between the levels, and the number of levels is only related to the associated MRI image database with artifacts.
[0074] For example, in one embodiment, the specific process of training, adjusting parameters, and verifying the residual network of the multi-scale convolutional neural network structure includes the following process:
[0075] (1) Associating the artifact-bearing MRI image database with the residual network structure;
[0076] (2) Adjust the weight parameters according to the correlation relationship, and then adjust the hyperparameters of the network structure. Furthermore, output neurons when the evaluation parameters reach the optimal value, thereby forming a neural network.
[0077] (3) According to the weight parameter formula of formula (1), the neural network is adjusted and used as a reference for the activation function in the MRI image database with artifacts, thereby achieving the purpose of extracting feature information;
[0078] Y(output)=W∗X+b (Formula 1)
[0079] Wherein, Y is the neuron input to the activation function, x is the model input value, b is a constant, and w is the weighted accumulation result;
[0080] (4) Using feature information as a reference standard for different input scales
[0081] For example, Figure 3 The following is a diagram of the subnetwork structure of ResNet. Specifically, according to Figure 2 The neural network obtained during the training of the residual network model in step S2 locks the feature information and passes through convolution Conv, activation function ReLU, and convolution Conv in sequence to obtain the preliminary output result, and then performs a full connection operation with the initial input data of the sub-network structure to achieve the purpose of making the fusion layer size consistent between levels, and further, cross-fusion of related levels until the final output is a clear blur kernel.
[0082] Embodiment 2: A system, such as Figure 6 As shown,
[0083] The method flow in the embodiment of the present application can be implemented by dividing the functions into various modules. The division of each module is only a division of logical functions. When implementing the embodiment of the present application, the functions of each module can be implemented in the same or multiple software and / or hardware.
[0084] Specifically, the device proposed in the embodiment of the present application can be fully or partially integrated into a physical entity during actual implementation, or it can be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware. For example, the detection module can be a separately established processing element, or it can be integrated in a chip of an electronic device. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, or they can be implemented independently. In the implementation process, each step of the above method or each of the above modules can be completed by an integrated logic circuit of hardware in a processor element or instructions in the form of software.
[0085] For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as one or more application specific integrated circuits (ASIC), or one or more digital signal processors (DSP), or one or more field programmable gate arrays (FPGA), etc. For another example, these modules may be integrated together and implemented in the form of a system-on-a-chip (SOC).
[0086] An embodiment of the present application also provides a system for nuclear magnetic resonance artifact removal based on a multi-scale neural network, which is used to implement the above method. When the system is run on a computer, the computer executes the method provided by the embodiment of the present application.
[0087] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0088] The present invention is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0089] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0090] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0091] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for removing artifacts from nuclear magnetic resonance images based on multi-scale neural networks. It is characterized in that include: S100, using a nuclear magnetic resonance system to collect images with artifacts and perform data preprocessing to obtain a data preprocessing result; S101, using a nuclear magnetic resonance system to collect an image with artifacts and perform image conversion in a full sampling mode to obtain an image conversion result; S102, performing image processing using the image conversion result to obtain a nuclear magnetic resonance image database with artifacts; S103, using a nuclear magnetic resonance image database with artifacts as a data preprocessing result; Wherein, the image processing includes rotation, mirroring, reduction, and enlargement; S200, using the data preprocessing result to obtain a network model result based on a multi-scale convolutional neural network structure; S201, establishing a corresponding residual network based on a multi-scale convolutional neural network structure according to the data preprocessing result; S202, using the data preprocessing result to train, adjust parameters, and verify the residual network to obtain a first optimization model; S2021, using the preprocessing result to input the residual network to perform model training according to the weight parameters to obtain a first intermediate model; S2022, using the evaluation parameters to perform a second parameter adjustment on the first intermediate model to obtain a first optimized model; S203, dividing the feature structure according to the first optimization model, and performing inter-layer fusion network structure on the feature structure to obtain a network model result; S2031, performing comparison and screening processing using the preprocessing results to obtain a picture feature structure in a nuclear magnetic resonance image database with artifacts; S2032, using the first optimization model to introduce an inter-layer fusion network structure to perform cross-compatibility on the feature structure to obtain a high-quality blur kernel; S2033, using the high-quality fuzzy kernel as a network model result; Wherein, the multi-scale convolutional neural network structure includes Tensorflow and pycharm architecture; S300, performing artifact removal using the network model result to obtain an artifact removed MRI image matrix; S301, using the network model result to perform artifact removal processing on the artifact area of the nuclear magnetic resonance based on the blur kernel to obtain an artifact-removed nuclear magnetic resonance image matrix.
2. A system based on the method for removing artifacts from nuclear magnetic resonance images based on a multi-scale neural network as claimed in claim 1, It is characterized in that include: A data preprocessing module, used for collecting images with artifacts by using a nuclear magnetic resonance system to perform data preprocessing to obtain data preprocessing results; The network model building module is used to obtain the network model results based on the multi-scale convolutional neural network structure using the data preprocessing results; The image matrix output module is used to perform artifact removal using the network model results to obtain an artifact-removed magnetic resonance image matrix.
