A method, device and computer equipment for improving the quality of magnetic resonance brain images

By screening and reconstructing low-quality magnetic resonance brain images based on classification models and diffusion models, the problem of clinical image resolution and noise is solved, the improvement of high-quality images is achieved, and the accuracy of diagnosis and reliability of early disease detection are improved. sex.

CN118279158BActive Publication Date: 2024-10-11ZHEJIANG LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410704674.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-03
Publication Date
2024-10-11
Estimated Expiration
2044-06-03

AI Technical Summary

Technical Problem

The resolution of clinical magnetic resonance brain images is low and the images are noisy. Traditional super-resolution methods cannot accurately reconstruct the lost high-frequency details and complex textures, resulting in low image quality and affecting the accuracy of diagnosis.

Method used

Using methods based on classification models and diffusion models, low-quality brain imaging data is screened out by constructing quality evaluation indicators, and the U-Net network is used to perform forward and reverse diffusion processes to integrate high-quality and low-quality features to improve image quality. .

Benefits of technology

Improved image resolution and clarity provide more accurate diagnostic information and detailed anatomy, enhancing the reliability of early disease detection and treatment planning.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118279158B_ABST
    Figure CN118279158B_ABST
Patent Text Reader

Abstract

The present application relates to a method, device and computer equipment for improving the quality of magnetic resonance brain imaging, including constructing a quality assessment index according to the modality of brain imaging data, constructing a classification model based on the quality assessment index, inputting a multimodal brain imaging data set into the classification model for evaluation, obtaining low-quality brain imaging data, and reconstructing the low-quality brain imaging data with the help of a diffusion model to obtain target high-quality brain imaging data. By using low quality and high quality as input data at the same time, fusing high-quality features with low-quality features, and inputting low-quality brain imaging data determined in actual quality assessment into a trained model, it is helpful to improve the quality and resolution of images, provide more accurate diagnosis and more detailed anatomical structure information, and is of great significance for early disease detection, quantitative analysis and treatment planning.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of magnetic resonance image processing, and in particular to a method, device and computer equipment for improving the quality of magnetic resonance brain images. Background Art

[0002] Magnetic resonance imaging (MRI) is a non-invasive medical imaging technology that is widely used in clinical diagnosis and research. During the MRI scan, the patient needs to remain relatively still to ensure the clarity of the image. During the scan, the magnetic resonance coil sends pulses to the patient's body parts and then receives the return signal. The return signal is processed by the computer and converted into a magnetic resonance image, which can show the different tissue structures inside the human body. The resolution of MRI images indicates the level of detail that can be distinguished in the image. Higher resolution can provide more accurate anatomical information, and high-quality images help to make more accurate diagnoses and formulate treatment plans. However, due to hardware and time limitations, clinical MRIs usually have low resolution, more image noise, and even some artifacts. It is difficult for doctors to quickly and accurately determine the lesions from low-quality brain imaging data. When analyzing clinical data, the included images need to meet certain quality requirements, otherwise it will affect the reliability and stability of the analysis. Therefore, image quality assessment is required for clinically collected images. The traditional evaluation method is to evaluate by the doctor's naked eye. This evaluation method is time-consuming and labor-intensive, and the same image will produce different results due to different doctors' experience. Therefore, automated quality control (QC) of magnetic resonance imaging is crucial in clinical image quality assessment.

[0003] In order to overcome the limitations of MRI image resolution and quality, super-resolution methods have been introduced into MRI image processing. Super-resolution methods aim to reconstruct high-resolution images from low-resolution images to improve the level of detail in the image. This method is based on statistical and structural information in the image, and predicts the details in the high-resolution image by utilizing the features in the low-resolution image. In MRI image processing, super-resolution methods have many applications. One of the common methods is the interpolation-based super-resolution method, which performs pixel-level interpolation on the low-resolution image through an interpolation algorithm to obtain a high-resolution image. Another common method is the reconstruction-based super-resolution method, which uses the statistical model and prior information of the image to reconstruct the high-resolution image. However, traditional super-resolution methods have some limitations and cannot accurately reconstruct the lost high-frequency details and complex textures. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device and computer equipment for improving the quality of magnetic resonance brain images, which can grade magnetic resonance brain images and improve the quality of low-quality brain image data, in order to address the above technical problems.

[0005] In a first aspect, the present application provides a method for improving the quality of magnetic resonance brain images, the method for improving the quality of magnetic resonance brain images comprising:

[0006] Constructing a quality assessment index according to the modality of the brain imaging data, and constructing a classification model based on the quality assessment index;

[0007] Inputting the multimodal brain imaging data set into the classification model for evaluation to obtain low-quality brain imaging data;

[0008] The low-quality brain image data are reconstructed with the help of a diffusion model to obtain target high-quality brain image data.

[0009] In one embodiment, the step of constructing a quality assessment index according to the brain imaging data modality and constructing a classification model based on the quality assessment index includes:

[0010] According to the different brain imaging data modalities, various quality assessment indicators are classified to obtain the indicators needed for image quality assessment of each modality;

[0011] Using a classification model to assign weights to the image quality assessment index, using an Embedding module to convert the index data into a vector representation, and using a convolutional neural network to extract features from the brain image data;

[0012] The training model was built using the Pytorch framework. The input data was the image quality assessment index and the characteristics of the image itself. The output data was set to three levels: high quality, general quality, and low quality. The cross entropy loss function was used as the training loss function.

[0013] In one embodiment, the step of inputting the multimodal brain image data set into the classification model for evaluation to obtain low-quality brain image data includes:

[0014] Acquiring a multimodal brain image data set, and preprocessing the brain image data set to obtain a processed image;

[0015] Importing the processed image into the classification model to determine the level corresponding to the brain image data set;

[0016] Low-quality brain imaging data are screened out based on the grades.

[0017] In one embodiment, the preprocessing comprises:

[0018] Brain tissue region segmentation, skull stripping and spatial normalization operations.

[0019] In one embodiment, reconstructing the low-quality brain image data with the help of a diffusion model to obtain target high-quality brain image data includes:

[0020] Based on the image quality improvement algorithm, the diffusion model is constructed using the U-Net network.

[0021] Acquire high-quality training brain image data corresponding to the low-quality brain image data, input the low-quality brain image data and the high-quality training brain image data into the diffusion model, and restore the low-quality brain image data to target high-quality brain image data through forward diffusion and reverse diffusion.

[0022] In one embodiment, the process further includes generating low-quality training brain image data and using the low-quality training brain image data to train the classification model, wherein generating the low-quality training brain image data includes:

[0023] Simulate the bias field with uneven magnetic field distribution;

[0024] Blurring and reducing the resolution of high-quality raw brain image public data;

[0025] A rigid transformation is performed on the time series images corresponding to the processed high-quality original brain image public data to obtain low-quality training brain image data that simulates motion artifacts of the subject.

[0026] In a second aspect, the present application further provides a device for improving the quality of magnetic resonance brain images, the device for improving the quality of magnetic resonance brain images comprising:

[0027] A model building module, used to build quality assessment indicators according to the modality of brain imaging data, and build a classification model based on the quality assessment indicators;

[0028] An image grading module, used for inputting a multimodal brain image data set into the classification model for evaluation to obtain low-quality brain image data;

[0029] The image reconstruction module is used to reconstruct the low-quality brain image data with the help of a diffusion model to obtain target high-quality brain image data.

[0030] In a third aspect, the present application further provides a computer device. The computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the following steps when executing the computer program:

[0031] Constructing a quality assessment index according to the modality of the brain imaging data, and constructing a classification model based on the quality assessment index;

[0032] Inputting the multimodal brain imaging data set into the classification model for evaluation to obtain low-quality brain imaging data;

[0033] The low-quality brain image data are reconstructed with the help of a diffusion model to obtain target high-quality brain image data.

[0034] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0035] Constructing a quality assessment index according to the modality of the brain imaging data, and constructing a classification model based on the quality assessment index;

[0036] Inputting the multimodal brain imaging data set into the classification model for evaluation to obtain low-quality brain imaging data;

[0037] The low-quality brain image data are reconstructed with the help of a diffusion model to obtain target high-quality brain image data.

[0038] In a fifth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:

[0039] Constructing a quality assessment index according to the modality of the brain imaging data, and constructing a classification model based on the quality assessment index;

[0040] Inputting the multimodal brain imaging data set into the classification model for evaluation to obtain low-quality brain imaging data;

[0041] The low-quality brain image data are reconstructed with the help of a diffusion model to obtain target high-quality brain image data.

[0042] The above-mentioned magnetic resonance brain image quality improvement method, device and computer equipment use low-quality and high-quality as input data at the same time, fuse high-quality features with low-quality features, and input low-quality brain image data determined in actual quality assessment into a trained model, which helps to improve the quality and resolution of the image, provide more accurate diagnosis and more detailed anatomical structure information, and is of great significance for early disease detection, quantitative analysis and treatment planning. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A diagram of an application environment of a method for improving the quality of magnetic resonance brain imaging in one embodiment;

[0044] Figure 2 is a flow chart of a method for improving the quality of magnetic resonance brain images in one embodiment;

[0045] Figure 3 is a schematic diagram of the process of step S20 in one embodiment;

[0046] Figure 4 is a schematic diagram of processing three magnetic resonance images with different characteristics in one embodiment;

[0047] Figure 5 is a flow chart of step S40 in one embodiment;

[0048] Figure 6 is a schematic diagram of the process of step S60 in one embodiment;

[0049] Figure 7 is a flow chart of an image quality improvement process based on a diffusion model in one embodiment;

[0050] Figure 8 is a structural block diagram of a device for improving the quality of magnetic resonance brain images in one embodiment;

[0051] Fig. 9 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0052] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0053] The method for improving the quality of magnetic resonance brain images provided in the embodiments of the present application can be applied to Figure 1 In the application environment shown. Among them, the terminal 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. Among them, the terminal 102 can be but is not limited to various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. The server 104 can be implemented with an independent server or a server cluster consisting of multiple servers.

[0054] In one embodiment, Figure 2 As shown, a method for improving the quality of magnetic resonance brain images is provided, and the method is applied to Figure 1 The terminal 102 in the example is used as an example to illustrate, and the following steps are included:

[0055] Step S20, constructing a quality assessment index according to the modality of the brain image data, and constructing a classification model based on the quality assessment index.

[0056] Among them, the construction of the classification model includes: first, according to the different modalities of brain imaging data, each quality assessment indicator is classified to obtain the indicators needed for the image quality assessment of each modality; secondly, the classification model is used to automatically assign weights to these image quality assessment indicators, the Embedding module is used to convert the indicator data into a vector representation, and a convolutional neural network is used to extract features of the brain imaging data; then, the training model is built using the Pytorch framework, the input data is the image quality assessment indicators and the characteristics of the image itself, and the output data is three levels: high quality, general quality and low quality, and the cross entropy loss function is used as the training loss; finally, the actual clinical images and various calculated indicators are input into the trained model to achieve the quality assessment of clinical images.

[0057] Step S40: input the multimodal brain image data set into the classification model for evaluation to obtain low-quality brain image data.

[0058] First, the multimodal brain imaging data set is preprocessed. Multimodal MRI mainly includes structural MRI, functional MRI and diffusion MRI. Data preprocessing operations are performed on them, including brain tissue area segmentation, skull stripping and spatial normalization. The quality assessment index is calculated for the preprocessed images, and these indexes are combined to reflect the clarity, signal-to-noise ratio, completeness, artifacts and other conditions of the multimodal images. An overall score is given to the image quality as a classification label. Combining the quality assessment index and the image itself, a classification model is constructed to divide the images into three levels, and low-quality brain imaging data that does not meet the standards is screened out.

[0059] Step S60: reconstruct the low-quality brain image data with the help of a diffusion model to obtain target high-quality brain image data.

[0060] First, the high-quality training brain image data and the constructed low-quality brain image data are matched one by one as the input of the model; secondly, the image quality improvement algorithm is designed, using the main idea of ​​the diffusion model and the U-Net network as the main network model of the algorithm. The diffusion model is mainly divided into two parts: the forward diffusion process and the reverse diffusion process. The forward diffusion process adds noise to the input image and gradually increases the noise level until the image becomes a full Gaussian noise. The main goal of the reverse diffusion process is to restore the structure of the original data from the perturbed data distribution. This algorithm uses low-quality and high-quality as input data at the same time, and fuses high-quality features and low-quality features through the SE attention module. The model is built and trained using the Pytorch framework. The output data is the noise predicted by the model, and Charbonnier loss is used as the training loss; finally, the low-quality brain image data determined in the actual quality assessment is input into the trained model to achieve image quality improvement of low-quality data.

[0061] The embodiment of the present application proposes a method for improving the quality of magnetic resonance brain images, which uses a diffusion model to process low-quality brain image data to obtain target high-quality brain image data with more details. Since the high-frequency information of the image contains features such as details and texture, the use of the diffusion model can effectively restore the high-frequency details of the image, making the image corresponding to the reconstructed target high-quality brain image data clearer and more realistic.

[0062] In one embodiment, Figure 3 As shown, step S20 includes:

[0063] Step S202: Classify the quality assessment indicators according to the different brain image data modalities to obtain the indicators required for the image quality assessment of each modality.

[0064] In practice, the present application embodiment uses the scalable Nipype workflow module to complete the calculation of image evaluation indicators. Image evaluation indicators are mainly used to evaluate the quality of different aspects of brain MRI images, including noise, image clarity, and artifacts. Depending on the different modalities of magnetic resonance data, different image evaluation indicators are selected as the main scoring indicators of the modality, such as Figure 4 shown.

[0065] The quality score of structural MRI mainly includes the following three aspects:

[0066] 1) Noise control indicators: including QI, CJV, CNR, SNR and dSNR. These indicators are used to evaluate the noise level and contrast in the image.

[0067] 2) Information theory indicators: including FWHM, EFC and FBER. These indicators are used to evaluate the clarity and information richness of images.

[0068] 3) Artifacts and other indicators: including RPVE and OL. These indicators are used to evaluate artifacts and other image anomalies in the image.

[0069] The quality score of diffusion magnetic resonance imaging mainly includes the following three aspects:

[0070] 1) Sampling completeness indicators: including Size, Space, and Origin. These indicators are used to evaluate the completeness and accuracy of image sampling.

[0071] 2) Structural integrity indicators: including Slice Wise and Interlace Wise. These indicators are used to evaluate the structural integrity of the image, that is, whether there is inconsistency between slices in the image.

[0072] 3) b value and gradient index: including b Value and Gradient. These indexes are used to evaluate the accuracy and consistency of b value and gradient settings in diffusion imaging.

[0073] The quality rating of functional magnetic resonance imaging mainly includes the following three aspects:

[0074] 1) Spatial information indicators: including SNR, EFC, FWHM and FBER. These indicators are used to evaluate the spatial resolution and clarity of the image.

[0075] 2) Temporal information indicators: including tSNR and DVARS. These indicators are used to evaluate the temporal stability and noise level of the image.

[0076] 3) Artifacts and other indicators: including Dummy, AOR, FD and GSR. These indicators are used to evaluate artifacts and other image abnormalities in functional imaging.

[0077] The above multimodal MRI image quality indicators serve as input for subsequent multimodal network classification.

[0078] Step S204: Use a classification model to assign weights to the image quality assessment index, use an Embedding module to convert the index data into a vector representation, and use a convolutional neural network to extract features from the brain image data.

[0079] In practice, each image corresponding to the brain imaging data is evaluated and labeled independently, typically divided into three categories: suspicious, accepted, and excluded. These classification labels can provide preliminary judgments and distinctions about image quality, providing a basis for subsequent analysis and research. In order to comprehensively consider different evaluation results, the average of the evaluation results can also be used as the final classification label. By calculating the average score of the evaluation results of each image, a comprehensive and objective image quality evaluation label is obtained, which more accurately reflects the image quality.

[0080] like Figure 4 As shown in the figure, for three different characteristics of magnetic resonance images, the corresponding image evaluation indicators are calculated respectively, and the training and testing are carried out in combination with the magnetic resonance images themselves, and the evaluation results are used as classification labels. When processing the calculated image quality evaluation indicators, the Embedding module is used to convert the indicator data into a vector representation. For magnetic resonance images, a convolutional neural network is used for feature extraction.

[0081] Since the vector dimensions of image features and text features are different, linear discriminant analysis is used to reduce the dimension of text and image feature vectors, and the indicator features and image features are fused through a multimodal attention network. The fused features are learned by a residual network and classified by a fully connected layer, and finally a result indicating whether the quality of the magnetic resonance image is suitable for subsequent image processing is output.

[0082] Step S206, using the Pytorch framework to build a training model, the input data is the image quality assessment index and the characteristics of the image itself, setting the output data type to three levels including high quality, general quality and low quality, and using the cross entropy loss function as the training loss function.

[0083] In the implementation, the training model was built using the Pytorch framework. The input data was the image quality assessment index and the image characteristics. The output data was three levels: high quality, general quality, and low quality. The cross entropy loss function was used as the training loss function. The actual clinical images and various calculated indicators were input into the trained model to achieve the quality assessment of clinical images.

[0084] Pytorch is an open source neural network framework that is specifically designed for programming GPU-accelerated deep neural networks. Unlike Tensorflow's static computational graph, Pytorch's computational graph is dynamic and can be changed in real time according to computational needs.

[0085] In one embodiment, Figure 5 As shown, step S40 includes:

[0086] Step S402: acquiring a multimodal brain image data set, and preprocessing the brain image data set to obtain a processed image.

[0087] In the implementation, the multimodal brain imaging data set was preprocessed. The multimodal magnetic resonance imaging mainly includes structural magnetic resonance imaging, functional magnetic resonance imaging and diffusion magnetic resonance imaging. Data preprocessing operations were performed on them respectively, including brain tissue region segmentation, skull stripping and spatial normalization.

[0088] Step S404: importing the processed image into the classification model to determine the level corresponding to the brain image dataset.

[0089] In the implementation, the quality assessment indexes are calculated for the preprocessed images, and these indexes are combined to reflect the clarity, signal-to-noise ratio, completeness, artifacts, etc. of the multimodal images. An overall score is given to the image quality as a classification label, and a classification model is constructed by combining the quality assessment index and the image itself, and the images are mainly divided into three levels: high quality, general quality, and low quality.

[0090] Step S406: filter out low-quality brain image data based on the level.

[0091] During implementation, quality improvement operations are subsequently performed on low-quality brain imaging data.

[0092] In one embodiment, Figure 6 As shown, step S60 includes:

[0093] Step S602: Based on the image quality improvement algorithm, a diffusion model is constructed using a U-Net network.

[0094] In the implementation, high-quality training brain image data and constructed low-quality brain image data are matched one by one as the input of the model; secondly, an image quality improvement algorithm is designed, using the main idea of ​​the diffusion model and the U-Net network as the main network model of the algorithm. The diffusion model is mainly divided into two parts: the forward diffusion process and the reverse diffusion process. The forward diffusion process adds noise to the input image and gradually increases the noise level until the image becomes a full Gaussian noise. The main goal of the reverse diffusion process is to restore the structure of the original data from the perturbed data distribution. This algorithm uses low-quality and high-quality data as input data at the same time, and fuses high-quality features and low-quality features through the SE attention module. The model is built and trained using the Pytorch framework. The output data is the noise predicted by the model, and Charbonnier loss is used as the training loss function.

[0095] Step S604, obtaining high-quality training brain image data corresponding to the low-quality brain image data, inputting the low-quality brain image data and the high-quality training brain image data into the diffusion model, and restoring the low-quality brain image data to the target high-quality brain image data through forward diffusion and reverse diffusion.

[0096] In implementation, low-quality brain imaging data determined in actual quality assessment are input into the trained model to improve the image quality of low-quality data.

[0097] Super-resolution technology works by enhancing the spatial resolution of low-resolution MRI and restoring tissue contrast. Traditional super-resolution techniques (methods such as trilinear interpolation, compressed sensing, and sparse representation) cannot restore high-frequency details of images. In contrast, deep learning outperforms traditional methods because it can capture fine details. The conditional diffusion model is a class of deep generative models that combines the diffusion process of Markov chains with conditional variables to restore high-quality training brain image data. The stochastic nature of the diffusion model enables the generation of multiple high-quality training brain image data through sampling, thereby achieving inherent uncertainty estimation of the output of high-quality training brain image data.

[0098] A 3D conditional diffusion model is proposed to restore low-quality brain image data into high-quality training brain image data. Figure 7 The proposed diffusion model-based image quality improvement process achieves high-quality reconstruction of MRI through forward and reverse diffusion processes. For the given high-quality training brain image data x 0 ~q(x 0 ) , the forward process is based on the noise variance ,pass T Gaussian noise is gradually added to the x 0 until pure Gaussian noise is generated.

[0099] The forward noise process is defined as shown in Formula 1:

[0100] , Formula 1;

[0101] in, , T represents the number of diffusion steps, T The value of is a positive integer. is the identity matrix, Represents a normal distribution with mean and covariance.

[0102] The main goal of the reverse diffusion process is to Generate new high-quality training brain imaging data. This is done by using high-quality training brain imaging data As a condition to construct the reverse distribution , as shown in Formula 2, where is the noise weight, which changes continuously as t increases:

[0103] , Formula 2;

[0104] The network proposed here is a multi-stream network consisting of two encoders and one decoder, each extracting a latent representation. Weights are shared between encoders. First, features are extracted from low-quality brain image data and corresponding high-quality training brain image data. Then, the squeeze and excitation (SE) module is used to dynamically weight the most relevant features. Finally, the decoder upsamples the weighted features and outputs the predicted noise. . The Gaussian mean is calculated by predicting the noise.

[0105] The loss used in this application is Charbonnier Loss, abbreviated as , which is a smoother transition between L1 and L2 losses, and helps to converge more stably and accurately during training. Charbonnier Loss is sensitive to non-Gaussian noise and can preserve sharp edges and details in MRI. The calculation process is shown in Formula 3:

[0106] , Formula 3;

[0107] in, is a known constant, is the real noise.

[0108] In one embodiment, after executing step S20 to obtain the classification model, the method for improving the quality of magnetic resonance brain images proposed in this embodiment further includes generating low-quality training brain image data and using the low-quality training brain image data to train the classification model, wherein generating low-quality training brain image data includes:

[0109] Simulate the bias field with uneven magnetic field distribution;

[0110] Blurring and reducing the resolution of high-quality raw brain image public data;

[0111] A rigid transformation is performed on the time series images corresponding to the processed high-quality original brain image public data to obtain low-quality training brain image data that simulates motion artifacts of the subject.

[0112] In practice, in clinically collected MRI images, low-quality training brain image data and high-quality training brain image data are rarely obtained at the same time. In order to generate large-scale low-quality training brain image data, previous researchers usually simply downsampled high-resolution images to generate low-resolution images. However, this method cannot fully simulate the low-quality brain image data in clinical collection. Therefore, a large-scale low-quality brain image dataset generation method is proposed to effectively simulate the characteristics of clinical low-quality data. The process is mainly divided into the following three parts:

[0113] (1) Bias field

[0114] In the process of clinical image acquisition, there will be uneven magnetic field distribution, resulting in uneven grayscale values ​​in the image. By simulating the inhomogeneity of the bias field, the image distortion caused by improper shimming is obtained. In order to simulate the possible bias field inhomogeneity in clinical acquisition, a zero-mean Gaussian distribution is randomly sampled independently on each voxel to obtain an uneven bias field. The image is multiplied by the bias field coefficient to obtain low-quality training brain image data caused by uneven shimming.

[0115] (2) Resolution

[0116] Due to time constraints, clinical images collected will make trade-offs between layer thickness and resolution. Conventional clinical images often have high inter-layer spacing and low resolution, while images generally used for scientific research require higher resolution. In order to simulate this scenario, blurring and downsampling methods are used. The image is Gaussian blurred and downsampled to a set resolution to generate low-quality training brain image data due to resolution.

[0117] (3) Motion artifacts

[0118] For time series image data, motion artifacts are usually generated due to the movement of the subject. In order to simulate the phenomenon of image quality degradation caused by movement, an inverse rigid transformation is introduced to simulate the movement of the subject, and the time series images are subjected to some small rigid transformations to generate low-quality training brain image data caused by the subject's movement.

[0119] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0120] Based on the same inventive concept, the embodiment of the present application also provides a device for improving the quality of magnetic resonance brain images for implementing the above-mentioned method for improving the quality of magnetic resonance brain images. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in the embodiments of one or more devices for improving the quality of magnetic resonance brain images provided below can refer to the limitations of the method for improving the quality of magnetic resonance brain images above, and will not be repeated here.

[0121] In one embodiment, Figure 8 As shown, a device 70 for improving the quality of magnetic resonance brain images is provided, comprising:

[0122] The model building module 72 is used to build quality assessment indicators according to the modality of brain image data, and build a classification model based on the quality assessment indicators.

[0123] Among them, the construction of the classification model includes: first, according to the different modalities of brain imaging data, each quality assessment indicator is classified to obtain the indicators needed for the image quality assessment of each modality; secondly, the classification model is used to automatically assign weights to these image quality assessment indicators, the Embedding module is used to convert the indicator data into a vector representation, and a convolutional neural network is used to extract features of the brain imaging data; then, the training model is built using the Pytorch framework, the input data is the image quality assessment indicators and the characteristics of the image itself, and the output data is three levels: high quality, general quality and low quality, and the cross entropy loss function is used as the training loss; finally, the actual clinical images and various calculated indicators are input into the trained model to achieve the quality assessment of clinical images.

[0124] The image grading module 74 is used to input the multimodal brain image data set into the classification model for evaluation to obtain low-quality brain image data.

[0125] First, the multimodal brain imaging data set is preprocessed. Multimodal MRI mainly includes structural MRI, functional MRI and diffusion MRI. Data preprocessing operations are performed on them, including brain tissue area segmentation, skull stripping and spatial normalization. The quality assessment index is calculated for the preprocessed images, and these indexes are combined to reflect the clarity, signal-to-noise ratio, completeness, artifacts and other conditions of the multimodal images. An overall score is given to the image quality as a classification label. Combining the quality assessment index and the image itself, a classification model is constructed to divide the images into three levels, and low-quality brain imaging data that does not meet the standards is screened out.

[0126] The image reconstruction module 76 is used to reconstruct the low-quality brain image data with the help of a diffusion model to obtain target high-quality brain image data.

[0127] First, the high-quality training brain image data and the constructed low-quality brain image data are matched one by one as the input of the model; secondly, the image quality improvement algorithm is designed, using the main idea of ​​the diffusion model and the U-Net network as the main network model of the algorithm. The diffusion model is mainly divided into two parts: the forward diffusion process and the reverse diffusion process. The forward diffusion process adds noise to the input image and gradually increases the noise level until the image becomes a full Gaussian noise. The main goal of the reverse diffusion process is to restore the structure of the original data from the perturbed data distribution. This algorithm uses low-quality and high-quality as input data at the same time, and fuses high-quality features and low-quality features through the SE attention module. The model is built and trained using the Pytorch framework. The output data is the noise predicted by the model, and Charbonnier loss is used as the training loss; finally, the low-quality brain image data determined in the actual quality assessment is input into the trained model to achieve image quality improvement of low-quality data.

[0128] The embodiment of the present application proposes a device for improving the quality of magnetic resonance brain images, which processes low-quality brain image data with the help of a diffusion model to obtain target high-quality brain image data with more details. Since the high-frequency information of the image contains features such as details and texture, the use of the diffusion model can effectively restore the high-frequency details of the image, making the image corresponding to the reconstructed target high-quality brain image data clearer and more realistic.

[0129] Each module in the above-mentioned device for improving the quality of magnetic resonance brain images can be implemented in whole or in part by software, hardware, or a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each of the above modules.

[0130] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store relevant data of the brain image data set. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for improving the quality of magnetic resonance brain images is implemented.

[0131] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0132] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0133] Step S20, constructing a quality assessment index according to the modality of the brain image data, and constructing a classification model based on the quality assessment index.

[0134] Among them, the construction of the classification model includes: first, according to the different modalities of brain imaging data, each quality assessment indicator is classified to obtain the indicators needed for the image quality assessment of each modality; secondly, the classification model is used to automatically assign weights to these image quality assessment indicators, the Embedding module is used to convert the indicator data into a vector representation, and a convolutional neural network is used to extract features of the brain imaging data; then, the training model is built using the Pytorch framework, the input data is the image quality assessment indicators and the characteristics of the image itself, and the output data is three levels: high quality, general quality and low quality, and the cross entropy loss function is used as the training loss; finally, the actual clinical images and various calculated indicators are input into the trained model to achieve the quality assessment of clinical images.

[0135] Step S40: input the multimodal brain image data set into the classification model for evaluation to obtain low-quality brain image data.

[0136] First, the multimodal brain imaging data set is preprocessed. Multimodal MRI mainly includes structural MRI, functional MRI and diffusion MRI. Data preprocessing operations are performed on them, including brain tissue area segmentation, skull stripping and spatial normalization. The quality assessment index is calculated for the preprocessed images, and these indexes are combined to reflect the clarity, signal-to-noise ratio, completeness, artifacts and other conditions of the multimodal images. An overall score is given to the image quality as a classification label. Combining the quality assessment index and the image itself, a classification model is constructed to divide the images into three levels, and low-quality brain imaging data that does not meet the standards is screened out.

[0137] Step S60: reconstruct the low-quality brain image data with the help of a diffusion model to obtain target high-quality brain image data.

[0138] First, the high-quality training brain image data and the constructed low-quality brain image data are matched one by one as the input of the model; secondly, the image quality improvement algorithm is designed, using the main idea of ​​the diffusion model and the U-Net network as the main network model of the algorithm. The diffusion model is mainly divided into two parts: the forward diffusion process and the reverse diffusion process. The forward diffusion process adds noise to the input image and gradually increases the noise level until the image becomes a full Gaussian noise. The main goal of the reverse diffusion process is to restore the structure of the original data from the perturbed data distribution. This algorithm uses low-quality and high-quality as input data at the same time, and fuses high-quality features and low-quality features through the SE attention module. The model is built and trained using the Pytorch framework. The output data is the noise predicted by the model, and Charbonnier loss is used as the training loss; finally, the low-quality brain image data determined in the actual quality assessment is input into the trained model to achieve image quality improvement of low-quality data.

[0139] The embodiment of the present application proposes a method for improving the quality of magnetic resonance brain images, which uses a diffusion model to process low-quality brain image data to obtain target high-quality brain image data with more details. Since the high-frequency information of the image contains features such as details and texture, the use of the diffusion model can effectively restore the high-frequency details of the image, making the image corresponding to the reconstructed target high-quality brain image data clearer and more realistic.

[0140] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0141] Step S20, constructing a quality assessment index according to the modality of the brain image data, and constructing a classification model based on the quality assessment index.

[0142] Among them, the construction of the classification model includes: first, according to the different modalities of brain imaging data, each quality assessment indicator is classified to obtain the indicators needed for the image quality assessment of each modality; secondly, the classification model is used to automatically assign weights to these image quality assessment indicators, the Embedding module is used to convert the indicator data into a vector representation, and a convolutional neural network is used to extract features of the brain imaging data; then, the training model is built using the Pytorch framework, the input data is the image quality assessment indicators and the characteristics of the image itself, and the output data is three levels: high quality, general quality and low quality, and the cross entropy loss function is used as the training loss; finally, the actual clinical images and various calculated indicators are input into the trained model to achieve the quality assessment of clinical images.

[0143] Step S40: input the multimodal brain image data set into the classification model for evaluation to obtain low-quality brain image data.

[0144] First, the multimodal brain imaging data set is preprocessed. Multimodal MRI mainly includes structural MRI, functional MRI and diffusion MRI. Data preprocessing operations are performed on them, including brain tissue area segmentation, skull stripping and spatial normalization. The quality assessment index is calculated for the preprocessed images, and these indexes are combined to reflect the clarity, signal-to-noise ratio, completeness, artifacts and other conditions of the multimodal images. An overall score is given to the image quality as a classification label. Combining the quality assessment index and the image itself, a classification model is constructed to divide the images into three levels, and low-quality brain imaging data that does not meet the standards is screened out.

[0145] Step S60: reconstruct the low-quality brain image data with the help of a diffusion model to obtain target high-quality brain image data.

[0146] First, the high-quality training brain image data and the constructed low-quality brain image data are matched one by one as the input of the model; secondly, the image quality improvement algorithm is designed, using the main idea of ​​the diffusion model and the U-Net network as the main network model of the algorithm. The diffusion model is mainly divided into two parts: the forward diffusion process and the reverse diffusion process. The forward diffusion process adds noise to the input image and gradually increases the noise level until the image becomes a full Gaussian noise. The main goal of the reverse diffusion process is to restore the structure of the original data from the perturbed data distribution. This algorithm uses low-quality and high-quality as input data at the same time, and fuses high-quality features and low-quality features through the SE attention module. The model is built and trained using the Pytorch framework. The output data is the noise predicted by the model, and Charbonnier loss is used as the training loss; finally, the low-quality brain image data determined in the actual quality assessment is input into the trained model to achieve image quality improvement of low-quality data.

[0147] The embodiment of the present application proposes a method for improving the quality of magnetic resonance brain images, which uses a diffusion model to process low-quality brain image data to obtain target high-quality brain image data with more details. Since the high-frequency information of the image contains features such as details and texture, the use of the diffusion model can effectively restore the high-frequency details of the image, making the image corresponding to the reconstructed target high-quality brain image data clearer and more realistic.

[0148] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0149] Step S20, constructing a quality assessment index according to the modality of the brain image data, and constructing a classification model based on the quality assessment index.

[0150] Among them, the construction of the classification model includes: first, according to the different modalities of brain imaging data, each quality assessment indicator is classified to obtain the indicators needed for the image quality assessment of each modality; secondly, the classification model is used to automatically assign weights to these image quality assessment indicators, the Embedding module is used to convert the indicator data into a vector representation, and a convolutional neural network is used to extract features of the brain imaging data; then, the training model is built using the Pytorch framework, the input data is the image quality assessment indicators and the characteristics of the image itself, and the output data is three levels: high quality, general quality and low quality, and the cross entropy loss function is used as the training loss; finally, the actual clinical images and various calculated indicators are input into the trained model to achieve the quality assessment of clinical images.

[0151] Step S40: input the multimodal brain image data set into the classification model for evaluation to obtain low-quality brain image data.

[0152] First, the multimodal brain imaging data set is preprocessed. Multimodal MRI mainly includes structural MRI, functional MRI and diffusion MRI. Data preprocessing operations are performed on them, including brain tissue area segmentation, skull stripping and spatial normalization. The quality assessment index is calculated for the preprocessed images, and these indexes are combined to reflect the clarity, signal-to-noise ratio, completeness, artifacts and other conditions of the multimodal images. An overall score is given to the image quality as a classification label. Combining the quality assessment index and the image itself, a classification model is constructed to divide the images into three levels, and low-quality brain imaging data that does not meet the standards is screened out.

[0153] Step S60: reconstruct the low-quality brain image data with the help of a diffusion model to obtain target high-quality brain image data.

[0154] First, the high-quality training brain image data and the constructed low-quality brain image data are matched one by one as the input of the model; secondly, the image quality improvement algorithm is designed, using the main idea of ​​the diffusion model and the U-Net network as the main network model of the algorithm. The diffusion model is mainly divided into two parts: the forward diffusion process and the reverse diffusion process. The forward diffusion process adds noise to the input image and gradually increases the noise level until the image becomes a full Gaussian noise. The main goal of the reverse diffusion process is to restore the structure of the original data from the perturbed data distribution. This algorithm uses low-quality and high-quality as input data at the same time, and fuses high-quality features and low-quality features through the SE attention module. The model is built and trained using the Pytorch framework. The output data is the noise predicted by the model, and Charbonnier loss is used as the training loss; finally, the low-quality brain image data determined in the actual quality assessment is input into the trained model to achieve image quality improvement of low-quality data.

[0155] The embodiment of the present application proposes a method for improving the quality of magnetic resonance brain images, which uses a diffusion model to process low-quality brain image data to obtain target high-quality brain image data with more details. Since the high-frequency information of the image contains features such as details and texture, the use of the diffusion model can effectively restore the high-frequency details of the image, making the image corresponding to the reconstructed target high-quality brain image data clearer and more realistic.

[0156] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.

[0157] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0158] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0159] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for improving the quality of magnetic resonance imaging, characterized in that: The method for improving the quality of magnetic resonance brain imaging comprises: Constructing different quality assessment indicators according to the modality of brain imaging data, and training a classification model based on the quality assessment indicators; Inputting the multimodal brain imaging dataset into the classification model for evaluation, automatically screening out low-quality brain imaging data, and inputting it into the diffusion model for quality improvement; Low-quality training brain image data is generated by simulating bias fields, resolution, and motion artifacts to train the classification model, wherein the steps of generating the low-quality training brain image data include: simulating a bias field with an uneven magnetic field distribution; blurring and reducing the resolution of high-quality original brain image public data; and performing a rigid transformation on time series images corresponding to the processed high-quality original brain image public data to obtain low-quality training brain image data that simulates motion artifacts of the subject. The low-quality brain image data is reconstructed with the help of a diffusion model to obtain target high-quality brain image data, wherein the diffusion model uses Charbonnier loss as a training loss function during training. The calculation formula is as follows: in, To predict the noise, is the real noise, is a known constant. The predicted noise is obtained by corresponding high-quality training brain image data to constructed low-quality brain image data one by one as inputs of the diffusion model, extracting features from each of them, fusing high-quality features and low-quality features through the SE attention module, and inputting them into the decoder. The decoder outputs the predicted noise.

2. The method for improving the quality of magnetic resonance brain imaging according to claim 1, characterized in that: The step of constructing a quality assessment index according to the brain imaging data modality and constructing a classification model based on the quality assessment index includes: According to the different brain imaging data modalities, various quality assessment indicators are classified to obtain the indicators needed for image quality assessment of each modality; Using a classification model to assign weights to the image quality assessment indicators, using an Embedding module to convert the indicator data into a vector representation, and using a convolutional neural network to extract features from the brain image data; The training model was built using the Pytorch framework. The input data was the image quality assessment index and the characteristics of the image itself. The output data was set to three levels: high quality, general quality, and low quality. The cross-entropy loss function was used as the training loss function.

3. The method for improving the quality of magnetic resonance brain imaging according to claim 1, characterized in that: The step of inputting the multimodal brain image dataset into the classification model for evaluation to obtain low-quality brain image data comprises: Acquiring a multimodal brain imaging dataset, and preprocessing the brain imaging dataset to obtain processed images; Importing the processed image into the classification model to determine the level corresponding to the brain image dataset; Low-quality brain imaging data are screened out based on the grades.

4. The method for improving the quality of magnetic resonance brain imaging according to claim 3, characterized in that: The pretreatment includes: Brain tissue region segmentation, skull stripping and spatial normalization operations.

5. The method for improving the quality of magnetic resonance brain imaging according to claim 1, characterized in that: The reconstructing the low-quality brain image data by using a diffusion model to obtain target high-quality brain image data includes: Based on the image quality improvement algorithm, a diffusion model is constructed using the U-Net network; High-quality training brain image data corresponding to the low-quality brain image data is obtained, the low-quality brain image data and the high-quality training brain image data are input into the diffusion model, and the low-quality brain image data is restored to the target high-quality brain image data through forward diffusion and reverse diffusion.

6. A device for improving the quality of magnetic resonance imaging, characterized in that: The device for improving the quality of magnetic resonance brain imaging comprises: A model building module, configured to construct different quality assessment indicators according to the modality of brain imaging data and train a classification model based on the quality assessment indicators; An image grading module is used to input the multimodal brain image data set into the classification model for evaluation, automatically filter out low-quality brain image data, and input it into the diffusion model for quality improvement; Low-quality training brain image data is generated by simulating bias fields, resolution, and motion artifacts to train the classification model, wherein the steps of generating the low-quality training brain image data include: simulating a bias field with an uneven magnetic field distribution; blurring and reducing the resolution of high-quality original brain image public data; and performing a rigid transformation on time series images corresponding to the processed high-quality original brain image public data to obtain low-quality training brain image data that simulates motion artifacts of the subject. An image reconstruction module is used to reconstruct the low-quality brain image data with the help of a diffusion model to obtain target high-quality brain image data, wherein the diffusion model uses Charbonnier loss as a training loss function during training. The calculation formula is as follows: in, To predict the noise, is the real noise, is a known constant. The predicted noise is obtained by corresponding high-quality training brain image data to constructed low-quality brain image data one by one as inputs of the diffusion model, extracting features from each of them, fusing high-quality features and low-quality features through the SE attention module, and inputting them into the decoder. The decoder outputs the predicted noise.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 5 are implemented.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.

9. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.