Breast pathology image classification network and classification method based on residual attention distinguishing fusion network, computer equipment and storage medium

By introducing the SE residual fusion module and the dual-channel residual attention enhancement module into the breast pathology image classification network, combined with the category distinction module, the problems of category imbalance and unclear feature information in breast pathology image classification are solved, and high-level performance is achieved. Accurate breast tissue pathology image classification.

CN118657978APending Publication Date: 2024-09-17HARBIN UNIV OF SCI & TECH
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410668495.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In the existing breast pathology image classification methods, the imbalance in the number of benign and malignant categories and the unclear performance of feature information lead to low classification accuracy, and the deep network structure leads to overfitting, making it difficult to effectively distinguish breast pathology images.

Method used

The Breast Pathology Image Classification Network based on ResNet50 is used, combined with the SE residual fusion module, dual-channel residual attention enhancement module and category differentiation module. By strengthening channel and spatial features, it suppresses irrelevant features, reduces the loss of important features, and enhances pathological feature extraction. and the ability to differentiate.

Benefits of technology

It improves the classification accuracy of pathological images of breast tissue, maintains high classification accuracy under different magnifications, and improves the ability to accurately acquire and distinguish pathological image features.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure HDA0004861907600000011
    Figure HDA0004861907600000011
  • Figure HDA0004861907600000033
    Figure HDA0004861907600000033
  • Figure HDA0004861907600000021
    Figure HDA0004861907600000021
Patent Text Reader

Abstract

The invention discloses a mammary gland pathological image classification network based on a residual attention distinguishing fusion network, a classification method, computer equipment and a storage medium, belongs to the technical field of image processing, and solves the problems that mammary gland tissue pathological image feature information is not obvious in performance, breast cancer cells are similar to normal cell tissue forms, and image quality is poor. The problems that the network cannot effectively identify benign and malignant categories of the mammary gland pathological image and the categories are not obviously distinguished are solved. According to the network, firstly, an SE residual fusion module is used for enhancing important features of a channel, and some irrelevant features are inhibited; secondly, channel and space important features are further enhanced through a double-path residual attention enhancement module, the loss degree of the important features is reduced, and the number of residual structure channels is increased so that feature information processed by each channel can be increased; and finally, respectively adding a category distinguishing module behind the four residual structures to obtain different levels of pathological features, fusing feature information, and distinguishing each category. The method is suitable for breast pathology image classification.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to breast pathology image classification. Background Art

[0002] Breast cancer is caused by the canceration of breast glandular or ductal epithelial cells. The tumor is very complex and difficult to prevent. Breast cancer is one of the most common cancers in women worldwide, and the incidence rate is increasing year by year. It is particularly important to accurately diagnose the patient in the early stage.

[0003] With the widespread application of deep learning in machine vision, it plays an increasingly important role in the field of medical imaging. Convolutional neural networks are widely used in image segmentation, classification, detection and other processing fields. They can greatly improve the accuracy of target classification, automatically learn image features and train general models, overcoming the shortcomings of manually extracting pathological features and time-consuming and laborious. Convolutional neural networks represented by ResNet have achieved good results in medical image classification tasks. With their unique residual structure, they have overcome the problems of network degradation and gradient disappearance caused by excessive network depth and excessive number of parameters. The attention mechanism enables the model to allocate important feature information in channels and spaces as much as possible, which improves the efficiency and performance of the model to a certain extent.

[0004] The deep learning-based breast pathology image method does not require manual intervention and greatly improves the classification speed of breast pathology images. However, the network structure of the deep learning model is often deep, making model training and network optimization relatively difficult. In addition, the model does not fully use the attention mechanism and extract feature information, ignoring the relationship between different feature channels, resulting in low accuracy in breast pathology image classification.

[0005] The breast tissue pathology image classification method based on deep learning can greatly improve the classification accuracy, but the network training is highly dependent on the amount of data. The imbalance between the number of benign and malignant categories and the deepening of the network layers may cause overfitting. In addition, the characteristic information of breast tissue pathology images is not obvious. The morphology of breast cancer cells and normal cell tissues is similar, making it impossible for the network to effectively identify the benign and malignant categories of breast pathology images, and the distinction between categories is not obvious. Summary of the invention

[0006] The purpose of the present invention is to solve the problems of imbalance in the number of existing benign and malignant categories, unclear characteristic information of breast tissue pathology images, and difficulty in distinguishing between benign and malignant categories. A breast pathology image classification network, classification method, computer device and storage medium based on residual attention discrimination fusion network are provided.

[0007] The present invention is achieved through the following technical solutions. On the one hand, the present invention provides a breast pathology image classification network based on a residual attention differentiation fusion network. The breast pathology image classification network uses ResNet50 as the main network architecture and also includes an SE residual fusion module, a dual-path residual attention enhancement module, a residual structure channel number and a category differentiation module.

[0008] The ResNet50 performs convolution operation on the image to extract shallow features;

[0009] The SE residual fusion module includes an SE module and a residual module, which is used to enhance important channel features of breast tissue pathology images and suppress irrelevant features;

[0010] The SE module is used to enhance the important channel features at the shortcut connection and suppress irrelevant features;

[0011] The residual module is used to extract deep features;

[0012] The dual-path residual attention enhancement module includes a residual channel enhancement module and a residual space enhancement module, which are used to enhance the channel and space features of breast tissue pathology images and reduce the loss of important features;

[0013] The residual channel enhancement module includes average pooling, three convolutional layers and a residual structure; the residual channel enhancement module is used to enhance the important features of the channel and reduce the degree of loss of important features;

[0014] The residual space enhancement module includes maximum pooling, two convolutional layers and a residual structure; the residual space enhancement module is used to enhance important spatial features and reduce the degree of loss of important features;

[0015] The number of residual structure channels is used to increase the feature information processed by each channel;

[0016] The category distinction module is used to fuse features at different levels and distinguish between categories;

[0017] The breast pathology image classification network is trained to obtain the loss function of the classification network; according to the loss function, a preset number of iterations of training are performed to obtain the optimal residual attention differentiation fusion network model.

[0018] In a preferred embodiment of the present invention, the ResNet50 includes a residual structure.

[0019] In a preferred embodiment of the present invention, the SE module consists of a global average pooling layer, a fully connected layer, a ReLu activation function, a fully connected layer and a Sigmoid activation function.

[0020] In a preferred embodiment of the present invention, the residual structure is composed of a residual module, the residual module includes a main branch and a residual branch, the main branch is composed of two groups of serially connected convolutional layers and batch normalization, and one group of convolutional layers, batch normalization and ReLu activation function.

[0021] In a preferred embodiment of the present invention, the residual channel enhancement module is composed of average pooling, convolutions with kernel sizes of 1×1, 3×3 and 1×1, and shortcut connections.

[0022] In a preferred embodiment of the present invention, the residual space enhancement module is composed of maximum pooling, convolutions with kernel sizes of 7×7 and 1×1, and shortcut connections.

[0023] In a preferred embodiment of the present invention, the category differentiation module is composed of a convolution with a convolution kernel size of 3×3, batch normalization, maximum pooling, global average pooling and a Softmax layer.

[0024] In a second aspect, the present invention provides a breast pathology image classification method based on a residual attention differentiation fusion classification network, the method comprising:

[0025] Step 1, obtaining breast tissue pathology images;

[0026] Step 2: Input the breast tissue pathology image into a breast pathology image classification network based on the residual attention differentiation fusion classification network as described above to obtain the classification result of the breast tissue pathology image.

[0027] In a third aspect, the present invention provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor runs the computer program stored in the memory, a method as described above is performed.

[0028] Steps of a breast pathology image classification method based on a residual attention discriminative fusion classification network.

[0029] In a fourth aspect, the present invention provides a computer-readable storage medium, wherein a plurality of computer instructions are stored in the computer-readable storage medium, and the plurality of computer instructions are used to enable a computer to execute a breast pathology image classification method based on a residual attention differentiation fusion classification network as described above.

[0030] Beneficial effects of the present invention:

[0031] This paper proposes a convolutional neural network model (RADF-Net) for breast pathology image classification based on residual attention differentiation fusion. The network proposed in this paper can strengthen important features in both channel and spatial dimensions, suppress irrelevant features, reduce the loss of important features, fuse pathological features at different levels, and distinguish various categories.

[0032] Firstly, the SE residual fusion module (SERFM) is used to strengthen the important channel features of shallow features and suppress irrelevant features. The dual-path residual attention enhancement module (DRAEM) is used to further strengthen the important features from the channel and space dimensions, reduce the loss of important features, increase the number of channels of the residual structure, and increase the amount of channel processing feature information.

[0033] Secondly, the category distinction module is used to add the pathological features at different levels and fuse the pathological features at different levels to distinguish each category.

[0034] The present invention discloses a residual attention differentiation fusion classification network (RADF-Net), which can improve the classification accuracy of breast tissue pathology images and accurately obtain pathology image features. The network uses residual structure, channel and spatial attention, and category differentiation to enhance the classification of breast pathology images. Based on the network proposed by the present invention, the test was carried out on the BreakHis data set with 40X, 100X, 200X, and 400X magnification factors, and the accuracy of the four magnifications was 97.60%, 96.08%, 93.86%, and 93.81%, respectively.

[0035] The present invention is applicable to the classification of breast tissue pathology images. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the technical solution of the present application, the drawings required for use in the embodiments are briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0037] Figure 1 A schematic diagram of a residual attention-based distinguishing fusion network model of the present invention;

[0038] Figure 2 Schematic diagram of the structure of the SE residual fusion module of the present invention;

[0039] Figure 3 Schematic diagram of the structure of the dual-path residual attention enhancement module of the present invention;

[0040] Figure 4 It is a structural schematic diagram of the number of residual structure channels of the present invention;

[0041] Figure 5 It is a structural schematic diagram of the category differentiation module of the present invention;

[0042] Figure 6 It is the image of BreakHis dataset;

[0043] Figure 7 ROC curves for the test data set using different classification algorithms.

[0044] Figure 8 The training loss function curves for two loss functions and four magnification factors. ; DETAILED DESCRIPTION

[0045] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present invention, and should not be construed as limiting the present invention.

[0046] The present invention adopts the ResNet50 network as the basic classification network. Due to its unique residual structure, it overcomes the network degradation and gradient vanishing problems caused by too deep a network and too many parameters, and can retain the original feature information through shortcut connections.

[0047] Implementation method 1: A breast pathology image classification network based on a residual attention differentiation fusion network, wherein the breast pathology image classification network uses ResNet50 as the main network architecture, and also includes an SE residual fusion module, a dual-path residual attention enhancement module, a residual structure channel number and a category differentiation module.

[0048] The ResNet50 performs convolution operation on the image to extract shallow features;

[0049] The SE residual fusion module includes an SE module and a residual module, which is used to enhance important channel features of breast tissue pathology images and suppress irrelevant features;

[0050] The SE module is used to enhance the important channel features at the shortcut connection and suppress irrelevant features;

[0051] The residual module is used to extract deep features;

[0052] The dual-path residual attention enhancement module includes a residual channel enhancement module and a residual space enhancement module, which are used to enhance the channel and space features of breast tissue pathology images and reduce the loss of important features;

[0053] The residual channel enhancement module includes average pooling, three convolutional layers and a residual structure; the residual channel enhancement module is used to enhance the important features of the channel and reduce the degree of loss of important features;

[0054] The residual space enhancement module includes maximum pooling, two convolutional layers and a residual structure; the residual space enhancement module is used to enhance important spatial features and reduce the degree of loss of important features;

[0055] The number of residual structure channels is used to increase the feature information processed by each channel;

[0056] The category distinction module is used to fuse features at different levels and distinguish between categories;

[0057] The breast pathology image classification network is trained to obtain the loss function of the classification network; according to the loss function, a preset number of iterations of training are performed to obtain the optimal residual attention differentiation fusion network model.

[0058] It should be noted that by setting the number of iterations, training is performed for a certain number of iterations, and the result model is saved after one training is completed, and the next training is started. The results of each training are compared and the optimal model (the residual attention differentiation fusion network model) is saved.

[0059] In this implementation, first of all, considering that the characteristic information of breast tissue pathology images is not obvious on the surface, the important features of the image are strengthened from the channel dimension, so the SE residual fusion module is introduced. On the one hand, by adjusting the channel weight size, the important channel features are strengthened and irrelevant features are suppressed. On the other hand, deep features are extracted through the convolution layer. In order to further strengthen the important features from the two dimensions of channel and space, a two-way residual attention enhancement module is introduced to reduce the degree of loss of important features through single pooling, convolution operation and residual structure. Increasing the number of channels of the residual structure increases the amount of feature information processed by each channel, thereby improving the network training effect.

[0060] Secondly, the category distinction module is used to distinguish each category by adding the pathological features at different levels and fusing the pathological features at different levels to distinguish each category.

[0061] Finally, this implementation uses the loss function for training, deepens the learning of difficult classification, reduces over-learning of easy classification samples, balances the weights of difficult and easy classification samples, further distinguishes each category, and thus improves the classification accuracy of the model for breast tissue pathology images.

[0062] Embodiment 2: This embodiment further limits the breast pathology image classification network based on residual attention differentiation fusion network described in embodiment 1. In this embodiment, the SE residual fusion module is further limited, specifically including:

[0063] The SE residual fusion module includes an SE module and a residual module;

[0064] The SE module first performs compression operation through the global average pooling layer at the shortcut connection of the residual module to enlarge the receptive field area, then establishes the correlation between feature channels through two fully connected layers, predicts the importance of each channel, and then adjusts the channel weight through the Sogmoid activation function to complete the excitation operation. Finally, the Scale function is used to weight the input feature map channel by channel through multiplication, and the original features are recalibrated in the channel dimension.

[0065] The residual module first passes through a convolution layer with a convolution kernel size of 1×1 to reduce the dimension of the feature map, then passes through a convolution layer with a convolution kernel size of 3×3 to perform deep feature extraction on the feature map, and then passes through a convolution layer with a convolution kernel size of 1×1 to increase the dimension of the feature map to ensure that the number of channels is consistent with the input feature map. Finally, the output result of the SE module at the shortcut connection is added to the output result of the three convolution layers of the residual module to obtain the final output feature map.

[0066] In this embodiment, the SE module is introduced into the shortcut connection of the residual module, which can enhance the important channel features of the shortcut connection.

[0067] Implementation method three: This implementation method further limits the breast pathology image classification network based on the residual attention differentiation fusion network described in implementation method two. In this implementation method, the dual-path residual attention enhancement module is further limited, specifically including:

[0068] The dual-path residual attention enhancement module includes a residual channel enhancement module and a residual space enhancement module;

[0069] The residual channel enhancement module first calculates the average eigenvalue of each channel by average pooling, aggregates the spatial information of the feature map into a channel identifier, and then passes through three convolutional layers of 1×1, 3×3 and 1×1 to effectively extract local features in the image, and can increase the receptive field range of the model while keeping the size of the feature map unchanged, enhance the expression ability of the network, and then generates a channel attention map by standardization operation through the Sigmoid activation function, fuses the input feature map and the channel attention map through the residual structure, and then multiplies it bit by bit with the input feature map to obtain the final channel attention feature map, so as to reduce the loss of input feature map information, better retain the information of the input feature map, and further enhance important features in the channel dimension.

[0070] The residual space enhancement module first extracts and samples the local maximum value in the feature map through maximum pooling, reduces the dimension of the feature map, retains the main information in the feature map, explores the spatial relationship between the local areas of the feature map, aggregates the channel information into a spatial identifier, and then passes through two convolutional layers of 7×7 and 1×1 to convolve the feature map to capture a larger receptive field. The network can better understand the relationship and interaction between different positions in the input feature map, and then generates a spatial attention map by standardization operation through the Sigmoid activation function. The input feature map and the spatial attention map are fused through the residual structure, and then multiplied bit by bit with the input feature map to obtain the final spatial attention feature map, so as to reduce the loss of input feature map information and strengthen important features in the spatial dimension.

[0071] In this implementation, in order to reduce the loss of important feature information, single pooling is used instead of double pooling in the residual channel module and the residual space module, and convolution and residual structures are introduced at the same time to reduce the loss of important features and further enhance important features in the channel and spatial dimensions. The structure diagram of the dual-path residual attention enhancement module is shown in Figure 3 shown.

[0072] Embodiment 4: This embodiment further limits the breast pathology image classification network based on the residual attention differentiation fusion network described in embodiment 3. In this embodiment, the execution steps of the dual-path residual attention enhancement module are further limited, specifically including:

[0073] The output of the residual module is used as the input of the residual channel enhancement module, and the channel attention feature map is obtained through the residual channel enhancement module

[0074] The channel attention feature map Through the residual space enhancement module, we get the spatial attention feature map

[0075] Embodiment 5: This embodiment further limits the breast pathology image classification network based on the residual attention differentiation fusion network described in embodiment 4. In this embodiment, the execution steps of the residual channel enhancement module are further limited, specifically including:

[0076] The output of the residual module is used as the input of the residual channel enhancement module, and the spatial information of the feature map is aggregated into a channel identifier I through average pooling. c ;

[0077] The channel identifier I cThe channel attention map F is obtained through three convolutional layers and Sigmoid activation function. c ;

[0078] The channel attention map F c The information is fused with the input feature map through the residual structure, and then multiplied with the input feature map bit by bit to obtain the final channel attention feature map

[0079] Embodiment 6: This embodiment further limits the breast pathology image classification network based on the residual attention differentiation fusion network described in embodiment 4. In this embodiment, the execution steps of the residual space enhancement module are further limited, specifically including:

[0080] The output of the residual channel enhancement module is used as the input of the residual space enhancement module, and the channel information of the feature map is aggregated into a space identifier I through maximum pooling. s ;

[0081] The space identifier I s The spatial attention map F is obtained through two convolutional layers and Sigmoid activation function. s ;

[0082] The spatial attention map F s The information is fused with the input feature map through the residual structure, and then multiplied with the input feature map bit by bit to obtain the final spatial attention feature map

[0083] This embodiment provides a specific method for executing the steps of the dual-path residual attention enhancement module.

[0084] Embodiment 7: This embodiment further limits the breast pathology image classification network based on residual attention differentiation fusion network described in Embodiment 5. In this embodiment, the channel attention map F is obtained. c Further restrictions have been made, including:

[0085] The calculation formula of the channel attention map is as follows:

[0086] F c =σ[W3(L(W2(L(W1I c )))))]

[0087] Among them, I c is the channel identifier, σ is Sigmoid, L(.) is ReLU, W2∈R c×c and are the weights after three convolutions.

[0088] This embodiment gives a channel attention map F c Method of obtaining .

[0089] Embodiment 8: This embodiment further limits the breast pathology image classification network based on residual attention differentiation fusion network described in embodiment 5. In this embodiment, the channel attention feature map is obtained. Further restrictions have been made, including:

[0090] The calculation formula of the channel attention feature map is as follows:

[0091]

[0092] Among them, F is the input feature map, is bitwise multiplication.

[0093] This implementation gives a channel attention feature map Method of obtaining .

[0094] Embodiment 9: This embodiment further limits the breast pathology image classification network based on residual attention differentiation fusion network described in embodiment 6. In this embodiment, the spatial attention map F is obtained. s Further restrictions have been made, including:

[0095] The calculation formula of the spatial attention map is as follows:

[0096] F s =σ(L(Conv 7×7 (I s )))

[0097] Among them, I s is the space identifier, σ is the sigmoid activation function, Conv 7×7 It is a 7×7 convolution operation.

[0098] This embodiment gives a spatial attention map F s Method of obtaining .

[0099] Embodiment 10: This embodiment further limits the breast pathology image classification network based on residual attention differentiation fusion network described in embodiment 6. In this embodiment, the spatial attention feature map is obtained. Further restrictions have been made, including:

[0100] The calculation formula of the spatial attention feature map is as follows:

[0101]

[0102] Among them, F is the input feature map, is bitwise multiplication.

[0103] This implementation gives a spatial attention map Method of obtaining .

[0104] Embodiment eleven: This embodiment further limits the breast pathology image classification network based on the residual attention differentiation fusion network described in embodiment two. In this embodiment, the number of channels of the residual structure is further limited, specifically including:

[0105] The residual structure includes two residual modules;

[0106] The residual module includes first, second and third convolutional layers;

[0107] The first convolutional layer includes 1×1 convolution and batch normalization, and the number of channels is 64;

[0108] The second convolutional layer includes 3×3 convolution and batch normalization, and the number of channels is 64;

[0109] The third convolutional layer includes 1×1 convolution, batch normalization and ReLU activation function, and the number of channels is 256;

[0110] In this embodiment, the convolution channels of each layer of the two residual modules are doubled from 64 to 128 and from 256 to 512. The network can better learn the feature representation of pathological images and extract richer shallow pathological features. Each channel can process more feature information, which can improve the classification performance of the network.

[0111] Embodiment 12: This embodiment further limits the breast pathology image classification network based on the residual attention differentiation fusion network described in embodiment 2. In this embodiment, the category differentiation module is further limited, specifically including:

[0112] The category differentiation module first extracts local features through convolution with a kernel size of 3×3 and batch normalization, and then enhances the model's expressiveness through the ReLU activation function, extracts global features through the global average pooling layer, reduces the dimension, and finally converts the output into a probability distribution representing the category probability through the Softmax layer, which helps the model to effectively extract features, represent learning, and distinguish categories. The four category differentiation modules are added behind the four to extract pathological feature information at different layers.

[0113] In this embodiment, the extracted pathological characteristic information at different levels is added together to fuse the information at different levels and distinguish the categories.

[0114] Embodiment 13: This embodiment is an example of the present invention, and specifically includes:

[0115] 1. The overall framework of a breast pathology image classification network based on residual attention differentiation fusion network is:

[0116] This embodiment uses the ResNet50 network as the basic classification network. Due to its unique residual structure, it overcomes the network degradation and gradient disappearance problems caused by too deep a network and too many parameters, and can retain the original feature information through shortcut connections.

[0117] like Figure 1 As shown, this embodiment proposes a convolutional neural network model (RADF-Net) for breast pathology image classification based on residual attention differentiation fusion. The network proposed in this embodiment can strengthen important features in both channel and spatial dimensions, suppress irrelevant features, reduce the loss of important features, integrate pathological features at different levels, and distinguish various categories.

[0118] First, the SE residual fusion module is used to enhance the important pathological features of the channel and suppress some irrelevant features.

[0119] Secondly, the dual-path residual attention enhancement module is used to enhance important pathological features from both spatial and channel dimensions, reduce the degree of loss of important features, increase the number of channels in the residual structure, and increase the feature information processed by each channel.

[0120] Finally, the pathological features at different levels are fused through the category discrimination module to distinguish each category.

[0121] 2. SE residual fusion module

[0122] This embodiment creates a SE residual fusion module (SERFM) to enhance the important pathological features of the channel and suppress some irrelevant features. Considering that the characteristic information of breast pathology images is not obvious, the classification network has a weak ability to extract pathological features, which will result in low classification accuracy. Therefore, the pathological features are strengthened from the channel dimension.

[0123] By introducing the SE module into the residual module, compression and excitation operations are introduced, and the importance of channel features is adjusted by weight size, thereby strengthening the important channel features at the shortcut links of the residual module and suppressing irrelevant features.

[0124] like Figure 2As shown in the figure, the SE residual fusion module (SERFM) consists of two parts. The first part is the SE module at the shortcut link. The SE module consists of a global average pooling layer, a fully connected layer, ReLU and a Sigmoid function to enhance the important features of the channel and suppress some irrelevant features. The second part consists of three convolutional layers. The first layer consists of a 1×1 convolution and a BN layer, the second layer consists of a 3×3 convolution and a BN layer, and Conv3 consists of a 1×1 convolution, a BN layer and ReLU, which are used to extract deep features. Finally, the output results of the two parts are added.

[0125] 3. Dual-path residual attention enhancement module

[0126] This embodiment creates a dual-channel residual attention enhancement module (DRAEM) to further enhance the important features of space and channels and reduce the loss of important features. Figure 3 shown.

[0127] In the residual channel enhancement module, the average eigenvalue of each channel is calculated by average pooling, and then three convolution layers of 1×1, 3×3 and 1×1 are passed to effectively extract local features in the image. It can also increase the receptive field of the model while keeping the size of the feature map unchanged, enhance the expression ability of the network, and then generate a channel attention map by standardization operation through the Sigmoid activation function. The input feature map and the channel attention map are fused through the residual structure, and then multiplied bit by bit with the input feature map to obtain the final channel attention feature map, so as to reduce the loss of input feature map information, better retain the information of the input feature map, and further strengthen important features in the channel dimension.

[0128] In the residual space enhancement module, the local maximum value in the feature map is extracted and sampled through maximum pooling to reduce the dimension of the feature map and retain the main information in the feature map. Then, the feature map is convolved through two convolutional layers of 7×7 and 1×1 to capture a larger receptive field. The spatial attention map is then standardized through the Sigmoid activation function to generate the spatial attention map. The input feature map and the spatial attention map are fused through the residual structure and then bitwise multiplied with the input feature map to obtain the final spatial attention feature map, so as to reduce the loss of input feature map information and enhance important features in the spatial dimension.

[0129] The execution steps of the dual-path residual attention enhancement module are as follows: the output of the second residual module is used as the input of the residual channel enhancement module, and the spatial information of the feature map is aggregated into a channel identifier I through average pooling. c, and then through three layers of convolutional layers and Sigmoid activation function to obtain the channel attention map F c , Formula (1) gives the channel attention map calculation formula.

[0130] F c =σ[W3(L(W2(L(W1I c ))))](1)

[0131] where F c is the channel attention map, I c is the channel identifier, σ is Sigmoid, L(.) is ReLU, W2∈R c×c and are the weights after three convolutions.

[0132] The obtained channel attention map F c The information is fused with the input feature map F through the residual structure, and then multiplied with the input feature map bit by bit to obtain the final channel attention feature map Formula (2) gives the calculation formula of the channel attention feature map.

[0133]

[0134] in is the channel attention feature map, F c is the channel attention map, F is the input feature map, is bitwise multiplication.

[0135] The obtained channel attention feature map As the input of the residual space enhancement module, the channel information of the feature map is aggregated into a spatial identifier I through maximum pooling. s , and then through two layers of convolutional layers and Sigmoid activation function to obtain the spatial attention map F s , Formula (3) gives the calculation formula for the spatial attention map.

[0136] F s =σ(L(Conv 7×7 (I s )))(3)

[0137] where F s is the spatial attention map, I s is the space identifier, σ is the sigmoid activation function, Conv 7×7 It is a 7×7 convolution operation.

[0138] The obtained spatial attention map F sThe information is fused with the input feature map through the residual structure, and then multiplied with the input feature map bit by bit to obtain the final spatial attention feature map Formula (4) gives the calculation formula for the spatial attention feature map.

[0139]

[0140] in Spatial attention feature map, F s is the spatial attention map, F is the input feature map, is bitwise multiplication.

[0141] 4. Number of residual structure channels

[0142] The residual structure consists of two residual modules. The structure diagram of the residual module is as follows: Figure 4 As shown in the figure, a) is the structural diagram of the basic residual module, and b) is the structural diagram of the residual module after increasing the number of channels. The residual module is mainly composed of three convolutional layers and shortcut connections. The first convolutional layer includes 1×1 convolution and batch normalization, with 64 channels. The second convolutional layer includes 3×3 convolution and batch normalization, with 64 channels. The third convolutional layer includes 1×1 convolution, batch normalization and ReLU activation function, with 256 channels. The convolution channels of each layer of the two residual modules are doubled from 64 to 128 and from 256 to 512. The network can better learn the feature representation of pathological images and extract richer shallow pathological features. Each channel can process more feature information, which can improve the classification performance of the network.

[0143] 5. Category Distinction Module

[0144] This embodiment creates a Category Differentiation Module (CDM) for fusing pathological feature information at different levels to distinguish various categories.

[0145] like Figure 5 As shown in the figure, a) is the structural diagram of the category differentiation module, which consists of a convolution with a convolution kernel size of 3×3, batch normalization, ReLU activation function, a global average pooling layer and a Softmax layer. The Softmax layer converts the output into a probability distribution representing the category probability, which helps the model to effectively extract features, represent learning and distinguish categories. The four category differentiation modules are added behind the four to extract pathological feature information at different layers. b) is the overall structural diagram of the four category differentiation modules.

[0146] Embodiment 14, a breast pathology image classification method based on residual attention differentiation fusion network, the method comprising:

[0147] Step 1, obtaining breast pathology images;

[0148] Step 2: Input the breast pathology image into a breast pathology image classification network based on a residual attention differentiation fusion network as described in any one of embodiments 1 to 13 to obtain a classification result of the breast pathology image.

[0149] The classification method in this embodiment includes: (1) SE residual fusion module is used to enhance important channel features and suppress some irrelevant features; (2) dual-path residual attention enhancement module is used to further enhance important channel and spatial features and reduce the degree of loss of important features; (3) increasing the number of residual structure channels is used to increase the feature information processed by each channel; (4) category distinction module is used to distinguish between categories.

[0150] The following experiments are used to test the classification results of the breast pathology image classification network based on the residual attention differentiation fusion network of the present invention.

[0151] 1. Experimental data and parameter settings

[0152] The experimental data of the present invention is the Break His dataset collected by the Brazilian P&D Laboratory, which is stored in a red, green and blue three-channel (RGB) color space format with 700×460 pixels and contains four different magnifications (40X, 100X, 200X and 400X), a total of 7109 breast tumor tissue microscopic images and 2480 benign tumor tissue images. Figure 6 a) adenosis; b) fibroadenoma; c) tubular adenoma; d) phyllodes tumor; e) ductal carcinoma; f) lobular carcinoma; g) mucinous carcinoma; h) papillary carcinoma. The images were uniformly cropped to 224×224 size, and the data set was tenfold enhanced by rotation, mirroring, pixel translation and other operations. The data was randomly divided and combined into training set, validation set and test set in a ratio of 6:2:2.

[0153] Experimental parameter settings: input image is 224×224×3, Batch_Size is 32, initial learning rate is 0.0001, model optimizer is adaptive moment estimation (Adam), number of iterations is 200, and loss function uses adaptive mean loss function (AmeanLoss), as shown in formula (5).

[0154]

[0155] Where n is the total number of sample categories, β is the attenuation parameter, the larger the β, the greater the attenuation, p = [p0, ..., p c-1] is a probability distribution, p i represents the probability that the sample belongs to the i-th category, y=[y0,...,y c-1 ] is a one-hot encoding of the sample label, 1-p β It is an adaptive weight function with a domain and range of [0,1]. It gives a smaller weight to the loss of samples that are easy to classify correctly, and a larger weight to the loss of samples that are difficult to classify correctly, so as to achieve a balance between the loss of easy and difficult samples and guide the network to pay more attention to difficult samples. The hardware environment of the experiment is Intel(R) Xeon(R) 4216@2.10GHz, GeForce RTX 3070 graphics card, Ubuntu 20.04 operating system, Python 3.8 language, Pytorch framework.

[0156] 2. Evaluation indicators

[0157] In terms of classification result accuracy, the method of the present invention is compared with ResNet50, ResNet101, ResNet152, DenseNet121, Xception, and EfficientNet. The evaluation indicators include confusion matrix, accuracy, precision, recall, F1 score, receiver operating characteristic curve (ROC) and area under the curve (AUC). The calculation formulas of each evaluation indicator are shown in formulas 6-9.

[0158]

[0159]

[0160]

[0161]

[0162] Among them, TP is the number of true positive classes, FP is the number of false positive classes, FN is the number of false negative classes, TN is the number of true negative classes, the ROC curve is a curve drawn with the true positive rate as the ordinate and the false positive rate as the abscissa, and AUC represents the area under the ROC curve. The closer the AUC value is to 1, the better the performance of the classification algorithm.

[0163] 3. Results and Analysis

[0164] 2) Classification results analysis

[0165] By testing different classification networks, the ROC curves of the networks with different multiples of the four methods are obtained. The 1st to 7th networks are the ROC curves of ResNet50, ResNet101, ResNet152, DenseNet121, Xception, EfficientNet and RADF-Net using the cross entropy loss function, and the 8th network is the ROC curve result of the RADF-Net method of the present invention using the adaptive mean loss function. The ROC curve results are shown in FIG. Figure 7 As shown. Figure 7 It can be seen that at a magnification of 40X, the AUC value of RADF-Net is increased by about 0.29% to 3.62% compared with other classification networks, at a magnification of 100X, the AUC is increased by about 0.19% to 3.53%, at a magnification of 200X, the AUC is increased by about 0.38% to 3.70%, and at a magnification of 400X, the AUC is increased by about 0.18% to 3.44%. In addition, at four different magnifications, the ROC curve of RADF-Net is closer to the upper left corner than other networks, indicating that RADF-Net has higher sensitivity and lower misjudgment rate, indicating that the network model of the present invention combines SERFM and DRAEM to enhance pathological characteristics, and adds CDM after the four residual modules. Through CDM, feature information at different levels is fused to optimize classification performance. The AUC areas obtained by classification at four magnifications are higher than those of other classification networks.

[0166] Table 1 shows the classification results of the model of the present invention and other classification networks on the test set. It can be seen from Table 1 that the ACC obtained by RADF-Net at a magnification of 40X is improved by about 1.30% to 5.60% compared with other networks, the AUC is improved by about 0.72% to 3.13%, the P is improved by about 1.31% to 5.52%, the R is improved by 1.29% to 5.72%, and the F1 is improved by about 1.30% to 5.70%. Other multiple indicators are also improved to varying degrees. By comparing with other classification networks, it can be seen that in the classification indicators of ACC, AUC, P, R and F1, the performance indicators of other classification networks are not as good as RADF-Net, and the network of the present invention achieves overall high-precision classification.

[0167] Table 1 Comparison of the model of the present invention with other network models in classification

[0168]

[0169] Table 2 shows the classification results of the ablation experiment of the network of the present invention on the test set, which is used to verify the ability of the module to improve the classification accuracy. As can be seen from Table 2, compared with ResNet50, for 40X magnification, when SERFM is added alone, the effective features of the channel are enhanced and some irrelevant features are suppressed, and the ACC is increased by about 1.01%. When DRAEM and SERFM are added at the same time, the network can learn useful features and pay attention to the channel and spatial position, and the ACC is increased by about 2.37%. When CDM is added, the network can distinguish each category well, and the ACC is increased by about 4.43%. For 100X magnification, when SERFM is added alone, the ACC is increased by about 0.74%, and when DRAEM and SERFM are added at the same time, the ACC is increased by about 3.11%, and when CDM is added, the ACC is increased by about 6.32%. For 200X magnification, when SERFM is added alone, the ACC is increased by about 0.92%, and when DRAEM and SERFM are added at the same time, the ACC is increased by about 1.74%, and when CDM is added, the ACC is increased by about 5.13%. For 400X magnification, when SERFM is added alone, ACC increases by about 0.08%, when DRAEM and SERFM are added together, ACC increases by about 2.34%, ACC increases by about 2.99%, and when CDM is added, ACC increases by about 6.36%. The results show that the classification effect is gradually improved with the superposition of modules at the four magnifications.

[0170] Table 2 Classification ablation experiments

[0171]

[0172] In order to verify the effectiveness of the adaptive mean loss function, the network RADF-Net of the present invention is used as an experimental model, and the cross entropy loss function (Cross Entropy, CELoss) and the adaptive mean loss function (AmeanLoss) are used for network training respectively. The experimental results obtained are compared. Table 3 shows the comparison results. Figure 8The training loss function curves of two loss functions and four magnifications are given. It can be seen from Table 3 that under the four magnifications, the classification indicators obtained by using AmeanLoss are all better than those obtained by using CELoss. At 40X magnification, ACC, AUC, P, R, and F1 increased by about 1.04%, 0.58%, 0.96%, 0.99%, and 1.04%, respectively. At 100X magnification, ACC, AUC, P, R, and F1 increased by about 1.09%, 0.61%, 1.28%, 1.37%, and 1.37%, respectively. At 200X magnification, ACC, AUC, P, R, and F1 increased by about 1.59%, 0.85%, 1.50%, 1.52%, and 1.53%, respectively. At 400X magnification, ACC, AUC, P, R, and F1 increased by about 1.10%, 0.60%, 1.04%, 1.10%, and 1.10%, respectively. In addition, the standard deviation of each indicator also showed a decrease to varying degrees, indicating that AmeanLoss optimizes the iteration direction of model training by introducing dynamic weights to balance difficult and easy samples, so that the network can better optimize weights and extract key features of each category, thereby effectively distinguishing each category. Figure 8 a) to d) are the loss curves of the training data under 40X, 100X, 200X and 400X magnification respectively. The horizontal axis is the training epoch, and the vertical axis is the loss value. Figure 8 It can be seen that under the four magnification factors, the loss curve of the network trained with CELoss changes slowly after a rapid decline, with slight oscillations, while the loss curve of the network trained with AmeanLoss converges faster than CELoss, gradually declines from the beginning to the 50th Epoch, and finally stabilizes at the 75th Epoch. There are slight oscillations between the 75th and 125th Epochs, and finally the Loss value drops to the minimum and remains stable at the 150th Epoch. This shows that the network trained with AmeanLoss can extract more key features of each category and show good stability on different cross-validation training sets.

[0173] Table 3 Comparison of results of different loss functions

[0174]

[0175] The present invention proposes a residual attention differentiation fusion network RADF-Net for breast tissue pathology image classification tasks. The network uses ResNet50 as the baseline network, combines SERFM and DRAEM, strengthens the connection between the features of each channel, and then strengthens the effective features of the channel, suppresses some invalid features, and fuses different levels of pathological features through CDM to distinguish each category. AmeanLoss is used to balance the weights of difficult and easy samples to better distinguish each category. Experiments have shown that compared with previous classification networks, the method proposed in the present invention can more effectively improve the accuracy of classification results.

Claims

1. A breast pathology image classification network based on a residual attention differentiation fusion network, wherein the breast pathology image classification network uses ResNet50 as the backbone network architecture, and also includes an SE residual fusion module, a dual-path residual attention enhancement module, a residual structure channel number and a category differentiation module. The ResNet50 performs convolution operation on the image to extract shallow features; The SE residual fusion module includes an SE module and a residual module, which is used to enhance important channel features of breast tissue pathology images and suppress irrelevant features; The SE module is used to enhance the important channel features at the shortcut connection and suppress irrelevant features; The residual module is used to extract deep features; The dual-path residual attention enhancement module includes a residual channel enhancement module and a residual space enhancement module, which are used to enhance the channel and space features of breast tissue pathology images and reduce the loss of important features; The residual channel enhancement module includes average pooling, three convolutional layers and a residual structure; the residual channel enhancement module is used to enhance the important features of the channel and reduce the degree of loss of important features; The residual space enhancement module includes maximum pooling, two convolutional layers and a residual structure; the residual space enhancement module is used to enhance important spatial features and reduce the degree of loss of important features; The number of residual structure channels is used to increase the feature information processed by each channel; The category distinction module is used to fuse features at different levels and distinguish between categories; The breast pathology image classification network is trained to obtain the loss function of the classification network; according to the loss function, a preset number of iterations of training are performed to obtain the optimal residual attention differentiation fusion network model.

2. According to claim 1, a breast pathology image classification network based on residual attention differentiation fusion network is characterized in that: The ResNet50 also includes a residual structure. The residual structure is composed of a residual module, and the residual module includes a first, a second and a third convolutional layer; The first convolutional layer includes 1×1 convolution and batch normalization; The second convolutional layer includes 3×3 convolution and batch normalization; The third convolutional layer includes 1×1 convolution, batch normalization, and ReLU activation function.

3. According to claim 1, a breast pathology image classification network based on residual attention differentiation fusion network is characterized in that: The SE module consists of a global average pooling layer, a fully connected layer, a ReLu activation function, a fully connected layer and a Sigmoid activation function. The dual-path residual attention enhancement module includes a residual channel enhancement module and a residual space enhancement module. The residual channel enhancement module is composed of average pooling, convolutions with kernel sizes of 1×1, 3×3 and 1×1, and shortcut connections. The residual space enhancement module is composed of maximum pooling, convolutions with kernel sizes of 7×7 and 1×1, and shortcut connections. The category differentiation module is composed of a convolution with a convolution kernel size of 3×3, batch normalization, maximum pooling, global average pooling and a Softmax layer.

4. According to claim 3, a breast pathology image classification network based on residual attention differentiation fusion network is characterized in that: The dual-path residual attention enhancement module execution steps specifically include: The output of the second residual module is used as the input of the residual channel enhancement module, and the spatial information of the feature map is aggregated into a channel identifier I by average pooling. c , and then through three layers of convolutional layers and Sigmoid activation function to obtain the channel attention map F c ; The channel attention map F c The information is fused with the input feature map F through the residual structure, and then multiplied with the input feature map bit by bit to obtain the final channel attention feature map The channel attention feature map As the input of the residual space enhancement module, the channel information of the feature map is aggregated into a spatial identifier I through maximum pooling. s , and then through two layers of convolutional layers and Sigmoid activation function to obtain the spatial attention map F s ; The spatial attention map F s The information is fused with the input feature map through the residual structure, and then multiplied with the input feature map bit by bit to obtain the final spatial attention feature map 5. According to claim 3, a breast pathology image classification method based on residual attention differentiation fusion network is characterized in that: The channel attention map F is obtained c , specifically including: The calculation formula of the channel attention map is as follows: F c =σ[W3(L(W2(L(W1I c ))))] Among them, F c is the channel attention map, I c is the channel identifier, σ is Sigmoid, L(.) is the ReLU activation function, W2∈R c×c and are the weights after three convolutions. The calculation formula of the channel attention feature map is as follows: in, Channel attention feature map, F c is the channel attention map, F is the input feature map, is bitwise multiplication.

6. According to claim 3, a breast pathology image classification method based on residual attention differentiation fusion network is characterized in that: The spatial attention map F is obtained s , specifically including: The calculation formula of the spatial attention map is as follows: F s =σ(L(Conv 7×7 (I s ))) Among them, F s is the spatial attention map, I s is the space identifier, σ is the sigmoid activation function, L(.) is the ReLU activation function, Conv 7×7 It is a 7×7 convolution operation. The calculation formula of the spatial attention feature map is as follows: in, Spatial attention feature map, F s is the spatial attention map, F is the input feature map, is bitwise multiplication.

7. A breast pathology image classification method based on residual attention differentiation fusion network, characterized in that: The method comprises: Step 1, obtaining breast pathology images; Step 2: Input the breast pathology image into the breast pathology image classification network based on the residual attention differentiation fusion network as described in any one of claims 1 to 6 to obtain the classification result of the breast pathology image.

8. A computer device comprising a memory and a processor, wherein a computer program is stored in the memory, wherein: When the processor runs the computer program stored in the memory, the steps of the method according to any one of claims 1 to 7 are performed.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a plurality of computer instructions, and the plurality of computer instructions are used to enable a computer to execute the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Breast pathology image classification method based on improved CNN

    CN115760769A

  • Breast cancer pathological image classification device and method based on deep learning

    CN116524226A

  • Communication signal modulation classification method based on aggregation residual transformation network

    CN116628566A

  • MRI super-resolution based on residual attention mechanism

    CN118014837A

  • Expression recognition method based on attention-modulated contextual spatial information

    WO2023185243A1