A breast ultrasound image segmentation method with large receptive field attention enhancement
Through the large receptive field attention-enhanced breast ultrasound image segmentation method, the LRFE-UNet network model and the global perception module are used to solve the complexity of lesion segmentation in breast ultrasound images and achieve fine segmentation and boundary identification of breast lesions. Improved accuracy of early breast cancer screening.
Patent Information
- Application Number
- CN202410461624.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-17
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-04-17
AI Technical Summary
Problems such as blur, artifacts, and uneven echoes exist in breast ultrasound images, making it difficult to accurately segment breast lesion areas. In particular, the false boundary phenomenon of cystic-solid nodules makes lesion segmentation more complex, affecting early screening and diagnosis of breast cancer.
A breast ultrasound image segmentation method with large receptive field attention enhancement is designed, which adopts the LRFE-UNet network model, combines the large receptive field feature encoder with deep separation convolution and residual structure and the spatially enhanced channel attention module. The global perception module establishes feature dependencies and optimizes feature transmission and boundary perception.
It achieves more refined and accurate segmentation of breast lesions, improves the accuracy and stability of breast ultrasound image segmentation, can handle complex and unpredictable breast lesion characteristics, reduces noise interference, and improves the detection of cystic-solid nodule boundaries. recognition ability.
Smart Images

Figure CN118261925B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of medical image segmentation, and in particular to a breast ultrasound image segmentation method with large receptive field attention enhancement. Background Art
[0002] Breast cancer is a serious disease that has a profound impact on the lives and health of women worldwide. It is also one of the most common fatal diseases in women. Early detection and accurate evaluation are crucial for the prevention and effective management of breast cancer. Breast ultrasound (BUS) imaging has been widely used in early screening for breast cancer due to its advantages such as real-time, radiation-free, and low cost. However, accurate segmentation of breast lesions faces some challenges. On the one hand, due to the inherent defects of ultrasound imaging principles and the uncertainty of the examination environment, ultrasound images generally have problems such as blur, artifacts, and uneven echoes. On the other hand, breast lesions are divided into benign and malignant, and the shape, size, and position of the lesion area vary complexly. Large breast nodules may be accompanied by fibrosis and necrosis, forming nodules with coexistence of cystic and solid tissues, that is, cystic-solid nodules, showing a false boundary phenomenon. In breast ultrasound, accurate segmentation of the lesion area is one of the key steps for radiologists to use BUS for early screening of breast cancer. By accurately segmenting the breast lesion area, doctors can perform detailed analysis of the size, shape, texture, and other characteristics of the lesion according to the (Breast Imaging Reporting and Data System) BI-RADS. This helps doctors assess the benign or malignant nature of the lesion and its potential impact, providing an important basis for developing personalized treatment plans. Therefore, breast lesion segmentation plays an indispensable role in the diagnosis and treatment of breast cancer. Summary of the invention
[0003] The present invention designs a breast ultrasound image segmentation method with large receptive field attention enhancement, and realizes accurate segmentation of breast ultrasound images through the LRFE-UNet network model. Considering the variability of breast lesion morphology, a large receptive-field feature encoder (LRFE) based on deep separation convolution and residual structure is introduced, and a large amount of contextual information highly related to the lesion is obtained through the interaction between multi-level features from a larger receptive field. In order to suppress noise, LRFE-UNet designs a spatial-enhanced channel attention module (SCAM) at the jump connection, which optimizes the feature transmission process and enhances the local saliency map by fusing spatial information and channel information. At the same time, a global awareness module (GAM) is also designed to establish dependencies between global features to improve the information transmitted upward and mine the underlying boundary perception features. LRFE-UNet based on this can guide the network to process more complex and unpredictable breast lesion features, thereby obtaining more refined segmentation results.
[0004] A breast ultrasound image segmentation method with large receptive field attention enhancement comprises the following steps:
[0005] Step 1: First, collect a large number of breast ultrasound images as training samples;
[0006] Step 2: preprocessing the collected breast ultrasound images;
[0007] Step 3: Send the preprocessed image into the LRFE-UNet network model for training and optimization;
[0008] Step 4: Input the new breast ultrasound image into the optimization model and automatically output the accurate segmentation result of the lesion.
[0009] Furthermore, the LRFE-UNet network model includes a large receptive field feature encoder LRFE. LRFE is based on the ConvNeXt model pre-trained on ImageNet. The last classifier layer of ConvNext is deleted, and only the first half of the network and the training weights are retained. LRFE includes an initialized Stem module and four encoding modules. The Stem module serves as the entrance of the network and performs preliminary feature extraction and dimensionality reduction on the input image. The four encoding modules stack different numbers of Conv-Blocks respectively, so that the network can learn rich feature representations at different levels.
[0010] Preferably, the Stem module serves as the entrance of the network, and is composed of a 4×4 convolutional layer and a layer normalization layer LN. The step size of the convolutional layer is 4, and the number of Conv-Blocks stacked in the four encoding modules are 3, 3, 27, and 3 respectively. The Conv-Block replaces the traditional 3×3 convolutional layer with a 7×7 depth-separable convolutional layer, which significantly expands the receptive field with a slight increase in parameters, so that the network can more comprehensively capture the details and structural information in the image.
[0011] Preferably, two layers of 1×1 convolution are used inside Conv-Block to adjust the number of channels to balance increasing the convolution kernel size and reducing the number of parameters.
[0012] Preferably, Conv-Block uses layer normalization and Gaussian error linear unit GELU as activation function, replacing the traditional batch normalization and ReLU combination, improving the generalization ability of the model and enhancing the ability to model nonlinear relationships.
[0013] Preferably, during the downsampling process of the network, layer normalization and a 2×2 convolutional layer with a step size of 2 are used to halve the size of the feature map and halve the number of channels, thereby reducing the feature dimension and the number of network parameters, thereby reducing the computational cost and improving the inference efficiency.
[0014] Furthermore, the feature maps output by LRFE are sent to two adaptive average pooling layers, whose encoding kernels are (H, 1) and (1, W), respectively, to capture the spatial vertical features and spatial horizontal features in the image; then, the spatial horizontal features are transposed and concatenated with the spatial vertical features to form a comprehensive spatial combination feature; the spatial combination feature is sent to the neural network structure of the basic convolution module to further encode and refine the spatial information, thereby generating spatial information weights; the spatial information weights are normalized to ensure that the weight of each channel is between 0 and 1, which is used to indicate the importance of the channel feature in the spatial information.
[0015] Preferably, the LRFE-UNet network model realizes multi-angle global dependency extraction by dividing the bottleneck layer features into multiple sub-features and encoding the features using different patch sizes.
[0016] Preferably, in view of the fact that the bottleneck layer of the U-shaped network has small features, a single Transformer encoder is used in the bottleneck layer instead of stacking multiple encoders, so as to extract key features and reduce the amount of calculation.
[0017] Furthermore, in step 3, during the training process, a hybrid loss function is introduced to enable the model to quantify and compensate for the difference between the predicted results and the true labels. The hybrid loss value is represented by a weighted combination of the final output layer result loss, the three decoder output layer result losses, and the bottleneck layer output result loss. The formula is as follows:
[0018]
[0019] In the formula, α i Represents the loss function weight, set to a i =2 i ,i=0,1,2,3,4, L represents the mixed loss value, L i It represents the Dice loss function, which corresponds to the five loss values of the high-level network and the low-level network. The Dice loss function formula is as follows:
[0020]
[0021] Where N is the number of pixels, p i and i represent the predicted value and the true value respectively.
[0022] Compared with the prior art, the present invention has the following beneficial effects:
[0023] The present invention designs a breast ultrasound image segmentation method with large receptive field attention enhancement, and realizes accurate segmentation of breast ultrasound images through the LRFE-UNet network model. Considering the variability of breast lesion morphology, a large receptive-field feature encoder (LRFE) based on deep separation convolution and residual structure is introduced, and a large amount of contextual information highly related to the lesion is obtained through the interaction between multi-level features from a larger receptive field. In order to suppress noise, LRFE-UNet designs a spatial-enhanced channel attention module (SCAM) at the jump connection, which optimizes the feature transmission process and enhances the local saliency map by fusing spatial information and channel information. At the same time, a global awareness module (GAM) is also designed to establish dependencies between global features to improve the information transmitted upward and mine the underlying boundary perception features. On this basis, the LRFE-UNet can guide the network to process more complex and unpredictable breast lesion features, thereby obtaining more refined segmentation results. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1Schematic diagram of the network structure of the breast lesion segmentation model LRFE-UNet of the present invention;
[0025] Figure 2 It is a structural diagram of the channel attention module for spatial information enhancement of the present invention;
[0026] Figure 3 is a structural diagram of the global perception module of the present invention;
[0027] Figure 4 is the class activation map generated by the ablation model of the present invention using Grad-CAM;
[0028] Figure 5 It is the breast lesion segmentation result of four samples in Dataset A;
[0029] Figure 6 It is the breast lesion segmentation result of four samples in Dataset B;
[0030] Figure 7 It is the breast lesion segmentation result of four samples in Dataset C. DETAILED DESCRIPTION
[0031] The breast ultrasound image segmentation method with large receptive field and attention enhancement of the present invention is further described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0032] Figure 1 The LRFE-UNet framework for breast lesion segmentation is presented. It mainly consists of a large receptive field feature encoder (LRFE), three spatially enhanced channel attention modules (SCAMs), and a global perception module (GAM). First, the large receptive field feature encoder (LRFE) is introduced to capture the features of the input image from a larger receptive field, thereby obtaining the complex characteristics of BUS images. Then, SCAM is proposed to enhance the rich features of LRFE. Subsequently, GAM is used to guide the network to mine the underlying contour-aware features. Finally, the hybrid loss evaluates the output loss of each stage to achieve fine segmentation.
[0033] 1. The large receptive field feature encoder is set as follows:
[0034] In BUS image analysis, breast lesions show significant diversity in shape, size, and location in the image, which poses a considerable challenge to traditional convolutional networks in feature capture. To overcome these challenges, a novel LRFE encoder is designed, which is based on the ConvNeXt model pre-trained on ImageNet, removing the last classifier layer of ConvNext and retaining only the first half of the network and the training weights. LRFE consists of an initialized Stem module and four encoding modules, each of which is carefully designed to optimize feature extraction and segmentation performance.
[0035] The Stem module is the entrance of the network and consists of a 4×4 convolutional layer and a layer normalization layer (LN). The step size of the convolutional layer is 4, which is responsible for the preliminary feature extraction and dimensionality reduction of the input image. It is followed by four encoding modules, which stack different numbers of Conv-Blocks, specifically 3, 3, 27, and 3 (for example, Figure 1 As shown in the figure, this design allows the network to learn rich feature representations at different levels. In the design of Conv-Block, an innovative strategy is adopted to replace the traditional 3×3 convolution layer with a 7×7 depth-separable convolution layer. This change significantly expands the receptive field while slightly increasing the number of parameters, allowing the network to more comprehensively capture the details and structural information in the image. In order to balance the increase in convolution kernel size and the reduction in parameters, Conv-Block uses two layers of 1×1 convolution to adjust the number of channels to ensure the efficiency and performance of the model.
[0036] In order to make the model more adaptable to complex segmentation tasks, Conv-Block uses layer normalization and Gaussian error linear unit (GELU) as activation functions, replacing the traditional batch normalization and ReLU combination. This replacement not only improves the generalization ability of the model, but also enhances its ability to model nonlinear relationships. In the downsampling process of the network, layer normalization and 2×2 convolutional layers with a stride of 2 are used to implement this operation. This operation not only halves the size of the feature map, but also halves the number of channels, effectively reducing the number of feature dimensions and network parameters, thereby reducing computational costs and improving inference efficiency. LRFE has four outputs, represented by Y LRFE i (i∈[1,4]) is displayed, the formula is as follows:
[0037]
[0038] Among them, ConvBlock j(·) is the jth Conv-Block function; dim[] is the number of ConvBlock(·) used in each layer, i.e. [3,3,27,3]; is the output feature of the Stem module; Down(·) is the downsampling function.
[0039] It is worth noting that the proposed LRFE has two distinct advantages: one is that it greatly broadens the receptive field, thereby improving the perception ability. Another advantage is that LRFE can adapt to the diversity of lesions, such as significant changes in shape and size, as well as the diversity of lesion locations.
[0040] 2. The information-enhanced channel attention module is designed as follows:
[0041] The skip connection of the traditional U-Net helps to preserve high-resolution details, but as the complexity of the encoder increases, the redundant information transmitted by the network through the skip connection also increases, which will lead to training difficulties and degraded segmentation performance. Low-dimensional information such as blur, artifacts, and uneven echoes of breast ultrasound images will also be transmitted to the decoder through the skip connection to a certain extent. Therefore, in order to highlight the detected object and suppress irrelevant information and reduce the interference of non-salient objects, SCAM is designed. Its structure is as follows Figure 2 First, a special processing is performed on the feature map output by LRFE. Specifically, The two adaptive average pooling layers (Aavg) are fed into the two adaptive average pooling layers. The encoding kernels of the two pooling layers are (H, 1) and (1, W). This operation aims to capture the spatial vertical features and spatial horizontal features in the image, respectively, which are called and Next, Transpose it and then compare it with Splicing is performed on the channel dimension to integrate into a comprehensive spatial combination feature This spatial combination feature is then passed into a neural network structure called a base convolution module (BCM) to further encode and refine the spatial information, thereby generating spatial information weights.
[0042] W s i =BCM(Aavg h (Y LRFE i )⊙Aavg w (Y LRFE i ) T )
[0043] Where BCM(·) contains a 1×1 convolution, a batch normalization, and a ReLU activation function; ⊙ is channel concatenation; Aavg h (·) represents an adaptive average pooling layer with the encoding kernel (H, 1); Aavg w (·) indicates that the encoding kernel is a (1, W) adaptive average pooling layer.
[0044] After obtaining the spatial information weight W s After that, the weights are normalized by 1×1 convolution and Sigmoid (·) function to obtain the channel weights with spatial vertical information enhancement. and channel weights enhanced with spatial level information This process ensures that the weight of each channel is between 0 and 1, indicating the importance of the channel feature in the spatial information. LRFE i Respectively with W h i and W w i The output of the i-th SCAM is obtained by multiplying and adding
[0045] Y SCAM i =W w i *Y LRFE i +W h i *Y LRFE i
[0046] SCAM effectively enhances image features in both spatial and channel dimensions. First, by weighting the spatial dimension of the input feature map, the spatial positioning capability of the encoder output features is improved. Then, the channel dimension is weighted to further enhance the channel representation capability of the encoder output features. At the same time, SCAM can reduce the interference of redundant information, allowing the network to focus more on useful features, thereby improving the model training effect.
[0047] 3. Global Perception Module:
[0048] In the Trans-UNet network, the existing technology enhances the network segmentation performance by integrating Transformer, but it also increases the computational cost. Studies have shown that the shallow layer of the U-shaped network pays more attention to texture information, while the bottleneck layer contains high-level structural information related to the pixel category. Although the Transformer can capture global information at the bottleneck layer, it will significantly increase the computational burden. In view of the heterogeneity of breast tissue, the transition area between lesions and normal tissue becomes complex and unclear. The present invention proposes a global perception module that can perform global computational perception of high-dimensional feature information at the bottleneck layer. Unlike the standard VisionTransformer, this module uses only a single Transformer encoder instead of stacking multiple encoders to extract key features and reduce the amount of computation, targeting the small features of the bottleneck layer of the U-shaped network.
[0049] Considering that the number of channels of the bottleneck layer feature is large, in order to avoid the loss of high-dimensional features due to forced reduction of the number of channels, and at the same time to establish different long-distance dependencies. This paper deeply studies the bottleneck layer feature division scheme along the channel dimension and the patch size design scheme, in order to understand the potential impact of different schemes on the calculation effect of the attention mechanism and the effect of lesion segmentation. See the detailed structure for details. Figure 3 The bottleneck layer features are First, transform X along the channel dimension b Divided into t branch features And use p i ×p i The patch size is Divide and obtain each All p i ×p i Then, each patch is flattened into a vector And through three transformation matrices W Q i , W K i and W V i Get the query vector Q i , key vector K i Sum value vector V i The multi-head attention module accepts the branch Q i , K i and V i As input, calculate the attention score A i as follows:
[0050]
[0051] Next, A iThe data is passed into BN and multi-layer perceptron (MLP), and residual connections are performed to obtain the features of each branch.
[0052] Y m i =MLP(LN(X b i +A i ))+X b i +A i
[0053] Finally, Y m i The result of the global perception module is obtained by splicing along the channel dimension
[0054]
[0055] By dividing the bottleneck layer features into multiple sub-features and encoding the features with different patch sizes, multi-angle global dependency extraction is achieved. This method pays more attention to the global context information at different scales without losing the underlying information. The introduction of multi-angle global dependencies enables the network to understand the characteristics of breast ultrasound images more comprehensively, thereby improving the ability to segment lesions. The specific parameter settings will be discussed in detail below.
[0056] 4. Hybrid loss function:
[0057] In order to more accurately segment the breast lesion area, the final output of the network and the output of each stage are carefully supervised. A hybrid loss is used to effectively train the proposed model (see Figure 1 ), including the final output layer result loss, the three decoder output layer result losses, and the bottleneck layer output result loss. The hybrid loss is represented by a weighted combination of these five loss values, as follows:
[0058]
[0059] In the formula, α i Represents the loss function weight, set to a i =2 i ,i=0,1,2,3,4, L represents the mixed loss value, L i It represents the Dice loss function, which corresponds to the five loss values from the high layer to the bottom layer of the network. The Dice loss function formula is as follows.
[0060]
[0061] Where N is the number of pixels. i and iRepresent the predicted value and the true value respectively. Since the output results of the network intermediate layer and the bottleneck layer have different effects on the final result of the network, the a set in the present invention i =2 i ,i=0,1,2,3,4.
[0062] 5. Introduction to the overall network process
[0063] In order to build a model that can automatically segment lesions in breast ultrasound images, a large number of breast ultrasound images were first collected as training samples. These images cover a variety of lesion features, including size, shape, and location. In the data preparation stage, the collected images are carefully preprocessed. This includes adjusting all images to a standard size and normalizing the images at the pixel level. Subsequently, the preprocessed images are sent to the LRFE-UNet network for training. During the training process, the model will continuously optimize its parameters. The introduction of the mixed loss function enables the model to quantify and compensate for the difference between the predicted results and the true labels. Through the back-propagation algorithm, the weights of the model are gradually adjusted and optimized. Finally, in practical applications, only the new breast ultrasound image needs to be input into this well-trained model, and the model will automatically output the accurate segmentation results of the lesions.
[0064] The image is sent to the LRFE-UNet network. The LRFE-UNet network mainly includes encoder, decoder, skip connection, bottleneck layer, and loss function.
[0065] First, the image is passed to the encoder part. The encoder is a modified LRFE proposed by using the ConvNext network pre-trained on the ImageNet dataset. It mainly deletes the last classifier of the ConvNext network and only retains the first half of the network and the training weights. LRFE contains a Stem module and 4 encoding modules. LRFE will output 4 results Y LRFE i (i∈[1,4]).
[0066] Then, the first three outputs Y of LRFE LRFE i (i∈[1,3]) will first be passed into SCAM for feature enhancement and then passed to the decoder part.
[0067] Next, the fourth output Y of LRFE LRFE 4 It is passed to GAM to establish global feature dependencies and then also passed to the decoder part.
[0068] Finally, a mixed loss function is constructed by calculating the loss between the output of each layer of decoders and the true value, and the weight of the model is continuously optimized through back propagation. The output of the decoder of the last layer is the final output of the model, which is a binary image of the predicted lesion location with the same size as the input image.
[0069] 6. Experiment
[0070] In order to verify the performance of the model designed by the present invention for the breast lesion segmentation task on ultrasound images, the present invention conducts experimental evaluation on three challenging public datasets.
[0071] Dataset A contains 780 ultrasound images (437 benign images, 210 malignant images, and 133 normal images) acquired using LOGIQ E9 and LOGIQ E9 Agile ultrasound systems. Since the main purpose of breast lesion segmentation is to evaluate lesions and identify their distribution, normal cases without masks in Dataset A were deleted.
[0072] Dataset B contains 163 BUS images (110 benign images, 53 malignant images) acquired by the UDIAT Diagnostic Center of Parc Taulí, Sabadell, Spain, using a Siemens ACUSON Sequoia C512 system 17L5 HD linear array transducer (8.5MHZ).
[0073] Dataset C contains 562 BUS images (306 benign images and 256 malignant images) obtained from the Affiliated Hospital of Harbin Medical University, the Affiliated Hospital of Qingdao University, and the Affiliated Hospital of Hebei Medical University. The devices used to capture these images include LOGIQ E9, Hitachi EUB-6500, GE VIVID 7, Philips iU22, and Siemens ACUSON S2000.
[0074] The model designed in the present invention is implemented based on Python 3.7 and Pytorch 1.12. The image processing workstation is equipped with an Intel i9-13900K CPU and two NVIDIA RTX 4090 GPUs with 24G video memory.
[0075] All experiments used 5-fold cross validation, with four folds (80% of the images) used for training and one fold (20% of the images) used for testing. To ensure data consistency, all images were resized to a fixed size of 256×256. During model training, the default initialization method of Pytorch was used to obtain the initial parameters, and the Adam optimizer was used to update the network parameters. The specific settings are as follows: the initial learning rate is 0.0001, the weight decay coefficient is 0.1, and the learning rate is reduced every 50 iterations, for a total of 150 iterations.
[0076] In order to quantitatively evaluate the performance of different methods for breast lesion segmentation, seven widely used segmentation metrics were used. They are Dice coefficient (denoted as Dice), Recall, Jaccard index (denoted as IoU), Precision, Hausdorff distance 95 th percentile (denoted as HD95), Accuracy and F1-score. There is no specific range for the HD95 value, and the smaller the value, the better the lesion boundary segmentation; the other indicators range from [0,1], and the larger the value, the better the lesion segmentation effect.
[0077] 1. Structural ablation
[0078] In this section, we mainly study the effects of each module in the model designed by the present invention. The baseline model is U-Net, and the improvement effect after adding a large receptive field feature encoder, a spatially enhanced channel attention module, and a global perception module is tested.
[0079] Ablation experiments were performed on each key module of LRFE-UNet. The baseline network is U-Net, which is tested after adding LRFE, SCAM, and GAM. As shown in Table 1, the proposed modules significantly improve the baseline network on all three datasets. This fully demonstrates the effectiveness of LRFE-UNet in breast lesion segmentation.
[0080] Table 1 Ablation experiments of the proposed method on three different datasets through 5-fold cross validation (mean ± standard deviation)
[0081]
[0082] First, the large receptive field feature encoder was used as the network encoder (i.e., Baseline+LRFE). This change greatly improved the segmentation effect of the baseline network. On DatasetA, DatasetB, and DatasetC, the Dice coefficient increased by 9.66%, 12.87%, and 3.67%, respectively, and the F1-score also increased by 6.89%, 10.96%, and 3.51%, respectively. This significant improvement is mainly due to the fact that the large kernel convolution enhances the encoder's receptive field, thereby guiding the network to better capture the complex and variable characteristics of breast lesions.
[0083] Secondly, after adding the spatially enhanced channel attention module to the network (i.e., Baseline+LRFE+SCAM), the segmentation effect is further improved compared to "Baseline+LRFE". Specifically, the Dice coefficient is improved by 1.99%, 2.57%, and 0.33% on the three datasets, respectively. At the same time, the Accuracy index reached 96.47%, 98.78%, and 98.56%, respectively, which shows that the proposed module has good effects on both lesion segmentation and background segmentation. This may be because SCAM cleverly integrates spatial information and channel information in the jump connection, thereby reducing the impact of redundant information on the network decoder and further enhancing the feature representation and segmentation capabilities.
[0084] Then, GAM is added to "Baseline+LRFE+SCAM" (i.e. LRFE-UNet), and its segmentation effect is further improved. Compared with "Baseline+LRFE+SCAM", the Dice coefficient is increased by 0.64%, 1.18%, and 0.27% on the three data sets respectively. At the same time, the F1-score also reached 84.93%, 87.58%, and 93.44% respectively. This is mainly due to the global perception module designed at the bottleneck layer, which can better calculate the relationship between features and establish global dependencies of high-dimensional features.
[0085] In general, the model designed by the present invention shows a synergistic effect in performance improvement, and the joint optimization of each part achieves a significant improvement in the overall effect. Specifically, the large receptive field feature encoder designed in the encoder part enhances the feature extraction capability of the network, the SCAM designed in the jump connection part strengthens the feature transmission capability, and the GAM designed in the bottleneck layer part optimizes the establishment of feature relationships. Therefore, LRFE-UNet shows good versatility on a variety of data sets, and the segmentation effect of breast ultrasound lesions is particularly significant.
[0086] 2. Parameter Ablation
[0087] In order to further explore the impact of the variants of the global perception module on the model training process, the number of branches t and the patch size p of the data division in Section 1.3 were studied. The experiment was conducted on Dataset A, which has the richest data and the most difficult task. The results are shown in the following table.
[0088] Table 2 Hyperparameter experimental results
[0089]
[0090] The experimental results show that when the feature map is not divided, the improvement on the segmentation result is better than when the feature map is divided into two branches. Specifically, when the feature map is not divided, the segmentation results are improved when the patch size is 2 and 4. On Dice, they are improved by 0.64% and 0.03%, respectively; on F1-score, they are improved by 1.18% and 0.43%, respectively. However, when the feature map is divided into two branches, it has a certain impact on the segmentation effect, Dice decreases, and only slightly improves on F1-score.
[0091] In-depth observation shows that the segmentation effect is most significantly improved when the number of branches is 1 and the patch is 2 (i.e. 1 / 4 of the feature map size). The Dice, HD95 and F1-score are improved by 0.64%, 0.85% and 1.18% respectively. It is worth noting that by adding the global perception module, the fluctuation of the network segmentation indicators is reduced, highlighting the positive role of the global perception module in improving the robustness of the network.
[0092] 3. Visual analysis
[0093] In order to intuitively demonstrate the effectiveness of the LRFE-UNet sub-models and better understand their role in breast lesion segmentation, the gradient-weighted class activation mapping (Grad-CAM) was used to generate class activation maps and visualize the BUS images. Figure 4 Eight breast lesion cases from the test set are shown, including blurred boundaries, speckle artifacts, and cystic and solid lesions. The white outline indicates the location of the breast lesion, and the warmer areas indicate higher confidence in the target class label.
[0094] from Figure 4 It can be found that the baseline network is obviously incapable of perceiving breast lesions of various shapes, with fewer highlighted lesions and smaller attention areas. Figure 4 As shown in (a), (b), (d), (g), and (h), the baseline network cannot identify lesions, resulting in perceptual leakage. Figure 4 (c), (e), and (f) 4 show that the baseline network again makes a perception error and misjudges normal tissue as a lesion. After introducing LRFE into the baseline network, the lesion perception ability is significantly improved. Figure 4 As shown in "Baseline+LRFE" in the figure, the network can accurately perceive the location of the lesion, and the highlighted area is more concentrated in the internal lesion. This is because LRFE can locate lesions with complex changing characteristics.
[0095] In addition, SCAM is added to enhance the local saliency map. The "Baseline+LRFE+SCAM" row clearly shows that the highlight of the internal lesion is slightly blurred, and the network's perception of the lesion gradually shifts from the inside to the boundary, further expanding the overall highlight area. Finally, after the introduction of GAM, the network's attention can accurately locate the lesion boundary. By comparing "Baseline+LRFE+SCAM" and "Baseline+LRFE+SCAM+GAM", it is not difficult to find that the perception range of the lesion is expanded, and the attention is also shifted from the inside to the more critical boundary. This may be due to the enhancement of global features at the bottleneck and the mining of potential boundary perception features.
[0096] The interaction of the above modules ultimately helps the classifier to generate more lesion perception and extract distinctive features from complex and varied lesions. In addition, it is not difficult to find that these perception areas are similar to the ground truth segmentation masks, which indicates that the final segmentation performance is perfect and accurate. Therefore, it is believed that the proposed LRFE-UNet can not only perceive the internal composition of the lesion (such as heterogeneous, cystic or solid), but also pay attention to the shape of the lesion (such as boundary, regular or irregular) and the representative features around the boundary (such as blur, noise or smoothness), which are very important for BUS image segmentation.
[0097] 4. Comparative experiment
[0098] 4.1 Quantitative analysis
[0099] To further verify the effectiveness of the LRFE-UNet designed in this invention on breast ultrasound images, comparative experiments were conducted on three challenging datasets from quantitative and qualitative perspectives with U-Net, U-Net++, Att-UNet, DeepLabV3+, Trans-UNet, MDA-Net, UC-TransNet, BPAT-UNet and CTO. Tables 3-5 show the quantitative experimental results, which are presented in the form of mean and standard deviation, with the best results shown in bold.
[0100] Table 3 Quantitative comparison of LRFE-UNet with other state-of-the-art methods on Dataset A
[0101]
[0102] Table 4 Quantitative comparison of LRFE-UNet with other state-of-the-art methods on Dataset B
[0103]
[0104] Table 5 Quantitative comparison of LRFE-UNet with other state-of-the-art methods on Dataset C
[0105]
[0106] Table 3 shows the experimental results of Dataset A. It can be found that LRFE-UNet has achieved the best values in all key indicators. Specifically, LRFE-UNet achieved 83.23%, 75.14%, 96.63% and 84.93% in comprehensive indicators such as Dice, IoU, accuracy and F1-score, respectively. Compared with the second-best BPAT-UNet, LRFE-UNet improved by 3.86% (70.37% vs. 83.23%), 4.68% (70.46% vs. 75.14%), 1.15 (95.48% vs. 96.63%) and 4.19% (80.74% vs. 84.93%). In addition, the recall and precision of LRFE-UNet reached 85.65% and 84.10% respectively, which are two evaluation indicators for evaluating segmentation targets and segmentation backgrounds. Compared with other models, LRFE-UNet improves by 6.95% (78.70% vs. 85.65%) and 4.52% (79.58% vs. 84.10%) on average, highlighting its good adaptability to segmentation lesions. Finally, in terms of the segmentation boundary evaluation index HD95, LRFE-UNet reaches 15.66, which is an average improvement of 9.16 (24.82 vs. 15.66) compared with other models.
[0107] As can be seen from Table 4, all indicators of LRFE-UNet on Dataset B also reach the optimal value. Compared with pure convolutional neural networks such as U-Net, U-Net++, Att-UNet, DeepLabV3+, and MDA-Net, LRFE-UNet has an average improvement of 11.18% (74.75% vs. 85.93%), 13.35% (64.87% vs. 78.22%), and 9.59% (77.99% vs. 87.58%) in Dice, IoU, and F1-score, respectively, and performs outstandingly in comprehensive evaluation indicators. Compared with hybrid networks combined with ViT such as Trans-UNet, UC-TransNet, BPAT-UNet and CTO, LRFE-UNet improved by 7.33 (17.84 vs. 10.51), 6.37 (16.88 vs. 10.51), 14.71 (25.22 vs. 10.51) and 6.04 (16.55 vs. 10.51) on HD95, respectively, once again highlighting the sensitivity of LRFE-UNet at the lesion boundary.
[0108] As shown in Table 5. On Dataset C, LRFE-UNet still performs well compared with other methods. On the one hand, judging from the results of both recall and precision, the model achieved the best results in segmenting both lesions and backgrounds without sacrificing the accuracy of background segmentation. In addition, the Dice and F1-scores of LRFE-UNet, BPAT-UNet, UC-TransNet, and DeepLabV3+ are the same, which is theoretically possible when the true positive in each segmentation case is not zero. This shows that all four models can accurately segment the lesions in each case. In contrast, LRFE-UNet has the best segmentation performance in each case.
[0109] It should be noted that the results in Tables 3, 4, and 5 show different segmentation effects on different datasets. First, all models showed better segmentation results on Dataset C. For example, U-Net achieved a segmentation effect of 89.17% on Dice, and the average indicator was improved by 19.05% (70.12% vs. 89.17%) compared with the other two datasets. Secondly, DeepLabV3+ has suboptimal segmentation performance on Dataset B, but on Dataset A, DeepLabV3+'s Dice ranks only fourth, with a significant gap, and the same is true for other models. This also shows that many models are difficult to adapt to the segmentation tasks of multi-center datasets. Finally, compared with other models, LRFE-UNet achieves satisfactory segmentation boundaries, further demonstrating its high performance and stability.
[0110] 4.2 Qualitative analysis
[0111] In order to further verify the versatility of the model proposed in this paper for breast lesion segmentation tasks, four lesion segmentation samples of different sizes were randomly selected from each data set for visualization analysis. Figure 5-Figure 7 For the qualitative experimental results, the blue and red contours represent the ground truth and segmentation results, respectively.
[0112] Figure 5The visual comparison of LRFE-UNet with other advanced methods on Dataset A is shown. It can be intuitively found that LRFE-UNet shows excellent segmentation effects on samples of small, medium and large breast lesions. On the one hand, in the small breast lesion segmentation samples (first row), due to the complex anatomical structure of breast tissue, U-Net, U-Net++, Att-UNet, UC-TransNet and CTO have obvious mis-segmentation, mistaking normal tissue for breast lesions. In the medium breast lesion segmentation samples (third row), a strong echo structure similar to the capsule is displayed outside the lesion area. Only the LRFE-UNet designed by the present invention correctly segments the lesion area; while U-Net, U-Net++ and Att-UNet all have complete missed segmentation and fail to detect the lesion area; although Trans-UNet, BPAT-Net and CTO have determined the segmentation area, there are also different degrees of missed segmentation, especially the inaccurate segmentation of the left area of the lesion.
[0113] Figure 6 The good segmentation effect of LRFE-UNet on Dataset B is intuitively demonstrated. For the different lesion locations of the four samples, other models have a certain degree of mis-segmentation and missed segmentation, while the models designed by the present invention have good adaptability. For example, in the samples in the first and third rows, U-Net, Att-UNet, MDA-Net and CTO have a certain degree of missed segmentation and fail to completely segment the lesion area. In the more complex lesion area segmentation samples in the fourth row, although the breast is accompanied by fibrous deformation to form cystic nodules, showing a false boundary phenomenon, LRFE-UNet still shows a good segmentation effect in the area to the right of the lesion. In contrast, U-Net, UNet++, UC-TransNet and BPAT-UNet have missed segmentation, and Att-UNet has obvious mis-segmentation.
[0114] Figure 7The visual comparison results with other models on Dataset C are shown in Figure 5. On the one hand, consistent with the conclusions in Table 5, U-Net, Att-UNet, U-Net++ and MDA-Net failed to detect the lesion area in the small breast lesion segmentation sample (first row), while LRFE-UNet, BPAT-UNet, UC-TransNet and DeepLabV3+ all correctly segmented the lesion area, among which LRFE-UNet is the most accurate model for lesion area segmentation, and the other models all have mis-segmentation. On the other hand, in the sample with large ultrasonic noise particles (fourth row), only LRFE-UNet designed by the present invention shows a relatively accurate segmentation effect, while other models such as Trans-UNet, MDA-Net, UC-TransNet and BPAT-Net have obvious mis-segmentation on the left side of the lesion area.
[0115] 4.3 Robustness Experiment
[0116] 4.3.1 Robustness experiments on benign and malignant lesions
[0117] In order to evaluate the generalization performance of the model, the benign and malignant cases from the three datasets were classified to form two new datasets: Dataset D (Benign) and Dataset E (Malignant). Among them, Dataset D contains 852 benign BUS images and corresponding segmentation masks, while Dataset E contains 520 malignant BUS images and their corresponding segmentation masks. This post-classification processing allows for a deeper exploration of the model's effect on the segmentation of benign and malignant BUS images in multi-source data centers, which is conducive to discovering potential deficiencies of the model, thereby improving the segmentation performance of the model on the overall BUS image. The specific results are shown in Tables 6 and 7.
[0118] Table 6 Segmentation results of the proposed method for benign (Dataset D) lesion samples (mean ± standard deviation)
[0119]
[0120] Table 7 Segmentation results of the proposed method for malignant lesion samples (Dataset E) (mean ± standard deviation)
[0121]
[0122]
[0123] Two key points can be observed from Tables 6 and 7. On the one hand, most models perform significantly better on benign lesions than on malignant lesions. Generally speaking, malignant lesions have larger sizes, more irregular shapes, and blurred boundaries than benign lesions. In addition, the grayscale differences of malignant lesions are usually more blurred, making the segmentation task of malignant lesions relatively more complex. Therefore, the segmentation of malignant lesions is often more challenging than that of benign lesions.
[0124] On the other hand, the LRFE-UNet proposed in the present invention not only achieved the best results in the segmentation of two categories of lesions, but also showed good adaptability to different data distributions. Specifically, the Dice, IoU and F1-Score of LRFE-UNet in malignant cases reached 84.99%, 76.88% and 85.49%, respectively, and in benign cases reached 88.73%, 82.13% and 89.57%, respectively. The gap between the two is 3.74%, 5.25% and 4.08%, respectively, indicating that the model fully exploits the feature differences between different cases. This result shows that LRFE-UNet not only has excellent generalization ability when dealing with medical image segmentation tasks, but also can better cope with the segmentation problems of different types of lesions.
[0125] 4.3.2 External Validation
[0126] In medical image analysis, dataset domain inconsistency is a critical issue, especially in the context of multi-center dataset evaluation. This problem usually leads to models that perform well on a single-center dataset but poorly on external-center datasets. In order to more comprehensively evaluate the performance of the proposed method and other competing methods, Dataset B and Dataset C are used as external validation sets to test the generalization ability of the model trained on Dataset A.
[0127] Table 8 Effect of the proposed method on the external validation set
[0128]
[0129] As can be seen from Table 8, LRFE-UNet shows the best results on both external central datasets compared with other methods. On Dataset B and Dataset C, the Dice coefficient reached 77.92% and 87.08%, respectively, which is 10.76% and 8.95% better than other models on average. It is worth mentioning that using the same training weights, the test results on Dataset C are significantly higher than those on Dataset B. This observation is also confirmed in Tables 4 and 5, that is, the difficulty of the lesion segmentation task on Dataset C is smaller than that on Dataset B. Although the performance of all methods showed a significant decline when performing external validation, it is worth noting that the performance of the proposed method is relatively small relative to the competing methods. This proves to some extent the robustness of the method for lesion segmentation in breast ultrasound images.
[0130] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.
Claims
1. A breast ultrasound image segmentation method with large receptive field attention enhancement, characterized in that: The steps include: Step 1: First, collect breast ultrasound images as training samples; Step 2: preprocessing the collected breast ultrasound images; Step 3: Send the preprocessed image into the LRFE-UNet network model for training and optimization; Step 4: Input the new breast ultrasound image into the optimization model and automatically output the accurate segmentation result of the lesion; The LRFE-UNet network model includes a large receptive field feature encoder LRFE. LRFE is based on the ConvNeXt model pre-trained on ImageNet. The last classifier layer of ConvNext is deleted, and only the first half of the network and the training weights are retained. LRFE includes an initialized Stem module and four encoding modules. The Stem module serves as the entrance of the network and performs preliminary feature extraction and dimensionality reduction on the input image. The four encoding modules stack different numbers of Conv-Blocks respectively. The Stem module serves as the entrance to the network. It consists of a 4×4 convolutional layer and a layer normalization layer LN. The stride of the convolutional layer is 4. The number of Conv-Blocks stacked in the four encoding modules are 3, 3, 27, and 3 respectively. Conv-Block replaces the traditional 3×3 convolutional layer with a 7×7 depth-separable convolutional layer. The feature maps output by LRFE are sent to two adaptive average pooling layers respectively. The encoding kernels of these two pooling layers are (H, 1) and (1, W), which capture the spatial vertical features and spatial horizontal features in the image respectively. Then, the spatial horizontal features are transposed and concatenated with the spatial vertical features to form a comprehensive spatial combination feature. The spatial combination feature is sent to the neural network structure of the basic convolution module to further encode and refine the spatial information, thereby generating spatial information weights. The spatial information weights are normalized to ensure that the weight of each channel is between 0 and 1, which is used to indicate the importance of the channel feature in the spatial information.
2. The method for breast ultrasound image segmentation with large receptive field attention enhancement according to claim 1, characterized in that: Conv-Block uses two layers of 1×1 convolution to adjust the number of channels.
3. The method for breast ultrasound image segmentation with large receptive field attention enhancement according to claim 2, characterized in that: Conv-Block uses layer normalization and Gaussian error linear unit GELU as the activation function.
4. The method for breast ultrasound image segmentation with large receptive field attention enhancement according to claim 3, characterized in that: In the downsampling process of the network, layer normalization and 2×2 convolutional layers with a stride of 2 are used to halve the size of the feature map and halve the number of channels, reducing the feature dimension and the number of network parameters.
5. The method for breast ultrasound image segmentation with large receptive field attention enhancement according to claim 1, characterized in that: The LRFE-UNet network model divides the bottleneck layer features into multiple sub-features and encodes the features using different patch sizes.
6. The method for breast ultrasound image segmentation with large receptive field attention enhancement according to claim 5, characterized in that: In view of the small features of the bottleneck layer of the U-shaped network, a single Transformer encoder is used in the bottleneck layer.
7. The method for breast ultrasound image segmentation with large receptive field attention enhancement according to claim 6, characterized in that: During the training process in step 3, a mixed loss function is introduced to enable the model to quantify and compensate for the difference between the predicted results and the true labels. The mixed loss value is represented by a weighted combination of the final output layer result loss, the three decoder output layer result losses, and the bottleneck layer output result loss. The formula is as follows: In the formula, α i Represents the loss function weight, set to a i =2 i ,i=0,1,2,3,4, L represents the mixed loss value, L i It represents the Dice loss function, which corresponds to the five loss values of the high-level network and the low-level network. The Dice loss function formula is as follows: Where N is the number of pixels, p i and i represent the predicted value and the true value respectively.
