Medical image segmentation method based on boundary optimization

By introducing boundary learning and enhancement modules into medical image segmentation, the problem of boundary information loss and boundary blur in U-shaped convolutional neural networks is solved, and the boundary positioning accuracy and segmentation performance of medical image segmentation are improved.

CN118657956APending Publication Date: 2024-09-17HULUNBUIR UNIV

Patent Information

Application Number
CN202410807323.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

The layer-by-layer downsampling of U-shaped convolutional neural networks in medical image segmentation results in the loss of boundary information, and medical images are interfered by illumination, low contrast and background noise, resulting in blurred boundaries of segmentation targets and difficulty in accurate positioning.

Method used

The boundary learning module and boundary enhancement module are introduced in the encoding and decoding stages. Through the residual block and attention mechanism, the model's ability to represent boundaries is optimized, the boundary information in high-level features is retained, and segmentation performance is improved through multi-scale training and data enhancement. .

Benefits of technology

It significantly improves the boundary positioning accuracy and segmentation performance of medical image segmentation, and improves the model's boundary perception capabilities, especially when dealing with fuzzy boundaries.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118657956A
    Figure CN118657956A
Patent Text Reader

Abstract

The invention relates to a medical image segmentation method based on boundary optimization, and belongs to the field of medical image processing. According to the algorithm, a brand-new fully-supervised medical image segmentation architecture is provided by taking improvement of the boundary representation capability as an entry point, a boundary learning module is additionally arranged in a coding stage, so that high-level features have semantic and boundary information, and a boundary enhancement module is designed in a decoding stage to mine fuzzy boundary clues and improve the boundary representation capability of a model. According to the invention, by optimizing the boundary sensing capability of the model, the problem that the U-shaped convolutional neural network loses boundary information in a coding stage is effectively solved, and the medical image segmentation performance is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of medical image processing, and in particular to a medical image segmentation method based on boundary optimization. Background Art

[0002] Medical image segmentation is the basis and key link of computer-aided diagnosis. It can automatically locate and mark the anatomical structures, organs and lesion areas inside the human body on medical images. Accurate segmentation results help doctors observe image data, reduce uncertainty in the diagnosis process, and improve medical quality. In clinical practice, doctors pay attention to the boundary of the target in addition to the position and size of the segmentation target. Accurate positioning boundaries can effectively prevent misjudgment of normal tissues and organs and reduce the risk of damage to healthy tissues during surgery.

[0003] In recent years, deep learning technology has been widely used in the field of medical image segmentation due to its excellent feature extraction capabilities. Among them, the U-type convolutional neural network has become a typical architecture for medical image segmentation due to its significant performance advantages. However, in the encoding stage, the layer-by-layer downsampling process of the U-type convolutional neural network causes the high-level features to lose boundary information, affecting the boundary positioning effect of the segmentation results. On the other hand, medical images are often affected by factors such as lighting, low contrast, and background noise interference, which leads to blurring of the local boundaries of the segmented targets, increasing the difficulty of accurately locating the boundaries. Therefore, an algorithm is needed to improve the boundary positioning effect of medical image segmentation tasks. Summary of the invention

[0004] The purpose of the present invention is to provide a medical image segmentation method based on boundary optimization to address the problem of insufficient boundary representation ability of U-shaped convolutional neural networks. The algorithm introduces novel modules in the encoding and decoding stages to optimize the model's ability to perceive boundaries, so as to obtain more accurate and coherent boundaries and effectively improve segmentation performance.

[0005] The above-mentioned object of the present invention is achieved by the following technical solutions:

[0006] A medical image segmentation method based on boundary optimization comprises the following steps:

[0007] Step 1: Preprocess and enhance the medical images. Use the mean and standard deviation of the ImageNet dataset to normalize the medical images, and use strategies such as color jittering and random flipping for data enhancement. The formula is described as follows:

[0008] New_I=I / 255

[0009] mean = [0.485, 0.456, 0.406]

[0010] std = [0.229, 0.224, 0.225]

[0011] New_I=(New_I-mean) / std

[0012] S=DA(New_I)

[0013] Where I is the original image, DA(·) is the data augmentation strategy, and S is the enhanced image;

[0014] Step 2: Initialize the parameters of the segmentation network. The segmentation network structure is Among them, the segmentation network S θ The encoder E θ1 The first five layers of the ResNeXt-101 network structure are used, and its pre-trained weights are loaded on the ImageNet dataset. In addition, the boundary enhancement module BL θ2 , decoder D θ3 and boundary enhancement module BE θ4 The convolution operation is initialized using Kaiming;

[0015] Step 3: Sample medical images and corresponding true values ​​from the training set. In each iteration, a batch of samples is randomly read from the labeled RGB three-channel medical image data, that is, A multi-scale training method is used to adjust the image size according to the ratio [0.75, 1, 1.25] and then input it into the segmentation model.

[0016] Step 4: Send the sampled image to the segmentation network S in step 2 θ The encoder E θ1 Perform forward propagation to obtain multi-layer feature representation, expressed as E i =E θ1 (I)1≤i≤5;

[0017] Step 5: Set the encoder E θ1 The multi-layer features are sent to the boundary learning module, so that the deep features contain boundary information. Among them, the boundary learning module BL θ2 The encoder’s multi-layer features E i As input, it gradually integrates the boundary information of low-level features into high-level semantic features through a bottom-up feature fusion method based on residual blocks. The optimized feature representation is as follows:

[0018]

[0019] Among them, RB(·) represents the residual block;

[0020] Step 6: Through decoder D θ3Get the preliminary mask map. The specific decoder adopts the local aggregation method to obtain the initial mask through F3, F4 and F5, which is expressed as M6 = D θ3 (F3, F4, F5);

[0021] Step 7: Under the guidance of the mask image, the boundary enhancement module further mines the fuzzy boundary clues and restores the spatial dimension of the feature to obtain the prediction image;

[0022] Step 8: Construct a total loss function and update the parameters of the segmentation network through back propagation;

[0023] Step 9: Repeat steps 3 to 8 until the current number of iterations reaches the predefined maximum number of iterations (max_iteration);

[0024] Step 10: Input the medical image data to be segmented into the segmentation model, perform forward propagation, and obtain the final segmentation result.

[0025] The boundary enhancement module described in step 7, under the guidance of M6, i The fuzzy boundary clues are mined through the attention mechanism. The specific calculation of each layer of the boundary enhancement module is as follows:

[0026]

[0027] Among them, φ(·) is the upsampling operation, σ(·) is the Sigmoid activation function, and T is the threshold, which is set to 0.5.

[0028] R i =(F i ⊙A i +F i )⊙F i

[0029] ⊙ is pixel-level multiplication.

[0030] M i =φ(M i+1 )+R i

[0031] The deep supervision method described in step 8 optimizes model training. The total loss function is expressed as follows:

[0032]

[0033]

[0034] w k =(1+γα k ) / γα k

[0035] w′k =1+γα k

[0036]

[0037] Among them, G represents the true value, N = H × W represents the total number of pixels, and m k ∈M i , g k ∈G, k is the index of each pixel in the image, l∈{0,1} represents the binary label, f(·) is the indicator function, P(·) represents the prediction probability, and the hyperparameter γ is set to 5, α k ∈[0,1].

[0038] The beneficial effects of the present invention are as follows: the present invention proposes a medical image segmentation method based on boundary optimization, and the algorithm constructs a new fully supervised medical image segmentation architecture; in the encoding stage, a boundary learning module is constructed to solve the problem of the U-shaped convolutional neural network losing boundary information as the network depth increases, so that high-level features have both semantic information and boundary information. In addition, in view of the difficulty in locating fuzzy boundaries, a boundary enhancement module is designed to mine fuzzy boundary clues through an attention mechanism. This algorithm retains more boundary information in the encoding stage, strengthens the representation ability of fuzzy boundaries, improves the boundary positioning accuracy of the model, and ultimately improves the segmentation performance of medical images. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The drawings described herein are used to provide further understanding of the present invention and constitute a part of this application. The illustrative examples of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0040] Figure 1 is a flow chart of a medical image segmentation method based on boundary optimization of the present invention;

[0041] Figure 2 is a schematic diagram of a medical image segmentation model based on boundary optimization of the present invention;

[0042] Figure 3 It is a schematic diagram of the optimization block of the present invention;

[0043] Figure 4 It is a schematic diagram of the Partial Decoder module of the present invention;

[0044] Figure 5 Schematic diagram of the internal structure of the boundary perception module;

[0045] Figure 6 Shown are the polyp segmentation results of each model. DETAILED DESCRIPTION

[0046] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0047] Embodiment 1:

[0048] In view of the problems existing in the above-mentioned prior art, this embodiment provides a medical image segmentation method based on boundary optimization, which uses a trained model to segment the medical image, and specifically includes the following steps:

[0049] Step 1, obtaining medical image data to be segmented;

[0050] Step 2: Preprocess the medical image data. The mean and standard deviation of the ImageNet dataset are used to normalize the medical images, and strategies such as color jittering and random flipping are used for data enhancement.

[0051] As mentioned above, the medical images selected are polyp images under colonoscopy, and the data sources are the public CVC-ClinicDB and Kvasir datasets.

[0052] Step 3: Divide the medical image dataset into a training set and a test set according to a preset ratio;

[0053] Step 4: Generate a medical image segmentation model based on boundary optimization, feed the training set of the data set into the model, and train and optimize the model parameters;

[0054] Step 5: After training, send the test set to the model with the best weights loaded to obtain the segmentation results.

[0055] Specifically, the structure of the medical image segmentation model based on boundary optimization is as follows: Figure 2 As shown, specifically:

[0056] ① Build the encoder. The encoder selects ResNeXt101, which uses group convolution to reduce the number of parameters and the amount of calculation.

[0057] ②Build a boundary learning module (BL), see Figure 2 The boundary learning module effectively combines adjacent features through a bottom-up fusion method based on the optimization block, so that the boundary information is transmitted to the high-level features. Among them, the optimization block is implemented through a residual structure, and the boundary representation of the feature is optimized through several convolutions and identity mapping methods. The structure is as follows Figure 3 shown.

[0058] ③ Bottleneck layer. Mainly includes the Partial Decoder module, see Figure 4 . Send F3, F4 and F5 to the PartialDecoder module to obtain the initial mask, expressed as M6 = D θ3 (F3, F4, F5);

[0059] ④Build a boundary learning module, which contains three boundary perception attention blocks for mining fuzzy boundary clues. The internal structure of the boundary perception module can be found in Figure 5 .

[0060] During the training process of the model, the loss function is defined as weighted cross entropy and weighted IoU loss.

[0061] The following is an example of actual application, which includes the following steps:

[0062] Step 1: Obtain a medical image dataset and divide it. Taking polyp segmentation as an example, the experiment divides the CVC-ClinicDB and Kvasir datasets into training, validation, and test sets in the ratio of [0.8, 0.1, 0.1].

[0063] Step 2, preprocess the input data to make the image size uniform to 352×352;

[0064] Step 3, generate a medical image model based on boundary optimization, send the training set data to the segmentation model to train the medical image segmentation model; and use the validation set to evaluate the model performance.

[0065] The network uses the Adam algorithm to optimize the loss function, the batch size is set to 16, the total number of iterations is 20, and the initial learning rate is 1e-4.

[0066] Step 4: Input the test set into the trained segmentation model to obtain the segmentation results.

[0067] The segmentation results are evaluated by Dice, IoU and MAE evaluation indicators to evaluate the model segmentation performance.

[0068] After multiple rounds of experiments, as shown in Table 1, on the CVC-ClinicDB dataset, Mean Dice reached 92.6%, Mean IoU reached 87.8%, and MAE was 0.8%. Compared with U-Net, UNet++, SegNet, and ACSNet, the Mean IoU index of the proposed algorithm in this experiment increased by 10.3%, 10.4%, 2.1%, and 2%, respectively. At the same time, the proposed algorithm achieved the highest results in both Mean Dice and MAE indicators.

[0069] Table 1 Experimental results on the CVC-ClinicDB dataset

[0070]

[0071] As shown in Table 2, on the Kvasir dataset, the Mean IoU of the proposed algorithm reaches 85.4%, which is 10.8%, 11.1% and 4% higher than that of U-Net, UNet++ and SegNet. At the same time, the proposed algorithm achieves the best result in MAE and the second best result in MeanDice. Figure 6 The polyp segmentation results of each model are displayed, demonstrating the advanced nature of the algorithm.

[0072] Table 2 Experimental results on the Kvasir dataset

[0073]

[0074] Embodiment 2:

[0075] This example provides a fully supervised medical image segmentation system, including:

[0076] An acquisition module, used for acquiring a medical image to be segmented;

[0077] Data preprocessing, that is, using conventional preprocessing methods. The data of this embodiment is skin lesion images under a dermatoscope. Specifically, the data comes from ISIC2018.

[0078] The segmentation model building module includes an encoder, a boundary optimization module, and a boundary enhancement module.

[0079] The encoder uses the ImageNet pre-trained classification model, the main purpose of which is to extract effective features.

[0080] The boundary optimization module structure and boundary enhancement module are as follows Figure 2 As shown in the figure, the former uses a bottom-up feature fusion method to make high-level features contain boundary information, and the latter uses the attention mechanism to mine fuzzy boundary clues to improve image segmentation accuracy.

[0081] During training, the medical image dataset is input into the segmentation model, and the model parameters are updated through back-propagation.

[0082] When training the segmentation model, the overall loss function is:

[0083]

[0084] As shown in Table 3, after multiple rounds of experiments, the proposed method showed advanced segmentation performance in the skin lesion segmentation task compared with other methods, with F1-Score, Sensitivity and Accuracy reaching 89.5%, 90.1% and 96.3%.

[0085] Table 3 Skin lesion test results

[0086]

[0087]

[0088] In summary, the present invention provides a new fully supervised medical image segmentation algorithm. The algorithm adds boundary optimization modules in the encoding stage and the decoding stage respectively to improve the boundary representation ability of the model. Specifically, the present invention designs a boundary learning module, which transfers boundary information from the low layer to the high-level features through a bottom-up fusion method, so that the encoding stage can retain more boundary information. In addition, the present invention designs a boundary enhancement module, which uses the attention mechanism to mine fuzzy boundary clues and guides the decoding stage to accurately restore the target boundary. The introduction of the above-mentioned boundary learning module and boundary enhancement module improves the boundary perception ability of the segmentation model and improves the accuracy of medical image segmentation.

[0089] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made to the present invention shall be included in the protection scope of the present invention.

Claims

1. A medical image segmentation method based on boundary optimization, Features: The steps include: Step 1: Preprocess and enhance the data of medical images; use the mean and standard deviation of the ImageNet dataset to normalize the medical images, and use strategies such as color jittering and random flipping for data enhancement. The formula is described as follows: New_I=I / 255 mean = [0.485, 0.456, 0.406] std = [0.229, 0.224, 0.225] New_I=(New_I-mean) / std S=DA(New_I) Where I is the original image, DA(·) is the data augmentation strategy, and S is the enhanced image; Step 2: Initialize the parameters of the segmentation network; the segmentation network structure is Among them, the segmentation network S θ The encoder E θ1 The first five layers of the ResNeXt-101 network structure are used, and the pre-trained weights on the ImageNet dataset are loaded; in addition, the boundary learning module BL θ2 , decoder D θ3 and boundary enhancement module BE θ4 The convolution operation is initialized using Kaiming; Step 3: Sample medical images and corresponding true values ​​from the training set; randomly read batch samples from the labeled RGB three-channel medical image data in each iteration, that is, And adopt multi-scale training method, adjust the image size according to the ratio [0.75, 1, 1.25] and input it into the segmentation model; Step 4: Send the sampled image to the segmentation network S in step 2 θ The encoder E θ1 Perform forward propagation to obtain multi-layer feature representation, expressed as E i =E θ1 (I)1≤i≤5; Step 5: Set the encoder E θ1 The multi-layer features are sent to the boundary learning module, so that the deep features contain boundary information; wherein, the boundary learning module BL is configured θ2 The encoder’s multi-layer features E i As input, it gradually integrates the boundary information of low-level features into high-level semantic features through a bottom-up feature fusion method based on residual blocks. The optimized feature representation is as follows: Among them, RB(·) represents the residual block; Step 6: Through decoder D θ3 Get the preliminary mask map; the specific decoder adopts the local aggregation method, through F 3 , F 4 and F 5 Get the initial mask, denoted as M 6 =D θ3 (F 3 ,F 4 ,F 5 ); Step 7: Under the guidance of the mask image, the boundary enhancement module BE θ4 Further explore the fuzzy boundary clues and restore the spatial dimension of the features to obtain the prediction map; Step 8: Construct a total loss function and update the parameters of the segmentation network through back propagation; Step 9: Repeat steps 3 to 8 until the current number of iterations reaches the predefined maximum number of iterations (max_iteration); Step 10: Input the medical image data to be segmented into the segmentation model, perform forward propagation, and obtain the final segmentation result.

2. The medical image segmentation method based on boundary optimization according to claim 1, Features: The boundary enhancement module BE described in step 7 θ4 In M 6 Under the guidance of feature F i In the above, the fuzzy boundary clues are mined through the attention mechanism; the specific calculation of each layer of the boundary enhancement module is as follows: Among them, φ(·) is the upsampling operation, σ(·) is the Sigmoid activation function, and T is the threshold, which is set to 0.5; R i =(F i ⊙A i +F i )⊙F i ⊙ is pixel-level multiplication; M i =φ(M i+1 )+R i 。 3. The medical image segmentation method based on boundary optimization according to claim 1, Features: The deep supervision method described in step 8 optimizes model training; the total loss function is expressed as follows: w k =(1+ca k ) / ga k w′ k =1+ga k Among them, G represents the true value, N = H × W represents the total number of pixels, and m k ∈M i , g k ∈G, k is the index of each pixel in the image, l∈{0,1} represents the binary label, f(·) is the indicator function, P(·) represents the prediction probability, and the hyperparameter γ is set to 5, α k ∈[0,1].

Citation Information

Patent Citations

  • Significant target detection method and system based on boundary enhancement

    CN114821059A

  • Semi-supervised medical image segmentation method based on boundary perception

    CN116030044A

  • Medical image segmentation method based on edge optimization and attention mechanism

    CN116958160A

  • Arophic gastritis area segmentation method based on multi-scale boundary refinement and fusion

    CN118115490A

  • KR20220040651A

Cited By

  • Medical image segmentation method based on complementary and contrast features

    CN119887832A

  • Medical image segmentation method based on complementary and contrasting features

    CN119887832B

  • Skin lesion image segmentation method and device based on boundary enhancement dual optimization

    CN120070478A

  • Skin Lesion Image Segmentation Method and Device Based on Boundary Enhancement and Dual Optimization

    CN120070478B