An automatic segmentation method for cerebral microbleeds in brain MRI images

Through the combination of fully convolutional neural network and U-Net segmentation network, the problem of distinguishing cerebral microbleeds and interference objects in low-resolution MRI images is solved, and efficient and accurate cerebral microbleed detection is achieved, which is suitable for resource-limited applications. medical environment.

CN118015012BActive Publication Date: 2024-10-18NINGBO UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410054479.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-15
Publication Date
2024-10-18
Estimated Expiration
2044-01-15

AI Technical Summary

Technical Problem

Existing technology is difficult to effectively distinguish cerebral microbleeds from other similar interferences, such as blood vessels, calcification deposits, and cavernous hemangiomas, and the sensitivity of detecting cerebral microbleeds in low-resolution MRI images is low and the false positive rate is high.

Method used

Using a method that combines a fully convolutional neural network and a U-Net segmentation network, a hybrid training data set is constructed by acquiring high-resolution and low-resolution MRI images for preprocessing and data enhancement, and knowledge distillation technology is used for multi-level training. Improve the network's processing capabilities for low-resolution images.

Benefits of technology

It achieves efficient and accurate segmentation of cerebral microbleeds in low-resolution three-dimensional brain MRI images, reduces the false positive rate, improves detection sensitivity, and is suitable for resource-constrained medical environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118015012B_ABST
    Figure CN118015012B_ABST
Patent Text Reader

Abstract

The present invention discloses an automatic segmentation method for brain microbleeds in brain MRI images. The method obtains a three-dimensional brain MRI image and a corresponding label image, performs preprocessing and data enhancement on the three-dimensional brain MRI image and the image after data enhancement by a sliding window method, constrains the proportion of positive and negative samples, and generates training samples; constructs a fully convolutional neural network for preliminary screening of brain microbleeds; constructs a first U-Net segmentation network and a second U-Net segmentation network, which are respectively used to further distinguish brain microbleeds in high-resolution and low-resolution MRI; for a test three-dimensional brain MRI image, extracts samples and inputs them into the above-mentioned trained model to obtain a segmentation result; the method has the advantages of being able to effectively distinguish real brain microbleeds from other similar interferents, such as blood vessels, calcification deposits and cavernous hemangiomas, having a good segmentation effect, and being able to improve the sensitivity of brain microbleed detection in low-resolution three-dimensional brain MRI images, while being able to reduce the false positive rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a medical image processing technology, and in particular to an automatic segmentation method for brain microbleeds in brain MRI (Magnetic Resonance Imaging) images. Background Art

[0002] Cerebral microbleeds (CMBs) are a pathological phenomenon caused by cerebral microvascular disease and are characterized by hemosiderin deposition.

[0003] In imaging, the detection of cerebral microbleeds usually relies on magnetic resonance imaging (MRI) technology, which appears as low-density lesions of 2 to 10 mm in susceptibility weighted imaging (SWI) or T2* weighted gradient echo imaging (T2* weighted gradient echo imaging).

[0004] Studies have shown that a high incidence of cerebral microbleeds is closely associated with an increased risk of cognitive impairment, diabetes, hypertension, stroke, and intracranial hemorrhage, and is considered to be one of the important diagnostic biomarkers for many cerebral amyloid angiopathy and cerebral small vessel disease.

[0005] Segmentation of cerebral microbleeds is a highly specialized and challenging task, the difficulty of which stems from multiple factors.

[0006] First, cerebral microbleed lesions are very small compared to the entire image and are relatively sparsely distributed, so there are certain difficulties in locating and accurately segmenting the lesions.

[0007] Secondly, there are a series of mimics similar to cerebral microbleeds in the images, such as blood vessels, calcified deposits, and cavernous hemangiomas, whose appearance, grayscale values, and edge features may be difficult to distinguish from real cerebral microbleeds, thus increasing the complexity of detection.

[0008] Currently, the detection of cerebral microbleeds mainly relies on experienced radiologists to evaluate lesions through MRI. However, this manual detection method is limited by the complexity of brain tissue and possible artifacts of MRI, and is susceptible to subjectivity, inconsistency and time-consuming.

[0009] In order to reduce the workload of radiologists and conduct timely clinical intervention, the development of Computer-Aided Detection (CAD) systems has become necessary.

[0010] MRI technology has developed into a powerful tool for detecting cerebral microbleeds, which can provide more detailed information for the model. However, high-resolution MRI data is expensive and relatively scarce. At the same time, in many developing countries, low-resolution MRI is still the main source of data. Therefore, in the current study, expanding the automated method to adapt to low-resolution MRI is a very important and challenging task. Summary of the invention

[0011] The technical problem to be solved by the present invention is to provide an automatic segmentation method for cerebral microbleeds in brain MRI images, which can effectively distinguish real cerebral microbleeds from other similar interferents, such as blood vessels, calcification deposits and cavernous hemangiomas, has good segmentation effect, and can improve the sensitivity of cerebral microbleed detection in low-resolution three-dimensional brain MRI images, while reducing the false positive rate.

[0012] The technical solution adopted by the present invention to solve the above technical problem is: a method for automatic segmentation of brain microbleeds in brain MRI images, characterized by comprising the following steps:

[0013] Step 1: Acquire several high-resolution three-dimensional brain MRI images and corresponding low-resolution three-dimensional brain MRI images, as well as a high-resolution label image corresponding to each high-resolution three-dimensional brain MRI image and a low-resolution label image corresponding to each low-resolution three-dimensional brain MRI image;

[0014] Step 2: preprocessing and data enhancement processing are performed on all high-resolution three-dimensional brain MRI images and all low-resolution three-dimensional brain MRI images respectively; wherein the preprocessing includes intensity value standardization, spatial resolution unification, and non-brain tissue removal, and the data enhancement processing includes random flipping and noise addition. After the preprocessing, multiple different data enhancement processings are performed so that each high-resolution three-dimensional brain MRI image and each low-resolution three-dimensional brain MRI image corresponds to multiple noisy three-dimensional brain MRI images;

[0015] Step 3: extract several high-resolution samples from each high-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, and distinguish them as high-resolution positive samples or high-resolution negative samples according to the high-resolution label blocks at the corresponding positions in the high-resolution label images; similarly, extract several low-resolution samples from each low-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, and distinguish them as low-resolution positive samples or low-resolution negative samples according to the low-resolution label blocks at the corresponding positions in the low-resolution label images;

[0016] Step 4: for all high-resolution samples intercepted from each high-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, high-resolution negative samples are selected based on the number of high-resolution positive samples and the set first positive-negative sample ratio; similarly, for all low-resolution samples intercepted from each low-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, low-resolution negative samples are selected based on the number of low-resolution positive samples and the set first positive-negative sample ratio; then, the high-resolution positive samples and the selected high-resolution negative samples intercepted from all high-resolution three-dimensional brain MRI images and their corresponding noisy three-dimensional brain MRI images, as well as the low-resolution positive samples and the selected low-resolution negative samples intercepted from all low-resolution three-dimensional brain MRI images and their corresponding noisy three-dimensional brain MRI images, form a mixed training data set;

[0017] For all high-resolution samples intercepted from each high-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, high-resolution negative samples are selected based on the number of high-resolution positive samples and a set second positive-negative sample ratio; and then the high-resolution positive samples intercepted from all high-resolution three-dimensional brain MRI images and their corresponding noisy three-dimensional brain MRI images and the selected high-resolution negative samples constitute a high-resolution training data set;

[0018] Each high-resolution sample in the high-resolution training data set is downsampled at a downsampling ratio of ×2, and then the downsampled samples are re-upsampled to the original size using a cubic linear interpolation algorithm, and then the upsampled samples constitute a first low-resolution training data set; each high-resolution sample in the high-resolution training data set is downsampled at a downsampling ratio of ×4, and then the downsampled samples are re-upsampled to the original size using a cubic linear interpolation algorithm, and then the upsampled samples constitute a second low-resolution training data set; each high-resolution sample in the high-resolution training data set is downsampled at a downsampling ratio of ×8, and then the downsampled samples are re-upsampled to the original size using a cubic linear interpolation algorithm, and then the upsampled samples constitute a third low-resolution training data set;

[0019] For all low-resolution samples intercepted from each low-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, low-resolution negative samples are selected according to a set second positive-negative sample ratio based on the number of low-resolution positive samples; then, the low-resolution positive samples intercepted from all low-resolution three-dimensional brain MRI images and their corresponding noisy three-dimensional brain MRI images and the selected low-resolution negative samples constitute a real low-resolution training data set;

[0020] Step 5: Construct a fully convolutional neural network; then set the optimizer to Adam and the learning rate to 0.0003; then use the mixed training data set to train the fully convolutional neural network. During the training process, use a batch of samples for training and then update the network parameters. Then use the next batch of samples for training until a round of training is completed and the loss function is calculated. The network weights are updated according to the loss function calculation result. After training for at least 100 rounds, a fully convolutional neural network model is obtained. Among them, a batch of samples is a sample randomly selected from the mixed training data set, which is a high-resolution positive sample or a high-resolution negative sample or a low-resolution positive sample or a low-resolution negative sample.

[0021] Step 6: Build the first U-Net segmentation network; then set the optimizer to Adam and the learning rate to 0.0003; then use the high-resolution training data set to train the first U-Net segmentation network. During the training process, use a batch of samples to update the network parameters after training, and then use the next batch of samples for training until a round of training is completed. Calculate the loss function and update the network weights according to the loss function calculation result; after training for at least 80 rounds, obtain the first U-Net segmentation network model; wherein, a batch of samples are samples randomly selected from the high-resolution training data set, which are high-resolution positive samples or high-resolution negative samples;

[0022] Step 7: Construct a second U-Net segmentation network; then set the optimizer to Adam and the learning rate to 0.0003; then use the first low-resolution training data set to train the second U-Net segmentation network. During the training process, use the knowledge distillation technology to use the first U-Net segmentation network model to assist the training of the second U-Net segmentation network. At the same time, use a batch of samples to update the network parameters after training, and then use the next batch of samples for training until a round of training is completed. Calculate the loss function and update the network weights according to the loss function calculation result; After training for at least 20 rounds, use the second low-resolution training data set to continue training the second U-Net segmentation network. During the training process, use the knowledge distillation technology to use the first U-Net segmentation network model to assist the training of the second U-Net segmentation network. At the same time, use a batch of samples to update the network parameters after training, and then use the next batch of samples for training until a round of training is completed. Calculate the loss function, and update the network weights according to the loss function calculation result; after training for at least 20 rounds, continue to train the second U-Net segmentation network using the third low-resolution training data set. During the training process, use the knowledge distillation technology to use the first U-Net segmentation network model to assist the training of the second U-Net segmentation network, and use a batch of samples to update the network parameters after training, and then use the next batch of samples for training until a round of training is completed. Calculate the loss function and update the network weights according to the loss function calculation result; After training for at least 20 rounds, continue to train the second U-Net segmentation network using the real low-resolution training data set. During the training process, use a batch of samples to update the network parameters after training, and then use the next batch of samples for training until a round of training is completed. Calculate the loss function and update the network weights according to the loss function calculation result; After training for at least 20 rounds, obtain the second U-Net segmentation network model;

[0023] Step 8: For any test 3D brain MRI image, perform preprocessing and data enhancement processing on the test 3D brain MRI image in the manner of step 2; then extract several samples from the test 3D brain MRI image and its corresponding multiple noisy 3D brain MRI images in the manner of step 3; then all samples constitute a test data set; then input the test data set into the fully convolutional neural network model, and the fully convolutional neural network model outputs the positive and negative sample prediction probabilities of each sample in the test data set; then extract all samples whose positive and negative sample prediction probabilities indicate positive samples from the test data set, and all the extracted samples constitute a rough prediction data set set; then according to the resolution of the tested three-dimensional brain MRI image, select the first U-Net segmentation network model or the second U-Net segmentation network model to segment the positive samples and the negative samples; if the tested three-dimensional brain MRI image is a high-resolution image, the coarse prediction data set is input into the first U-Net segmentation network model, and the first U-Net segmentation network model outputs the segmentation result of each sample in the coarse prediction data set; if the tested three-dimensional brain MRI image is a low-resolution image, the coarse prediction data set is input into the second U-Net segmentation network model, and the second U-Net segmentation network model outputs the segmentation result of each sample in the coarse prediction data set.

[0024] In the step 2, all high-resolution three-dimensional brain MRI images and all low-resolution three-dimensional brain MRI images are used as images to be processed, and the specific process of performing preprocessing and data enhancement processing on the images to be processed is as follows:

[0025] Step 2.1: Intensity value standardization: The intensity value of each voxel point in each image to be processed is standardized to obtain a corresponding standardized three-dimensional brain MRI image, wherein the mean value of the intensity value of all voxel points in a standardized three-dimensional brain MRI image is 0 and the variance is 1;

[0026] Step 2.2: Unify spatial resolution: If the image to be processed is a high-resolution three-dimensional brain MRI image, the corresponding standardized three-dimensional brain MRI image is not processed; if the image to be processed is a low-resolution three-dimensional brain MRI image, a cubic linear interpolation algorithm is used to resample the standardized three-dimensional brain MRI image corresponding to the image to be processed, so that the spatial resolution of the obtained resampled three-dimensional brain MRI image is consistent with the resolution of the high-resolution three-dimensional brain MRI image corresponding to the image to be processed;

[0027] Step 2.3: Removal of non-brain tissue: If the image to be processed is a high-resolution three-dimensional brain MRI image, a grayscale threshold processing algorithm is used to remove the background of its corresponding standardized three-dimensional brain MRI image; if the image to be processed is a low-resolution three-dimensional brain MRI image, a grayscale threshold processing algorithm is used to remove the background of its corresponding resampled three-dimensional brain MRI image. After the background is removed, the corresponding clean three-dimensional brain MRI image is obtained;

[0028] Step 2.4: Random flipping: using a pseudo-random number generator to determine whether each clean three-dimensional brain MRI image should be flipped and the type of flipping, if it should be flipped, then performing a flip operation on the clean three-dimensional brain MRI image according to the flipping type to obtain a corresponding flipped three-dimensional brain MRI image; wherein the flipping type is horizontal flipping or vertical flipping;

[0029] Step 2.5: adding noise: for the clean three-dimensional brain MRI image that has not been flipped, adding random Gaussian noise to the clean three-dimensional brain MRI image; for the flipped three-dimensional brain MRI image obtained by flipping, adding random Gaussian noise to the flipped three-dimensional brain MRI image to obtain the corresponding noisy three-dimensional brain MRI image;

[0030] Step 2.6: Repeat steps 2.4 and 2.5 so that the image to be processed corresponds to a plurality of different noisy three-dimensional brain MRI images.

[0031] In step 3, for a high-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, these images are used as images to be processed, and the specific process of obtaining high-resolution samples and distinguishing high-resolution positive samples from high-resolution negative samples is as follows:

[0032] Step 3.1: Use a sliding window to slide in the three dimensions of the image to be processed according to a set step size, and intercept a three-dimensional image block at each sliding window position as a high-resolution sample; wherein the sizes of the three dimensions of the sliding window are all multiples of 2 between 16 and 64, and the step size is set to half of the corresponding dimension size of the sliding window;

[0033] Step 3.2: For the high-resolution label image corresponding to the high-resolution three-dimensional brain MRI image, follow the process of step 3.1 and extract the same number of high-resolution label blocks as the number of high-resolution samples in the same way;

[0034] Step 3.3: According to the high-resolution label block in the high-resolution label image, the high-resolution sample at the corresponding position in the image to be processed is determined as a high-resolution positive sample or a high-resolution negative sample. If there is a brain microbleed on a high-resolution label block, the high-resolution sample corresponding to the position of the high-resolution label block is determined as a high-resolution positive sample; if there is no brain microbleed on a high-resolution label block, the high-resolution sample corresponding to the position of the high-resolution label block is determined as a high-resolution negative sample;

[0035] For a low-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, these images are used as images to be processed, and the process from step 3.1 to step 3.3 is followed in the same way to obtain low-resolution samples and distinguish low-resolution positive samples from low-resolution negative samples.

[0036] In step 4, the first positive-negative sample ratio is set to 1:2, that is, the ratio of the number of positive samples to the number of negative samples is 1:2; the second positive-negative sample ratio is set to 1:1, that is, the ratio of the number of positive samples to the number of negative samples is 1:1.

[0037] In the step 5, the fully convolutional neural network includes 8 convolution blocks and 1 maximum pooling layer, the input end of the first convolution block is used as the input end of the fully convolutional neural network, the input end of the second convolution block receives the feature map output by the output end of the first convolution block, the input end of the third convolution block receives the feature map output by the output end of the second convolution block, the input end of the fourth convolution block receives the feature map output by the output end of the third convolution block, and the input end of the maximum pooling layer receives the feature map output by the input end of the fourth convolution block. The input end of the 5th convolution block receives the feature map output by the output end of the maximum pooling layer, the input end of the 6th convolution block receives the feature map output by the output end of the 5th convolution block, the input end of the 7th convolution block receives the feature map output by the output end of the 6th convolution block, the input end of the 8th convolution block receives the feature map output by the output end of the 7th convolution block, and the output end of the 8th convolution block serves as the output end of the full convolutional neural network; wherein, each convolution block is composed of a convolutional layer, a batch normalization layer, and a Leakly Relu activation function connected in sequence, the number of input channels of the convolutional layer in the 1st convolutional block is 16, and the number of output channels is 16, the number of input channels of the convolutional layer in the 2nd convolutional block is 16, and the number of output channels is 32, the number of input channels of the convolutional layer in the 3rd convolutional block and the 4th convolutional block is 32, and the number of output channels is 32, the number of input channels of the maximum pooling layer is 32, and the number of output channels is 64, the number of input channels of the convolutional layer in the 5th convolutional block is 64, and the number of output channels is The number of channels is 64, the number of input channels of the convolution layer in the 6th convolution block is 64, and the number of output channels is 128, the number of input channels of the convolution layer in the 7th convolution block is 128, and the number of output channels is 128, the number of input channels of the convolution layer in the 8th convolution block is 128, and the number of output channels is 1, the convolution kernel size of the convolution layer in the 1st to the 7th convolution blocks is 3×3×3, and the convolution kernel size of the convolution layer in the 8th convolution block is 2×2×2.

[0038] In the step 5, the batch size is 64, and the loss function adopts the focal loss function.

[0039] The structure of the first U-Net segmentation network is the same as that of the second U-Net segmentation network, which includes 14 convolution blocks, 3 maximum pooling layers and 3 deconvolution layers. The input end of the first convolution block serves as the input end of the U-Net segmentation network, the input end of the second convolution block receives the feature map output by the output end of the first convolution block, the input end of the first maximum pooling layer receives the feature map output by the input end of the second convolution block, the input end of the third convolution block receives the feature map output by the output end of the first maximum pooling layer, and the input end of the fourth convolution block receives the feature map output by the output end of the third convolution block. The input end of the 1st convolution block receives the feature map output by the output end of the 4th convolution block, the input end of the 2nd maximum pooling layer receives the feature map output by the output end of the 4th convolution block, the input end of the 5th convolution block receives the feature map output by the output end of the 2nd maximum pooling layer, the input end of the 6th convolution block receives the feature map output by the output end of the 5th convolution block, the input end of the 3rd maximum pooling layer receives the feature map output by the input end of the 6th convolution block, the input end of the 7th convolution block receives the feature map output by the output end of the 3rd maximum pooling layer, the input end of the 8th convolution block receives the feature map output by the output end of the 7th convolution block, and the 1st The input end of the deconvolution layer receives the feature map output by the output end of the 8th convolution block, the input end of the 9th convolution block receives the feature map output by the output end of the 6th convolution block and the feature map output by the output end of the 1st deconvolution layer after channel splicing, the input end of the 10th convolution block receives the feature map output by the output end of the 9th convolution block, the input end of the 2nd deconvolution layer receives the feature map output by the output end of the 10th convolution block, and the input end of the 11th convolution block receives the feature map output by the output end of the 4th convolution block and the feature map output by the output end of the 2nd deconvolution layer. The feature map obtained after channel splicing, the input end of the 12th convolution block receives the feature map output by the output end of the 11th convolution block, the input end of the 3rd deconvolution layer receives the feature map output by the output end of the 12th convolution block, the input end of the 13th convolution block receives the feature map output by the output end of the 2nd convolution block and the feature map output by the output end of the 3rd deconvolution layer, the input end of the 14th convolution block receives the feature map output by the output end of the 13th convolution block, and the output end of the 14th convolution block serves as the output end of the U-Net segmentation network;Among them, the 1st to 8th convolution blocks and 3 maximum pooling layers constitute the encoder, the 9th to 14th convolution blocks and 3 deconvolution layers constitute the decoder, each convolution block is composed of a convolution layer, a batch normalization layer, and a Leakly Relu activation function connected in sequence, the number of input channels of the convolution layer in the 1st convolution block, the 2nd convolution block, the 13th convolution block, and the 14th convolution block is 16, and the number of output channels is 16, the number of input channels of the 1st maximum pooling layer is 16, and the number of output channels is 32, the number of input channels of the convolution layer in the 3rd convolution block, the 4th convolution block, the 11th convolution block, and the 12th convolution block is 32, and the number of output channels is 32, the number of input channels of the 2nd maximum pooling layer is 32, and the number of output channels is 64, the 5th convolution block, the 6th convolution block, the 9th convolution block and The number of input channels of the convolutional layer in each of the 10th convolutional blocks is 64, and the number of output channels is 64. The number of input channels of the third maximum pooling layer is 64, and the number of output channels is 128. The number of input channels of the convolutional layer in the 7th and 8th convolutional blocks is 128, and the number of output channels is 128. The number of input channels of the first deconvolutional layer is 128, and the number of output channels is 64. The number of input channels of the second deconvolutional layer is 64, and the number of output channels is 32. The number of input channels of the third deconvolutional layer is 32, and the number of output channels is 16. The convolution kernel size of all convolutional layers is 3×3×3. ;

[0040] In the step 6 and the step 7, the batch size is 32, and the loss function is the weighted sum of the focal loss function FocalLoss and the dice loss function Dice Loss, and the weights of both are 0.5.

[0041] Compared with the prior art, the advantages of the present invention are:

[0042] 1) The method of the present invention uses a fully convolutional neural network model to quickly screen out potential regions of interest, namely, cerebral microbleeding areas, and then uses the first U-Net segmentation network model or the second U-Net segmentation network model to perform in-depth and detailed analysis of these potential cerebral microbleeding areas, thereby ensuring both the efficiency of the segmentation task and the accuracy of the results.

[0043] 2) The method of the present invention reasonably constrains the number of positive and negative samples, that is, constrains the number of positive and negative samples by the first positive-negative sample ratio and the second positive-negative sample ratio, thereby effectively avoiding the problem of network performance degradation or collapse caused by sample imbalance. This balancing mechanism ensures the stability of the network training process and improves the robustness of the network model for complex medical image data.

[0044] 3) The method of the present invention introduces a second U-Net segmentation network and uses multiple low-resolution samples to train the second U-Net segmentation network, which can significantly improve the processing accuracy of low-resolution three-dimensional brain MRI images in the task of cerebral microbleeding segmentation. By gradually transitioning from high-resolution samples to low-resolution samples, the second U-Net segmentation network can better capture and learn the characteristics of tiny lesions, thereby obtaining more accurate segmentation results in complex clinical application scenarios.

[0045] 4) The method of the present invention provides a new technical approach for automated medical image analysis, which is particularly suitable for resource-constrained environments, such as developing countries where high-resolution MRI equipment is not common. The application of this technology can enable medical institutions in these areas to use existing low-resolution MRI equipment to conduct more accurate disease diagnosis and research, greatly improving the accessibility and quality of medical services. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] Figure 1 It is a general implementation block diagram of the method of the present invention;

[0047] Figure 2 Schematic diagram of the composition structure of the fully convolutional neural network in the method of the present invention;

[0048] Figure 3 Schematic diagram of the composition structure of the U-Net segmentation network in the method of the present invention. DETAILED DESCRIPTION

[0049] The present invention is further described in detail below with reference to the accompanying drawings.

[0050] The present invention proposes an automatic segmentation method for brain microbleeds in brain MRI images, and its overall implementation block diagram is as follows: Figure 1 As shown, it includes the following steps:

[0051] Step 1: Obtain several high-resolution three-dimensional brain MRI images and corresponding low-resolution three-dimensional brain MRI images, as well as a high-resolution label image corresponding to each high-resolution three-dimensional brain MRI image and a low-resolution label image corresponding to each low-resolution three-dimensional brain MRI image. In this embodiment, the size of the high-resolution three-dimensional brain MRI image and the high-resolution label image is set to 512×512×192, and the size of the low-resolution three-dimensional brain MRI image and the low-resolution label image is set to 512×512×36; all high-resolution and low-resolution three-dimensional brain MRI image pairs come from different participants.

[0052] Step 2: All high-resolution three-dimensional brain MRI images and all low-resolution three-dimensional brain MRI images are preprocessed and data enhanced respectively; the preprocessing includes intensity value standardization, spatial resolution unification, and non-brain tissue removal, and the data enhancement processing includes random flipping and noise addition. After the preprocessing, multiple different data enhancement processings are performed so that each high-resolution three-dimensional brain MRI image and each low-resolution three-dimensional brain MRI image corresponds to multiple noisy three-dimensional brain MRI images.

[0053] In this embodiment, in step 2, all high-resolution three-dimensional brain MRI images and all low-resolution three-dimensional brain MRI images are used as images to be processed, and the specific process of performing preprocessing and data enhancement processing on the images to be processed is as follows:

[0054] Step 2.1: Intensity value standardization: The intensity value of each voxel point in each image to be processed is standardized to obtain the corresponding standardized three-dimensional brain MRI image, wherein the mean value of the intensity value of all voxel points in a standardized three-dimensional brain MRI image is 0 and the variance is 1. Here, the purpose of standardizing the intensity value of the voxel point is to reduce the difference between all three-dimensional brain MRI images, so as to improve the adaptability of the network to data under different instruments and acquisition conditions.

[0055] The specific processing process of intensity value standardization is as follows: for any image to be processed, the intensity value distribution of the entire brain area is collected to determine the statistical characteristics of the original data; in order to reduce the skew effect caused by extreme intensity values, the original intensity value is truncated by setting a threshold to remove extreme values ​​outside the upper and lower percentiles. This threshold is usually set to the 1st and 99th percentiles and can be adjusted according to actual conditions; then for each voxel point in the image to be processed, Z-score normalization is used, that is, the average intensity value of all voxel points in the entire image is subtracted, and then divided by the standard deviation, so that the distribution of the data has zero mean and unit variance.

[0056] Step 2.2: Unification of spatial resolution: If the image to be processed is a high-resolution three-dimensional brain MRI image, the corresponding standardized three-dimensional brain MRI image will not be processed; if the image to be processed is a low-resolution three-dimensional brain MRI image, a cubic linear interpolation algorithm is used to resample the standardized three-dimensional brain MRI image corresponding to the image to be processed, so that the spatial resolution of the resampled three-dimensional brain MRI image is consistent with the resolution of the high-resolution three-dimensional brain MRI image corresponding to the image to be processed, thereby creating conditions for subsequent processing and analysis.

[0057] The unified spatial resolution adjustment process is as follows: this step is mainly aimed at low-resolution three-dimensional brain MRI images, whose size is 512×512×36. A unified target resolution is set, and the standardized three-dimensional brain MRI images corresponding to all low-resolution three-dimensional brain MRI images will be resampled to match the target resolution. Here, the target resolution is set to 512×512×192, which is the size of the high-resolution three-dimensional brain MRI image. Under the premise of keeping the x-axis and y-axis resolution unchanged, the image is resampled along the z-axis using a cubic linear interpolation algorithm. For each new voxel point position on the z-axis, the cubic linear interpolation algorithm will refer to its four nearest neighboring voxel points, and calculate the intensity value of the new position through a polynomial function based on the intensity values ​​of these neighboring voxel points; the image is reconstructed based on the interpolation result. At this time, the new image will have the same x-axis and y-axis resolution as the original image, while the z-axis resolution is consistent with the preset target resolution.

[0058] Step 2.3: Removal of non-brain tissue: If the image to be processed is a high-resolution three-dimensional brain MRI image, the grayscale threshold processing algorithm is used to remove the background of the corresponding standardized three-dimensional brain MRI image. If the image to be processed is a low-resolution three-dimensional brain MRI image, the grayscale threshold processing algorithm is used to remove the background of the corresponding resampled three-dimensional brain MRI image. After background removal, the corresponding clean three-dimensional brain MRI image is obtained. Three-dimensional brain MRI images usually contain other background information besides brain tissue, which is unnecessary for the identification of cerebral microbleeds. Therefore, these areas need to be removed to reduce the impact of irrelevant factors on network performance.

[0059] When using the grayscale threshold processing algorithm, the image is cropped according to the result, and the part marked as non-brain tissue in the segmented image is removed to ensure that only the area containing brain tissue is retained to obtain the corresponding clean three-dimensional brain MRI image with reduced size.

[0060] Step 2.4: Random flipping: Use a pseudo-random number generator to determine whether each clean three-dimensional brain MRI image should be flipped and the type of flipping. If it should be flipped, then perform a flip operation on the clean three-dimensional brain MRI image according to the flipping type to obtain the corresponding flipped three-dimensional brain MRI image; the flipping type is horizontal flipping and vertical flipping. In order to improve the generalization ability of the network, random flipping data enhancement processing is introduced to increase the number of training samples.

[0061] The random flipping process is as follows: for a clean three-dimensional brain MRI image, a pseudo-random number generator is used to determine whether the image should be flipped and the type of flipping (horizontal or vertical). If a horizontal flip is decided, each row of voxel points in the image will be flipped with the central axis as the axis of symmetry; if a vertical flip is decided, each column of voxel points in the image will be flipped with the central axis as the axis of symmetry; the flipped image is generated and output, and this image can be used for subsequent deep learning model training.

[0062] Step 2.5: Noise addition: For the clean three-dimensional brain MRI image that has not been flipped, random Gaussian noise is added to the clean three-dimensional brain MRI image. For the flipped three-dimensional brain MRI image obtained by flipping, random Gaussian noise is added to the flipped three-dimensional brain MRI image to obtain the corresponding noisy three-dimensional brain MRI image.

[0063] Considering that during the acquisition of MRI images, slight movement of the patient may produce artifact noise, some of which are similar to the low signal characteristics of cerebral microbleeds. Therefore, random Gaussian noise is introduced into the three-dimensional brain MRI images to imitate these situations, so that the network can learn to accurately identify cerebral microbleeds in the presence of noise during training.

[0064] The noise adding process is as follows: random Gaussian noise is generated by a pseudo-random number generator, and the generated random Gaussian noise is superimposed on the original image, i.e., the clean three-dimensional brain MRI image or the flipped three-dimensional brain MRI image, to obtain a noisy image, i.e., a noisy three-dimensional brain MRI image, for subsequent deep learning model training.

[0065] Step 2.6: Repeat steps 2.4 and 2.5 so that the image to be processed corresponds to a plurality of different noisy three-dimensional brain MRI images.

[0066] Step 3: Extract several high-resolution samples from each high-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, and distinguish them as high-resolution positive samples or high-resolution negative samples according to the high-resolution label blocks at the corresponding positions in the high-resolution label images; similarly, extract several low-resolution samples from each low-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, and distinguish them as low-resolution positive samples or low-resolution negative samples according to the low-resolution label blocks at the corresponding positions in the low-resolution label images.

[0067] In this embodiment, in step 3, for a high-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, these images are used as images to be processed, and the specific process of obtaining high-resolution samples and distinguishing high-resolution positive samples from high-resolution negative samples is as follows:

[0068] Step 3.1: Use a sliding window to slide on the three dimensions of the image to be processed according to the set step size, and intercept a three-dimensional image block at each sliding window position as a high-resolution sample; wherein the sizes of the three dimensions of the sliding window are all multiples of 2 between 16 and 64, and the sizes of the three dimensions of the sliding window can be the same or different. In this embodiment, the sizes of the three dimensions of the sliding window are all 24, that is, the size of the sliding window is 24×24×24, and the step size is set to half of the corresponding dimension size of the sliding window. In this embodiment, the step size is set to 12.

[0069] Step 3.2: For the high-resolution label image corresponding to the high-resolution three-dimensional brain MRI image, follow the process of step 3.1 and extract the same number of high-resolution label blocks as the number of high-resolution samples in the same way.

[0070] Step 3.3: Based on the high-resolution label block in the high-resolution label image, the high-resolution samples at the corresponding positions in the image to be processed are determined as high-resolution positive samples or high-resolution negative samples. If there are cerebral microbleeds on a high-resolution label block, the high-resolution samples corresponding to the position of the high-resolution label block are determined as high-resolution positive samples; if there are no cerebral microbleeds on a high-resolution label block, the high-resolution samples corresponding to the position of the high-resolution label block are determined as high-resolution negative samples.

[0071] For a low-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, these images are used as images to be processed, and the process from step 3.1 to step 3.3 is followed in the same way to obtain low-resolution samples and distinguish low-resolution positive samples from low-resolution negative samples.

[0072] Step 4: Through the data augmentation technology in step 2, the original number of samples is expanded several times, such as 10 times, and the number of positive samples is artificially increased. All positive samples are used for subsequent network training, and negative samples are randomly selected to constrain the ratio of positive samples to negative samples, such as setting it to 1:2, for subsequent network training.

[0073] For all high-resolution samples intercepted from each high-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, the number of high-resolution positive samples is used as a benchmark (that is, all high-resolution positive samples are selected), and high-resolution negative samples are selected according to a set first positive-negative sample ratio. For example, for a high-resolution three-dimensional brain MRI image, all high-resolution positive samples in the image are selected, and then negative resolution positive samples in the image are randomly selected according to the set first positive-negative sample ratio; similarly, for all low-resolution samples intercepted from each low-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, the number of low-resolution positive samples is used as a benchmark (that is, all low-resolution positive samples are selected), and low-resolution negative samples are selected according to the set first positive-negative sample ratio; then, the high-resolution positive samples intercepted from all high-resolution three-dimensional brain MRI images and their corresponding noisy three-dimensional brain MRI images and the selected high-resolution negative samples, as well as the low-resolution positive samples intercepted from all low-resolution three-dimensional brain MRI images and their corresponding noisy three-dimensional brain MRI images and the selected low-resolution negative samples constitute a mixed training data set.

[0074] For all high-resolution samples captured from each high-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, the number of high-resolution positive samples is used as a benchmark (i.e., all high-resolution positive samples are selected), and high-resolution negative samples are selected according to a set second positive-negative sample ratio; then, the high-resolution positive samples captured from all high-resolution three-dimensional brain MRI images and their corresponding noisy three-dimensional brain MRI images and the selected high-resolution negative samples constitute a high-resolution training data set.

[0075] Each high-resolution sample in the high-resolution training data set is downsampled at a downsampling ratio of ×2, and then the downsampled samples are re-upsampled to the original size using a cubic linear interpolation algorithm, and then the upsampled samples constitute the first low-resolution training data set; each high-resolution sample in the high-resolution training data set is downsampled at a downsampling ratio of ×4, and then the downsampled samples are re-upsampled to the original size using a cubic linear interpolation algorithm, and then the upsampled samples constitute the second low-resolution training data set; each high-resolution sample in the high-resolution training data set is downsampled at a downsampling ratio of ×8, and then the downsampled samples are re-upsampled to the original size using a cubic linear interpolation algorithm, and then the upsampled samples constitute the third low-resolution training data set. Here, the samples in the first low-resolution training data set, the second low-resolution training data set, and the third low-resolution training data set are low-resolution samples, which are achieved by purposefully downsampling and upsampling the high-resolution samples. The downsampling ratio can be set according to actual needs, such as ×2, ×4, ×8, etc., to generate low-resolution samples of multiple resolution levels, which lays a foundation for progressive learning and ensures that the learning process can gradually adapt to low-resolution data.

[0076] For all low-resolution samples captured from each low-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, the number of low-resolution positive samples is used as a benchmark (i.e., all low-resolution positive samples are selected), and low-resolution negative samples are selected according to a set second positive-negative sample ratio; then, the low-resolution positive samples captured from all low-resolution three-dimensional brain MRI images and their corresponding noisy three-dimensional brain MRI images and the selected low-resolution negative samples constitute a true low-resolution training data set.

[0077] In this embodiment, in step 4, the first positive-negative sample ratio is set to 1:2, that is, the ratio of the number of positive samples to the number of negative samples is 1:2; the second positive-negative sample ratio is set to 1:1, that is, the ratio of the number of positive samples to the number of negative samples is 1:1.

[0078] Step 5: Construct a fully convolutional neural network; then set the optimizer to Adam and the learning rate to 0.0003; then use the mixed training data set to train the fully convolutional neural network. During the training process, use a batch of samples to update the network parameters after training, and then use the next batch of samples for training until a round of training is completed and the loss function is calculated. Update the network weights according to the loss function calculation result; after at least 100 rounds of training, obtain the fully convolutional neural network model; wherein a batch of samples are samples randomly selected from the mixed training data set, which are high-resolution positive samples or high-resolution negative samples or low-resolution positive samples or low-resolution negative samples.

[0079] The balanced dataset, i.e., the mixed training dataset, is used to train the fully convolutional neural network. At this stage, the training of the fully convolutional neural network is the training of the screening stage, the purpose of which is that the network can learn to distinguish the characteristics of cerebral microbleeds and screen out candidate areas that may contain cerebral microbleeds from a large number of three-dimensional brain MRI images.

[0080] In this embodiment, in step 5, Figure 2As shown in FIG, the fully convolutional neural network includes 8 convolution blocks and 1 maximum pooling layer. The input end of the first convolution block serves as the input end of the fully convolutional neural network. The input end of the second convolution block receives the feature map output by the output end of the first convolution block. The input end of the third convolution block receives the feature map output by the output end of the second convolution block. The input end of the fourth convolution block receives the feature map output by the output end of the third convolution block. The input end of the maximum pooling layer receives the feature map output by the input end of the fourth convolution block. The fifth The input end of the convolution block receives the feature map output by the output end of the maximum pooling layer, the input end of the 6th convolution block receives the feature map output by the output end of the 5th convolution block, the input end of the 7th convolution block receives the feature map output by the output end of the 6th convolution block, the input end of the 8th convolution block receives the feature map output by the output end of the 7th convolution block, and the output end of the 8th convolution block serves as the output end of the full convolutional neural network; wherein, each convolution block is composed of a convolutional layer, a batch normalization layer, and a Leakly Relu activation function connected in sequence, the number of input channels of the convolution layer in the 1st convolution block is 16, and the number of output channels is 16, the number of input channels of the convolution layer in the 2nd convolution block is 16, and the number of output channels is 32, the number of input channels of the convolution layers in the 3rd convolution block and the 4th convolution block are 32, and the number of output channels is 32, the number of input channels of the maximum pooling layer is 32, and the number of output channels is 64, the number of input channels of the convolution layer in the 5th convolution block is 64, and the number of output channels is The number of channels is 64, the number of input channels of the convolution layer in the 6th convolution block is 64, and the number of output channels is 128, the number of input channels of the convolution layer in the 7th convolution block is 128, and the number of output channels is 128, the number of input channels of the convolution layer in the 8th convolution block is 128, and the number of output channels is 1, the convolution kernel size of the convolution layer in the 1st to the 7th convolution blocks is 3×3×3, and the convolution kernel size of the convolution layer in the 8th convolution block is 2×2×2. Here, the convolution layer is used to extract features from the input samples, and the role of the maximum pooling layer is equivalent to the downsampling operation; in this embodiment, the input end of the first convolution block receives a high-resolution positive sample or a high-resolution negative sample or a low-resolution positive sample or a low-resolution negative sample with a size of 24×24×24, and the size of the feature maps received by the input ends of the second convolution block, the third convolution block, the fourth convolution block, the maximum pooling layer, the fifth convolution block, the sixth convolution block, the seventh convolution block, and the eighth convolution block are 22×22×22, 20×20×20, 18×18×18, 16×16×16, 8×8×8, 6×6×6, 4×4×4, and 2×2×2, respectively, and the size of the feature map output by the output end of the eighth convolution block is 1×1×1.

[0081] In this embodiment, in step 5, the batch size is 64, and the loss function adopts the focal loss function FocalLoss.

[0082] Step 6: Construct the first U-Net segmentation network; then set the optimizer to Adam and the learning rate to 0.0003; then use the high-resolution training data set to train the first U-Net segmentation network. During the training process, use a batch of samples to update the network parameters after training, and then use the next batch of samples for training until a round of training is completed and the loss function is calculated. Update the network weights according to the loss function calculation result; after at least 80 rounds of training, obtain the first U-Net segmentation network model; wherein a batch of samples are samples randomly selected from the high-resolution training data set, which are high-resolution positive samples or high-resolution negative samples.

[0083] Step 7: Construct a second U-Net segmentation network; then set the optimizer to Adam and the learning rate to 0.0003; then use the first low-resolution training data set to train the second U-Net segmentation network. During the training process, use the knowledge distillation technology to use the first U-Net segmentation network model to assist the training of the second U-Net segmentation network. At the same time, use a batch of samples to update the network parameters after training, and then use the next batch of samples for training until a round of training is completed. Calculate the loss function and update the network weights according to the loss function calculation result; After training for at least 20 rounds, use the second low-resolution training data set to continue training the second U-Net segmentation network. During the training process, use the knowledge distillation technology to use the first U-Net segmentation network model to assist the training of the second U-Net segmentation network. At the same time, use a batch of samples to update the network parameters after training, and then use the next batch of samples for training until a round of training is completed. Calculate the loss function, and update the network weights according to the calculation result of the loss function; after at least 20 rounds of training, continue to train the second U-Net segmentation network using the third low-resolution training data set. During the training process, use the knowledge distillation technology to use the first U-Net segmentation network model to assist the training of the second U-Net segmentation network. At the same time, use a batch of samples for training and update the network parameters after the training is completed, and then use the next batch of samples for training until the loss function is calculated after one round of training is completed, and update the network weights according to the calculation result of the loss function; after at least 20 rounds of training, continue to train the second U-Net segmentation network using the real low-resolution training data set. During the training process, use a batch of samples for training and update the network parameters after the training is completed, and then use the next batch of samples for training until the loss function is calculated after one round of training is completed, and update the network weights according to the calculation result of the loss function; after at least 20 rounds of training, obtain the second U-Net segmentation network model.

[0084] The core of this step is to use progressive learning strategy and knowledge distillation technology to improve the performance of the second U-Net segmentation network when processing low-resolution medical images. Specifically, the method of the present invention trains the network through three stages to adapt to samples of different resolutions, thereby improving the accuracy of cerebral microbleed detection.

[0085] The goal of the initial stage is to make the student model initially adapt to low-resolution samples. In this stage, high-resolution samples are fed into the pre-trained teacher model, and at the same time, the corresponding ×2 downsampled low-resolution samples are fed into the student model. The distillation loss obtained by calculating the cosine similarity between the feature maps generated by the two models is used to guide the training of the student model. This process uses the knowledge of the first U-Net segmentation network to assist the learning of the second U-Net segmentation network.

[0086] In the intermediate stage, the training focuses on making the student model further adapt to lower resolution samples. Similarly, high-resolution samples are fed into the teacher model, and ×4 downsampled low-resolution samples are fed into the student model. Using the same distillation technique, the student model's ability to handle low-resolution features is further refined.

[0087] The advanced stage aims to maximize the adaptability of the student model and handle extremely low-resolution samples downsampled by × 8. This stage also uses cosine similarity calculation and distillation loss to complete the final training of the student model.

[0088] In the fine-tuning stage, real low-resolution samples are fed into the student model. The purpose of this stage is to enable the student model to accurately learn and adapt to the characteristics of low-resolution samples in the real world, ensuring that the model can accurately identify cerebral microbleeds in practical applications.

[0089] In this embodiment, the first U-Net segmentation network in step 6 and the second U-Net segmentation network in step 7 have the same structure, such as Figure 3As shown, it includes 14 convolution blocks, 3 maximum pooling layers and 3 deconvolution layers. The input end of the first convolution block serves as the input end of the U-Net segmentation network. The input end of the second convolution block receives the feature map output by the output end of the first convolution block. The input end of the first maximum pooling layer receives the feature map output by the input end of the second convolution block. The input end of the third convolution block receives the feature map output by the output end of the first maximum pooling layer. The input end of the fourth convolution block receives the feature map output by the output end of the third convolution block. The input end of the second maximum pooling layer receives the feature map output by the output end of the third convolution block. The input end of the 4th convolution block receives the feature map output by the output end of the 5th convolution block, the input end of the 5th convolution block receives the feature map output by the output end of the 2nd maximum pooling layer, the input end of the 6th convolution block receives the feature map output by the output end of the 5th convolution block, the input end of the 3rd maximum pooling layer receives the feature map output by the input end of the 6th convolution block, the input end of the 7th convolution block receives the feature map output by the output end of the 3rd maximum pooling layer, the input end of the 8th convolution block receives the feature map output by the output end of the 7th convolution block, and the input end of the 1st deconvolution layer receives the feature map output by the 8th convolution block. The input end of the 9th convolution block receives the feature map output by the output end of the 6th convolution block and the feature map output by the output end of the 1st deconvolution layer after channel splicing, the input end of the 10th convolution block receives the feature map output by the output end of the 9th convolution block, the input end of the 2nd deconvolution layer receives the feature map output by the output end of the 10th convolution block, and the input end of the 11th convolution block receives the feature map output by the output end of the 4th convolution block and the feature map output by the output end of the 2nd deconvolution layer after channel splicing. The input end of the 12th convolution block receives the feature map output by the output end of the 11th convolution block, the input end of the 3rd deconvolution layer receives the feature map output by the output end of the 12th convolution block, the input end of the 13th convolution block receives the feature map output by the output end of the 2nd convolution block and the feature map output by the output end of the 3rd deconvolution layer after channel concatenation, the input end of the 14th convolution block receives the feature map output by the output end of the 13th convolution block, and the output end of the 14th convolution block serves as the output end of the U-Net segmentation network;Among them, the 1st to 8th convolution blocks and 3 maximum pooling layers constitute the encoder, the 9th to 14th convolution blocks and 3 deconvolution layers constitute the decoder, each convolution block is composed of a convolution layer, a batch normalization layer, and a Leakly Relu activation function connected in sequence, the number of input channels of the convolution layer in the 1st convolution block, the 2nd convolution block, the 13th convolution block, and the 14th convolution block is 16, and the number of output channels is 16, the number of input channels of the 1st maximum pooling layer is 16, and the number of output channels is 32, the number of input channels of the convolution layer in the 3rd convolution block, the 4th convolution block, the 11th convolution block, and the 12th convolution block is 32, and the number of output channels is 32, the number of input channels of the 2nd maximum pooling layer is 32, and the number of output channels is 64, the 5th convolution block, the 6th convolution block, the 9th convolution block and The number of input channels of the convolutional layer in each of the 10th convolutional blocks is 64, and the number of output channels is 64. The number of input channels of the 3rd maximum pooling layer is 64, and the number of output channels is 128. The number of input channels of the convolutional layer in each of the 7th and 8th convolutional blocks is 128, and the number of output channels is 128. The number of input channels of the 1st deconvolutional layer is 128, and the number of output channels is 64. The number of input channels of the 2nd deconvolutional layer is 64, and the number of output channels is 32. The number of input channels of the 3rd deconvolutional layer is 32, and the number of output channels is 16. The convolution kernel size of all convolutional layers is 3×3×3. Here, the convolutional layer is used to extract features from the input samples, the role of the maximum pooling layer is equivalent to the downsampling operation, and the role of the deconvolution layer is equivalent to the upsampling operation;In this embodiment, the input end of the first convolution block receives positive samples or negative samples with a size of 24×24×24 (in actual operation, the size of the positive samples or negative samples input to the U-Net segmentation network may not be consistent with the size of the positive samples or negative samples input to the full convolutional neural network, such as the size here is 32×32×32, and samples of different sizes can be achieved by changing the size of the three dimensions of the sliding window), the second convolution block, the first maximum pooling layer, the third convolution block, the fourth convolution block, the second maximum pooling layer, the fifth convolution block, the sixth convolution block, the third maximum pooling layer, the seventh convolution block, the eighth convolution block, the first deconvolution layer, the ninth convolution block, the tenth convolution block, The sizes of the feature maps received at the input ends of the second deconvolution layer, the 11th convolution block, the 12th convolution block, the 3rd deconvolution layer, the 13th convolution block, and the 14th convolution block are 24×24×24, 24×24×24, 12×12×12, 12×12×12, 12×12×12, 6×6×6, 6×6×6, 6×6×6, 3×3×3, 3×3×3, 3×3×3, 6×6×6, 6×6×6, 6×6×6, 12×12×12, 12×12×12, 12×12×12, 24×24×24, and the size of the feature map output at the output end of the 14th convolution block is 24×24×24. ;

[0090] In this embodiment, in step 6 and step 7, the batch size is 32, and the loss function is the weighted sum of the focal loss function and the dice loss function, and the weights of both are 0.5.

[0091] Step 8: For any test 3D brain MRI image, perform preprocessing and data enhancement processing on the test 3D brain MRI image in the manner of step 2; then extract several samples from the test 3D brain MRI image and its corresponding multiple noisy 3D brain MRI images in the manner of step 3; then all samples constitute a test data set; then input the test data set into the fully convolutional neural network model, and the fully convolutional neural network model outputs the positive and negative sample prediction probabilities of each sample in the test data set; then extract all samples whose positive and negative sample prediction probabilities indicate positive samples from the test data set, and all the extracted samples constitute a rough prediction data set set; then according to the resolution of the tested three-dimensional brain MRI image, select the first U-Net segmentation network model or the second U-Net segmentation network model to segment the positive samples and the negative samples; if the tested three-dimensional brain MRI image is a high-resolution image, the coarse prediction data set is input into the first U-Net segmentation network model, and the first U-Net segmentation network model outputs the segmentation result of each sample in the coarse prediction data set; if the tested three-dimensional brain MRI image is a low-resolution image, the coarse prediction data set is input into the second U-Net segmentation network model, and the second U-Net segmentation network model outputs the segmentation result of each sample in the coarse prediction data set.

[0092] In the field of brain microbleed segmentation, a major challenge is to strike a balance between speed and accuracy to meet the rapid response in clinical needs. However, the computational cost of directly feeding tens of thousands of samples of whole brain MRI into a network with many parameters can be very high. To solve this problem, we use a fully convolutional neural network with fewer parameters as a preliminary screening tool to obtain high-sensitivity candidate regions, which are then fed into a U-Net with more parameters for deep differentiation. This approach can ensure the effectiveness of detection while reducing computational costs.

Claims

1. A method for automatic segmentation of brain microbleeds in brain MRI images, characterized in that The steps include: Step 1: Acquire several high-resolution three-dimensional brain MRI images and corresponding low-resolution three-dimensional brain MRI images, as well as a high-resolution label image corresponding to each high-resolution three-dimensional brain MRI image and a low-resolution label image corresponding to each low-resolution three-dimensional brain MRI image; Step 2: preprocessing and data enhancement processing are performed on all high-resolution three-dimensional brain MRI images and all low-resolution three-dimensional brain MRI images respectively; wherein the preprocessing includes intensity value standardization, spatial resolution unification, and non-brain tissue removal, and the data enhancement processing includes random flipping and noise addition. After the preprocessing, multiple different data enhancement processings are performed so that each high-resolution three-dimensional brain MRI image and each low-resolution three-dimensional brain MRI image corresponds to multiple noisy three-dimensional brain MRI images; Step 3: extract several high-resolution samples from each high-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, and distinguish them as high-resolution positive samples or high-resolution negative samples according to the high-resolution label blocks at the corresponding positions in the high-resolution label images; similarly, extract several low-resolution samples from each low-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, and distinguish them as low-resolution positive samples or low-resolution negative samples according to the low-resolution label blocks at the corresponding positions in the low-resolution label images; Step 4: for all high-resolution samples intercepted from each high-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, high-resolution negative samples are selected based on the number of high-resolution positive samples and the set first positive-negative sample ratio; similarly, for all low-resolution samples intercepted from each low-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, low-resolution negative samples are selected based on the number of low-resolution positive samples and the set first positive-negative sample ratio; then, the high-resolution positive samples and the selected high-resolution negative samples intercepted from all high-resolution three-dimensional brain MRI images and their corresponding noisy three-dimensional brain MRI images, as well as the low-resolution positive samples and the selected low-resolution negative samples intercepted from all low-resolution three-dimensional brain MRI images and their corresponding noisy three-dimensional brain MRI images, form a mixed training data set; For all high-resolution samples intercepted from each high-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, high-resolution negative samples are selected based on the number of high-resolution positive samples and a set second positive-negative sample ratio; and then the high-resolution positive samples intercepted from all high-resolution three-dimensional brain MRI images and their corresponding noisy three-dimensional brain MRI images and the selected high-resolution negative samples constitute a high-resolution training data set; Each high-resolution sample in the high-resolution training data set is downsampled at a downsampling ratio of ×2, and then the downsampled samples are re-upsampled to the original size using a cubic linear interpolation algorithm, and then the upsampled samples constitute a first low-resolution training data set; each high-resolution sample in the high-resolution training data set is downsampled at a downsampling ratio of ×4, and then the downsampled samples are re-upsampled to the original size using a cubic linear interpolation algorithm, and then the upsampled samples constitute a second low-resolution training data set; each high-resolution sample in the high-resolution training data set is downsampled at a downsampling ratio of ×8, and then the downsampled samples are re-upsampled to the original size using a cubic linear interpolation algorithm, and then the upsampled samples constitute a third low-resolution training data set; For all low-resolution samples intercepted from each low-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, low-resolution negative samples are selected according to a set second positive-negative sample ratio based on the number of low-resolution positive samples; then, the low-resolution positive samples intercepted from all low-resolution three-dimensional brain MRI images and their corresponding noisy three-dimensional brain MRI images and the selected low-resolution negative samples constitute a real low-resolution training data set; Step 5: Construct a fully convolutional neural network; then set the optimizer to Adam and the learning rate to 0.0003; then use the mixed training data set to train the fully convolutional neural network. During the training process, use a batch of samples for training and then update the network parameters. Then use the next batch of samples for training until a round of training is completed and the loss function is calculated. The network weights are updated according to the loss function calculation result. After training for at least 100 rounds, a fully convolutional neural network model is obtained. Among them, a batch of samples is a sample randomly selected from the mixed training data set, which is a high-resolution positive sample or a high-resolution negative sample or a low-resolution positive sample or a low-resolution negative sample. Step 6: Build the first U-Net segmentation network; then set the optimizer to Adam and the learning rate to 0.0003; then use the high-resolution training data set to train the first U-Net segmentation network. During the training process, use a batch of samples to update the network parameters after training, and then use the next batch of samples for training until a round of training is completed. Calculate the loss function and update the network weights according to the loss function calculation result; after training for at least 80 rounds, obtain the first U-Net segmentation network model; wherein, a batch of samples are samples randomly selected from the high-resolution training data set, which are high-resolution positive samples or high-resolution negative samples; Step 7: Construct a second U-Net segmentation network; then set the optimizer to Adam and the learning rate to 0.0003; then use the first low-resolution training data set to train the second U-Net segmentation network. During the training process, use the knowledge distillation technology to use the first U-Net segmentation network model to assist the training of the second U-Net segmentation network. At the same time, use a batch of samples to update the network parameters after training, and then use the next batch of samples for training until a round of training is completed. Calculate the loss function and update the network weights according to the loss function calculation result; After training for at least 20 rounds, use the second low-resolution training data set to continue training the second U-Net segmentation network. During the training process, use the knowledge distillation technology to use the first U-Net segmentation network model to assist the training of the second U-Net segmentation network. At the same time, use a batch of samples to update the network parameters after training, and then use the next batch of samples for training until a round of training is completed. Calculate the loss function, and update the network weights according to the loss function calculation result; after training for at least 20 rounds, continue to train the second U-Net segmentation network using the third low-resolution training data set. During the training process, use the knowledge distillation technology to use the first U-Net segmentation network model to assist the training of the second U-Net segmentation network, and use a batch of samples to update the network parameters after training, and then use the next batch of samples for training until a round of training is completed. Calculate the loss function and update the network weights according to the loss function calculation result; After training for at least 20 rounds, continue to train the second U-Net segmentation network using the real low-resolution training data set. During the training process, use a batch of samples to update the network parameters after training, and then use the next batch of samples for training until a round of training is completed. Calculate the loss function and update the network weights according to the loss function calculation result; After training for at least 20 rounds, obtain the second U-Net segmentation network model; Step 8: For any test 3D brain MRI image, perform preprocessing and data enhancement processing on the test 3D brain MRI image in the manner of step 2; then extract several samples from the test 3D brain MRI image and its corresponding multiple noisy 3D brain MRI images in the manner of step 3; then all samples constitute a test data set; then input the test data set into the fully convolutional neural network model, and the fully convolutional neural network model outputs the positive and negative sample prediction probabilities of each sample in the test data set; then extract all samples whose positive and negative sample prediction probabilities indicate positive samples from the test data set, and all the extracted samples constitute a rough prediction data set set; then according to the resolution of the tested three-dimensional brain MRI image, select the first U-Net segmentation network model or the second U-Net segmentation network model to segment the positive samples and the negative samples; if the tested three-dimensional brain MRI image is a high-resolution image, the coarse prediction data set is input into the first U-Net segmentation network model, and the first U-Net segmentation network model outputs the segmentation result of each sample in the coarse prediction data set; if the tested three-dimensional brain MRI image is a low-resolution image, the coarse prediction data set is input into the second U-Net segmentation network model, and the second U-Net segmentation network model outputs the segmentation result of each sample in the coarse prediction data set.

2. The method for automatic segmentation of brain microbleeds in brain MRI images according to claim 1, characterized in that In the step 2, all high-resolution three-dimensional brain MRI images and all low-resolution three-dimensional brain MRI images are used as images to be processed, and the specific process of performing preprocessing and data enhancement processing on the images to be processed is as follows: Step 2.1: Intensity value standardization: The intensity value of each voxel point in each image to be processed is standardized to obtain a corresponding standardized three-dimensional brain MRI image, wherein the mean value of the intensity value of all voxel points in a standardized three-dimensional brain MRI image is 0 and the variance is 1; Step 2.2: Unify spatial resolution: If the image to be processed is a high-resolution three-dimensional brain MRI image, the corresponding standardized three-dimensional brain MRI image is not processed; if the image to be processed is a low-resolution three-dimensional brain MRI image, a cubic linear interpolation algorithm is used to resample the standardized three-dimensional brain MRI image corresponding to the image to be processed, so that the spatial resolution of the obtained resampled three-dimensional brain MRI image is consistent with the resolution of the high-resolution three-dimensional brain MRI image corresponding to the image to be processed; Step 2.3: Removal of non-brain tissue: If the image to be processed is a high-resolution three-dimensional brain MRI image, a grayscale threshold processing algorithm is used to remove the background of its corresponding standardized three-dimensional brain MRI image; if the image to be processed is a low-resolution three-dimensional brain MRI image, a grayscale threshold processing algorithm is used to remove the background of its corresponding resampled three-dimensional brain MRI image. After the background is removed, the corresponding clean three-dimensional brain MRI image is obtained; Step 2.4: Random flipping: using a pseudo-random number generator to determine whether each clean three-dimensional brain MRI image should be flipped and the type of flipping, if it should be flipped, then performing a flip operation on the clean three-dimensional brain MRI image according to the flipping type to obtain a corresponding flipped three-dimensional brain MRI image; wherein the flipping type is horizontal flipping or vertical flipping; Step 2.5: adding noise: for the clean three-dimensional brain MRI image that has not been flipped, adding random Gaussian noise to the clean three-dimensional brain MRI image; for the flipped three-dimensional brain MRI image obtained by flipping, adding random Gaussian noise to the flipped three-dimensional brain MRI image to obtain the corresponding noisy three-dimensional brain MRI image; Step 2.6: Repeat steps 2.4 and 2.5 so that the image to be processed corresponds to a plurality of different noisy three-dimensional brain MRI images.

3. The method for automatic segmentation of brain microbleeds in brain MRI images according to claim 1, characterized in that In step 3, for a high-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, these images are used as images to be processed, and the specific process of obtaining high-resolution samples and distinguishing high-resolution positive samples from high-resolution negative samples is as follows: Step 3.1: Use a sliding window to slide in the three dimensions of the image to be processed according to a set step size, and intercept a three-dimensional image block at each sliding window position as a high-resolution sample; wherein the sizes of the three dimensions of the sliding window are all multiples of 2 between 16 and 64, and the step size is set to half of the corresponding dimension size of the sliding window; Step 3.2: For the high-resolution label image corresponding to the high-resolution three-dimensional brain MRI image, follow the process of step 3.1 and extract the same number of high-resolution label blocks as the number of high-resolution samples in the same way; Step 3.3: According to the high-resolution label block in the high-resolution label image, the high-resolution sample at the corresponding position in the image to be processed is determined as a high-resolution positive sample or a high-resolution negative sample. If there is a brain microbleed on a high-resolution label block, the high-resolution sample corresponding to the position of the high-resolution label block is determined as a high-resolution positive sample; if there is no brain microbleed on a high-resolution label block, the high-resolution sample corresponding to the position of the high-resolution label block is determined as a high-resolution negative sample; For a low-resolution three-dimensional brain MRI image and its corresponding multiple noisy three-dimensional brain MRI images, these images are used as images to be processed, and the process from step 3.1 to step 3.3 is followed in the same way to obtain low-resolution samples and distinguish low-resolution positive samples from low-resolution negative samples.

4. The method for automatic segmentation of brain microbleeds in brain MRI images according to claim 1, characterized in that In step 4, the first positive-negative sample ratio is set to 1:2, that is, the ratio of the number of positive samples to the number of negative samples is 1:2; the second positive-negative sample ratio is set to 1:1, that is, the ratio of the number of positive samples to the number of negative samples is 1:

1.

5. The method for automatic segmentation of brain microbleeds in brain MRI images according to claim 1, characterized in that In the step 5, the fully convolutional neural network includes 8 convolution blocks and 1 maximum pooling layer, the input end of the first convolution block is used as the input end of the fully convolutional neural network, the input end of the second convolution block receives the feature map output by the output end of the first convolution block, the input end of the third convolution block receives the feature map output by the output end of the second convolution block, the input end of the fourth convolution block receives the feature map output by the output end of the third convolution block, and the input end of the maximum pooling layer receives the feature map output by the input end of the fourth convolution block. The input end of the 5th convolution block receives the feature map output by the output end of the maximum pooling layer, the input end of the 6th convolution block receives the feature map output by the output end of the 5th convolution block, the input end of the 7th convolution block receives the feature map output by the output end of the 6th convolution block, the input end of the 8th convolution block receives the feature map output by the output end of the 7th convolution block, and the output end of the 8th convolution block serves as the output end of the full convolutional neural network; wherein, each convolution block is composed of a convolutional layer, a batch normalization layer, and a Leakly Relu activation function connected in sequence, the number of input channels of the convolutional layer in the 1st convolutional block is 16, and the number of output channels is 16, the number of input channels of the convolutional layer in the 2nd convolutional block is 16, and the number of output channels is 32, the number of input channels of the convolutional layer in the 3rd convolutional block and the 4th convolutional block is 32, and the number of output channels is 32, the number of input channels of the maximum pooling layer is 32, and the number of output channels is 64, the number of input channels of the convolutional layer in the 5th convolutional block is 64, and the number of output channels is The number of channels is 64, the number of input channels of the convolution layer in the 6th convolution block is 64, and the number of output channels is 128, the number of input channels of the convolution layer in the 7th convolution block is 128, and the number of output channels is 128, the number of input channels of the convolution layer in the 8th convolution block is 128, and the number of output channels is 1, the convolution kernel size of the convolution layer in the 1st to the 7th convolution blocks is 3×3×3, and the convolution kernel size of the convolution layer in the 8th convolution block is 2×2×2.

6. The method for automatic segmentation of brain microbleeds in brain MRI images according to claim 5, characterized in that In the step 5, the batch size is 64, and the loss function adopts the focal loss function.

7. The method for automatic segmentation of brain microbleeds in brain MRI images according to claim 1, characterized in that The structure of the first U-Net segmentation network is the same as that of the second U-Net segmentation network, which includes 14 convolution blocks, 3 maximum pooling layers and 3 deconvolution layers. The input end of the first convolution block serves as the input end of the U-Net segmentation network, the input end of the second convolution block receives the feature map output by the output end of the first convolution block, the input end of the first maximum pooling layer receives the feature map output by the input end of the second convolution block, the input end of the third convolution block receives the feature map output by the output end of the first maximum pooling layer, and the input end of the fourth convolution block receives the feature map output by the output end of the third convolution block. The input end of the 1st convolution block receives the feature map output by the output end of the 4th convolution block, the input end of the 2nd maximum pooling layer receives the feature map output by the output end of the 4th convolution block, the input end of the 5th convolution block receives the feature map output by the output end of the 2nd maximum pooling layer, the input end of the 6th convolution block receives the feature map output by the output end of the 5th convolution block, the input end of the 3rd maximum pooling layer receives the feature map output by the input end of the 6th convolution block, the input end of the 7th convolution block receives the feature map output by the output end of the 3rd maximum pooling layer, the input end of the 8th convolution block receives the feature map output by the output end of the 7th convolution block, and the 1st The input end of the deconvolution layer receives the feature map output by the output end of the 8th convolution block, the input end of the 9th convolution block receives the feature map output by the output end of the 6th convolution block and the feature map output by the output end of the 1st deconvolution layer after channel splicing, the input end of the 10th convolution block receives the feature map output by the output end of the 9th convolution block, the input end of the 2nd deconvolution layer receives the feature map output by the output end of the 10th convolution block, and the input end of the 11th convolution block receives the feature map output by the output end of the 4th convolution block and the feature map output by the output end of the 2nd deconvolution layer. The feature map obtained after channel splicing, the input end of the 12th convolution block receives the feature map output by the output end of the 11th convolution block, the input end of the 3rd deconvolution layer receives the feature map output by the output end of the 12th convolution block, the input end of the 13th convolution block receives the feature map output by the output end of the 2nd convolution block and the feature map output by the output end of the 3rd deconvolution layer, the input end of the 14th convolution block receives the feature map output by the output end of the 13th convolution block, and the output end of the 14th convolution block serves as the output end of the U-Net segmentation network;Among them, the 1st to 8th convolution blocks and 3 maximum pooling layers constitute the encoder, the 9th to 14th convolution blocks and 3 deconvolution layers constitute the decoder, each convolution block is composed of a convolution layer, a batch normalization layer, and a Leakly Relu activation function connected in sequence, the number of input channels of the convolution layer in the 1st convolution block, the 2nd convolution block, the 13th convolution block, and the 14th convolution block is 16, and the number of output channels is 16, the number of input channels of the 1st maximum pooling layer is 16, and the number of output channels is 32, the number of input channels of the convolution layer in the 3rd convolution block, the 4th convolution block, the 11th convolution block, and the 12th convolution block is 32, and the number of output channels is 32, the number of input channels of the 2nd maximum pooling layer is 32, and the number of output channels is 64, the 5th convolution block, the 6th convolution block, the 9th convolution block and The number of input channels of the convolutional layer in each of the 10th convolutional blocks is 64, and the number of output channels is 64. The number of input channels of the third maximum pooling layer is 64, and the number of output channels is 128. The number of input channels of the convolutional layer in the 7th and 8th convolutional blocks is 128, and the number of output channels is 128. The number of input channels of the first deconvolutional layer is 128, and the number of output channels is 64. The number of input channels of the second deconvolutional layer is 64, and the number of output channels is 32. The number of input channels of the third deconvolutional layer is 32, and the number of output channels is 16. The convolution kernel size of all convolutional layers is 3×3×3. ; 8. The method for automatic segmentation of brain microbleeds in brain MRI images according to claim 7, characterized in that In step 6 and step 7, the batch size is 32, and the loss function is the weighted sum of the focal loss function and the dice loss function, and the weights of both are 0.5.

Citation Information

Patent Citations

  • Cerebral microhemorrhage automatic detection method and system based on deep learning

    CN110956634A

  • Cerebral microhemorrhage quantification method and computer readable storage medium

    CN111640095A