Novel information entropy-based weighted feature fusion CAM (Content Addressable Memory) method adopting pooling and Gaussian up-sampling
Through the feature fusion method that combines information entropy and Gaussian upsampling, it solves the problems of saliency map noise and low resolution of deep neural networks in image classification, achieves efficient and clear feature visualization, and reduces time costs.
Patent Information
- Application Number
- CN202410689468.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-30
- Publication Date
- 2024-09-10
AI Technical Summary
The saliency maps generated by existing deep neural networks in image classification tasks have problems with noise and low resolution, and traditional methods are computationally intensive and time-consuming, making it difficult to effectively explain model decisions.
The weighted feature fusion method of pooling and Gaussian upsampling based on information entropy is used to generate activation maps of different scales through Gaussian upsampling and pooling operations. The weighted average is combined with information entropy to generate an optimized activation map, and the optimized activation map is generated through global average pooling. ization and mask combination to obtain high-resolution saliency maps.
It effectively reduces the noise in the saliency mapping, improves the resolution of the target area of the image classification model, reduces the overall time cost, and provides clearer feature visualization results.
Smart Images

Figure CN118627632A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of feature interpretability of computer vision and convolutional neural networks, and in particular to a novel weighted feature fusion CAM method based on information entropy using pooling and Gaussian upsampling. Background Art
[0002] The statements in this section only provide background information related to the present disclosure, and these statements may constitute prior art. In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art.
[0003] With the rapid development of science and technology and machine vision (CV), deep neural networks have made exciting progress in many fields of CV, including image classification, object detection, instance segmentation, etc. However, although deep neural networks have a large number of nonlinear network layers that provide complex combinations and can obtain high-dimensional features from data, they are essentially end-to-end "black box models", which greatly reduces the credibility and interpretability of their decisions and output results. This is also the reason why manual or some traditional machine learning algorithms are still used in industries and fields with high security requirements. In order to use deep neural networks safely, it is required to explain how the model outputs or what the output logic is. In recent years, under this research background, the interpretability of deep neural networks has become a research hotspot.
[0004] Among the methods for explaining the working mechanism of deep neural networks, there are: neuron visualization, network propagation, visualization based on backpropagation, regional perturbation, class activation map (CAM), etc. Early methods explained CNNs by directly visualizing gradients in the form of saliency maps, but the saliency maps generated by direct visualization of gradients are usually noisy or low-resolution. Specifically, the class activation map outputs a heat map corresponding to the input image by calculating the weighted combination of the activation maps of the target layer of the CNNs model. In addition, CAM is often used in image classification tasks and can be regarded as the contribution of each pixel to the predicted category score. The high contribution value pixels of the corresponding category are displayed and expressed through visualization. Therefore, the key in this work is how to obtain the contribution ratio of pixel-level input to the network prediction score, thereby highlighting the area that the network model pays most attention to for the input image.
[0005] In recent years, there have been many methods for visualizing class activation maps of deep convolutional neural networks, including CAM, Grad-CAM, Grad-CAM++, XGrad-CAM, Score-CAM, Group-CAM, Extended-CAM, etc. There are roughly two types of them: one is based on the linear weighted average of gradients and activation maps, and finally obtains the visualization method of the predicted class saliency map. However, these methods are affected by the resolution of the activation map and the gradient-independent noise information, so that the resolution of the generated saliency map is too low or the noise is too much. The other is to use a large number of Gaussian perturbations to input images to obtain a combination, and then combine the perturbation results to generate the final saliency map. However, the biggest problem of these methods is that they consume a lot of computation and the results are not fine-grained. Although the above methods can achieve good experimental results, after obtaining the activation map at the target layer, due to the size limitation of the convolution result, when mapped to the original image size, the saliency map is not fine-grained enough and the noise information is obvious.
[0006] In response to the above problems, the applicant's research team has developed "a method for visualizing image classification results based on upsampling mechanism and class activation mapping" (application number 202310400157.2). Although this method can reduce noise and improve resolution to a certain extent, it is based on the steps of pooling the obtained activation map and Gaussian upsampling weighted feature fusion, which will take a lot of time and increase the overall time cost.
[0007] Therefore, the applicant hopes to develop a method that can not only solve the problems of the existing CAM method, such as the inclusion of irrelevant regional noise in the saliency map due to useless gradients in non-target areas and the limited granularity of activation map generation, but also reduce the overall time cost and make it more efficient. Summary of the invention
[0008] In view of the above problems, the object of the present invention is to solve part of the problems in the prior art, or at least alleviate these problems.
[0009] A novel weighted feature fusion CAM method based on information entropy using pooling and Gaussian upsampling includes the following steps:
[0010] Perform image preprocessing on the original input image to obtain a preprocessed input image;
[0011] Input the input picture into the image classification model, save the picture whose maximum category index is determined by the model as the specified target index, and perform forward propagation to obtain a feature map;
[0012] Extracting a feature map set corresponding to the feature map from the target convolutional layer;
[0013] Back-propagating the feature map for a specified target index, and extracting a set of gradient matrices corresponding to the feature map from a target convolutional layer;
[0014] Performing Gaussian upsampling and pooling operations on each activation map in the feature map set to obtain enlarged and reduced feature map sets, so as to obtain activation map sets of three different scales;
[0015] Based on information entropy, the information of activation map sets of three different scales is fused to obtain an optimized activation map set;
[0016] Upsample the optimized activation map set and gradient matrix set to the original input image resolution, accumulate them in channel order and take the average to obtain the fused feature map and fused gradient matrix;
[0017] Perform global average pooling on the fused gradient matrix as weight;
[0018] Multiplying the weights and the fused feature maps correspondingly in channel order to obtain an initial mask set;
[0019] The number of channels is evenly divided into G groups, the initial masks of the initial mask set are grouped according to the channel adjacency principle and accumulated to obtain the mask, and the mask is normalized to obtain the normalized mask M′ l ;
[0020] Gaussian blurred image is obtained by Gaussian blurring the input image And the input image I, the normalized mask M′ l , Gaussian blur image According to the calculation formula, the disturbance image I′ is obtained l ;
[0021] The perturbation image I′ l and Gaussian blur image Input the image classification model to obtain the probability score and mask weight of the target category index
[0022] The mask weight and the normalized mask M′ l The linear weighted combination is then normalized to obtain the saliency map.
[0023] Input the input picture into the image classification model, save the picture whose maximum category index is the specified target index determined by the model, and perform forward propagation to obtain a feature map, including the following steps:
[0024] Input N images in the input image dataset into the image classification model in sequence;
[0025] After forward propagation, the output score F corresponding to each picture is obtained c (I), as the output before the Softmax layer; where the Softmax layer is used as the activation function of the output layer of the neural network;
[0026] Specify the target category index c, and keep the picture whose maximum category index is the target category index determined by the image classification model as a valid picture to obtain a feature map; others are discarded as invalid pictures; the number of invalid pictures is d.
[0027] The gradient matrix set g is:
[0028]
[0029] Among them, A is the feature map set.
[0030] Gaussian upsampling is performed on each activation map in the feature map set to obtain Gaussian upsampling A Gaussian :
[0031]
[0032] Among them, x and y are two-dimensional points of a pixel, u,v=14,ω,h=224, and is the 2D Gaussian standard deviation.
[0033] A pooling operation is performed on each activation map in the feature map set to obtain the lower pooling A pooling :
[0034] A {pooling} =Pooling2d(A)
[0035]
[0036] Where x is the input matrix, (i, j) is the coordinate of the upper left corner of the pooling window, and s is the size of the pooling window.
[0037] Based on information entropy, the information of activation map sets of three different scales is fused to obtain an optimized activation map set, including the following steps:
[0038] Calculate the weight of the activation map at each scale based on information entropy
[0039]
[0040] Among them, p(a i ) is the random variable X taking value a i probability;
[0041] Based on the information entropy weight, pool A pooling, Gaussian upsampling A Gaussian And the feature map set A is weighted averaged to obtain the optimized activation map A modified :
[0042]
[0043] Where H1, H2, and H3 are the information entropy weights of activation maps of different scales.
[0044] The initial mask M in the initial mask set k for:
[0045]
[0046] Among them, M k Represents the mask pattern of k channels; Refers to the weight of the kth channel of target category c;
[0047] The initial mask M of group G l for:
[0048]
[0049] Among them, k is the number of channels of the target layer feature map, l∈[0,1,…,G-1], and e=k / G is the number of feature maps in each group.
[0050] The perturbation picture I′ l The calculation formula is:
[0051]
[0052] Among them, ⊙ is the dot multiplication operation, that is, the corresponding pixel positions are directly multiplied.
[0053] The perturbation image I′ l and Gaussian blur image Input the image classification model to obtain the probability score and mask weight of the target category index The following steps are involved:
[0054] All perturbation images I′ l Input into the image classification model to obtain the probability score F of the corresponding target category index c c (I′ l );
[0055] Gaussian blurred image Input into the image classification model to obtain the probability score of the corresponding target category index c
[0056] The normalized mask M′ is calculated by the formula lWeight
[0057]
[0058] The following processing is performed on WPG-CAM using ReLU:
[0059]
[0060] Among them, ReLU is the activation function.
[0061] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the novel weighted feature fusion CAM method based on information entropy using pooling and Gaussian upsampling.
[0062] The present invention has the following beneficial effects:
[0063] 1. The present invention can effectively reduce the noise in the saliency map, provide a higher resolution class map, and focus on the target area of interest in the task. The method obtains the corrected activation map by weighted averaging, and the steps take less time, reducing the overall time cost;
[0064] 2. The present invention can be used to perform feature visualization analysis on the prediction results of the image classification convolutional neural network and analyze the characteristic patterns of the neural network learning, thereby helping relevant developers to debug. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] Figure 1 It is a generalized flowchart of the weighted feature fusion CAM algorithm based on information entropy using pooling and Gaussian upsampling;
[0066] Figure 2 A detailed example diagram of the weighted feature fusion CAM algorithm based on information entropy using pooling and Gaussian upsampling;
[0067] Figure 3 This is a comparison chart of the visualization effects of the present invention, Grad-CAM, Grad-CAM++, XGrad-CAM, Score-CAM, Group-CAM and Extended-CAM under test pictures. DETAILED DESCRIPTION
[0068] The present invention is further described below in conjunction with the accompanying drawings. The embodiments of the present invention are only used to illustrate the present invention rather than to limit the present invention. Without departing from the technical idea of the present invention, various substitutions and changes can be made according to common technical knowledge and customary means in the field, which should all be included in the scope of the present invention.
[0069] In order to obtain better fine-grained class mapping and obtain convincing visual explanations of neural networks, this application obtains a corrected activation map by weighted averaging, and provides an activation map optimization method WPG-CAM, which is an improved version of the existing Group-CAM method.
[0070] like Figure 1 As shown in 2, a new weighted feature fusion CAM method based on information entropy using pooling and Gaussian upsampling includes the following steps:
[0071] Perform image preprocessing on the original input image to obtain a preprocessed input image;
[0072] Input the input picture into the image classification model, save the picture whose maximum category index is determined by the model as the specified target index, and perform forward propagation to obtain a feature map;
[0073] Extracting a feature map set corresponding to the feature map from the target convolutional layer;
[0074] Back-propagating the feature map for a specified target index, and extracting a set of gradient matrices corresponding to the feature map from a target convolutional layer;
[0075] Performing Gaussian upsampling and pooling operations on each activation map in the feature map set to obtain enlarged and reduced feature map sets, so as to obtain activation map sets of three different scales;
[0076] Based on information entropy, the information of activation map sets of three different scales is fused to obtain an optimized activation map set;
[0077] Upsample the optimized activation map set and gradient matrix set to the original input image resolution, accumulate them in channel order and take the average to obtain the fused feature map and fused gradient matrix;
[0078] Perform global average pooling on the fused gradient matrix as weight;
[0079] Multiplying the weights and the fused feature maps correspondingly in channel order to obtain an initial mask set;
[0080] The number of channels is evenly divided into G groups, the initial masks of the initial mask set are grouped according to the channel adjacency principle and accumulated to obtain the mask, and the mask is normalized to obtain the normalized mask M′ l ;
[0081] Gaussian blurred image is obtained by Gaussian blurring the input image And the input image I, the normalized mask M′ l , Gaussian blur image According to the calculation formula, the disturbance image I′ is obtained l ;
[0082] The perturbation image I′ l and Gaussian blur image Input the image classification model to obtain the probability score and mask weight of the target category index
[0083] The mask weight and the normalized mask M′ l The linear weighted combination is then normalized to obtain the saliency map.
[0084] This application uses pooling operations and Gaussian upsampling to obtain different scale features of the activation map, and then uses information entropy to solve the corresponding weights, and obtains the modified activation map by weighted averaging the adjusted image, and then weighted sums the activation map and the corresponding weights, and finally outputs a more accurate and efficient saliency map. This method extracts multidimensional features, and uses the idea of Group-CAM to fuse high-resolution masks to perturb the input image to obtain weights, and combines these masks to output a more accurate and efficient saliency map.
[0085] The parameters that need to be specified in the feature visualization process of the present invention include treating the input image as I whose shape is in ∈R C×H×W The neural network model used for classification prediction is F. The score F of the classification category c obtained by inputting image I into model F is c (I) is the feature map collected from layer l, where g represents F c (I) A set of gradient matrices relative to a set of feature maps A.
[0086] This patent first classifies the input image through a prediction neural network, and obtains the activation map and gradient matrix from the target layer. Secondly, activation maps of different scales are obtained through Gaussian upsampling and pooling operations, and weighted average is performed based on image entropy to obtain a refined activation map. Third, the refined activation map is multiplied by the global average pooling gradient to generate a mask. Finally, the mask is divided into several groups, superimposed on the input image, then blurred, and then input back into the classification prediction neural network. The weighted average is applied to obtain the output WPG class map.
[0087] The image preprocessing is to adjust the size of the original input image to a size that the network can handle and convert it into a matrix composed of pixel values.
[0088] Input the input picture into the image classification model, save the picture whose maximum category index is the specified target index determined by the model, and perform forward propagation to obtain a feature map, including the following steps:
[0089] Input N images in the input image dataset into the image classification model in sequence;
[0090] After forward propagation, the output score F corresponding to each picture is obtained c (I), as the output before the Softmax layer; the Softmax layer is used as the activation function of the output layer of the neural network, especially in multi-class classification problems. Its role is to transform the original category scores into a probability distribution so that the sum of the probabilities of all categories is 1. In this way, the output of the neural network can be interpreted as the probability of each category.
[0091] Specify the target category index c, and keep the picture whose maximum category index is the target category index determined by the image classification model as a valid picture to obtain a feature map; others are discarded as invalid pictures; the number of invalid pictures is d.
[0092] The network passes the input data through the network layer by layer, and performs feature extraction in each layer to select the target convolution layer, and extracts the corresponding feature map set of each image in the forward propagation process from the target convolution layer l.
[0093] For the output of each valid image, back propagation is performed for the target category index, and the gradient matrix set corresponding to the feature map set A is extracted from the target convolution layer. Similarly, each image corresponds to a gradient matrix set. The gradient matrix set g is:
[0094]
[0095] Among them, A is the feature map set.
[0096] This application proposes an optimization method to activate a feature map set A, using a multi-scale weighted average adaptive correction strategy, specifically including a Gaussian upsampling method and a pooling operation.
[0097] In order to improve the resolution of the activation map and suppress the weights of pixels that contribute significantly to the classification prediction score, Gaussian upsampling is performed on each activation map in the feature map set to obtain Gaussian upsampling A Gaussian :
[0098]
[0099] Among them, x and y are two-dimensional points of a pixel, we use u,v=14,ω,h=224, and is the standard deviation of the 2D Gaussian and can be estimated from the shape of the effective receptive field.
[0100] Use the pooling operation to obtain the elements with larger contribution values in the activation map A and filter the information of the area with less impact. Perform a pooling operation on each activation map in the feature map set to obtain the lower pooled A. pooling :
[0101] A {pooling} =Pooling2d(A)
[0102]
[0103] Where x is the input matrix, (i, j) is the coordinate of the upper left corner of the pooling window, and s is the size of the pooling window. In addition, the pooling operation reduces the spatial size of the input data by identifying the maximum value within a non-overlapping window of the input data. This helps extract key features from the input data and reduces the number of parameters in the model.
[0104] Based on information entropy, the information of activation map sets of three different scales is fused to obtain an optimized activation map set, including the following steps:
[0105] In order to fuse activation map information of different scales, this application calculates the weight of the activation map of each scale based on information entropy
[0106]
[0107] Among them, p(a i ) is the random variable X taking value a i The probability of information entropy; information entropy is a method suitable for quantitatively characterizing the richness of information in an image.
[0108] Based on the information entropy weight, pool A pooling , Gaussian upsampling A Gaussian And the feature map set A is weighted averaged to obtain the optimized activation map A modified :
[0109]
[0110] Where H1, H2, and H3 are the information entropy weights of activation maps of different scales. The resized images can be weighted averaged.
[0111] The weight set Each weight and fused feature map set in For each feature map, we multiply them in channel order to get the initial mask set, and then we have a shape [1×K×H0×W0], whose weight W is of shape [1×K×1×1], where K is the number of channels in layer 1. H0 and W0 are the height and width of channel 0, respectively.
[0112] In form, the initial mask M in the initial mask set isk for:
[0113]
[0114] Among them, M k Represents the mask pattern of k channels; Refers to the weight of the kth channel of target category c;
[0115] Divide the number of channels into G groups evenly, then the initial mask M of the G group l for:
[0116]
[0117] Where k is the number of channels of the target layer feature map, l∈[0,1,…,G-1], and e=k / G is the number of feature maps in each group. k That is, the kth mask in the mask set M.
[0118] Although M l The optimization is done through the activation map, but the combination of the e channels causes the resulting initial mask to appear blurry. This is because the activation function ReLU causes the zero gradient of the input to vanish. Therefore, M l It cannot be used directly as an input mask and needs to be normalized later. l After normalization, it is recorded as M′ l , the specific normalization method is min-max normalization. ReLU is an activation function, which sets the value less than 0 in the calculation result to 0, in order to filter out meaningless mask values.
[0119] The original input image is Gaussian blurred, and the input image and the normalized mask are calculated to obtain the disturbed image. The disturbed image I′ l The calculation formula is:
[0120]
[0121] Among them, ⊙ is the dot multiplication operation, that is, the corresponding pixel positions are directly multiplied.
[0122] The perturbation image I′ l and Gaussian blur image Input the image classification model to obtain the probability score and mask weight of the target category index The following steps are involved:
[0123] All perturbation images I′ l Input into the image classification model to obtain the probability score F of the corresponding target category index c c (I′ l );
[0124] Gaussian blurred image Input into the image classification model to obtain the probability score of the corresponding target category index c
[0125] The normalized mask M′ is calculated by the formula l Weight
[0126]
[0127] In order to better display the saliency map, ReLU can be used to perform the following processing on WPG-CAM:
[0128]
[0129] Among them, ReLU is the activation function.
[0130] The applicant conducted a large number of qualitative comparison experiments on deletion and insertion metrics to measure the ability of interpretable methods to capture important pixels. The saliency map generated by WPG-CAM was compared with the saliency maps generated by some other CAM-based methods, including Grad-CAM, Grad-CAM++, score-CAM, Group-CAM and MSG-CAM. The displayed data results can show the superiority of WPG-CAM over other methods. As shown in Figure 3, the visualization effect produced by the method of the present application is clearer, contains less background information, and can better highlight the importance of the target object. In the case of different pictures in the data set, the saliency map generated by WPG-CAM well presents the important features of different picture objects.
[0131] The present invention can effectively reduce the noise in the saliency map, provide a higher resolution class map, and focus on the target area of interest in the task. The method obtains the corrected activation map by weighted averaging. It can be used to perform feature visualization analysis on the prediction results of the image classification convolutional neural network and analyze the characteristic patterns of the neural network learning, thereby helping relevant developers to debug. Quantitative and qualitative experimental results also show the good effect of the method, which has significant advantages in explaining the predictions of CNN. The method provides a new idea and technology for the visual interpretation of deep neural networks. In future work, it can be convenient to apply the method to other fields, such as target detection, case segmentation, etc.
[0132] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the novel weighted feature fusion CAM method based on information entropy using pooling and Gaussian upsampling.
Claims
1. A new weighted feature fusion CAM method based on information entropy using pooling and Gaussian upsampling, characterized in that: The following steps are involved: Perform image preprocessing on the original input image to obtain a preprocessed input image; Input the input picture into the image classification model, save the picture whose maximum category index is determined by the model as the specified target index, and perform forward propagation to obtain a feature map; Extracting a feature map set corresponding to the feature map from the target convolutional layer; Back-propagating the feature map for a specified target index, and extracting a set of gradient matrices corresponding to the feature map from a target convolutional layer; Performing Gaussian upsampling and pooling operations on each activation map in the feature map set to obtain enlarged and reduced feature map sets, so as to obtain activation map sets of three different scales; Based on information entropy, the information of activation map sets of three different scales is fused to obtain an optimized activation map set; Upsample the optimized activation map set and gradient matrix set to the original input image resolution, accumulate them in channel order and take the average to obtain the fused feature map and fused gradient matrix; Perform global average pooling on the fused gradient matrix as weight; Multiplying the weights and the fused feature maps correspondingly in channel order to obtain an initial mask set; The number of channels is evenly divided into G groups, the initial masks of the initial mask set are grouped according to the channel adjacency principle and accumulated to obtain the mask, and the mask is normalized to obtain the normalized mask M′ l ; Gaussian blurred image is obtained by Gaussian blurring the input image And the input image I, the normalized mask M′ l , Gaussian blur image According to the calculation formula, the disturbance image I′ is obtained l ; The perturbation image I′ l and Gaussian blur image Input the image classification model to obtain the probability score and mask weight of the target category index The mask weight and the normalized mask M′ l Linear weighted combination and normalization are used to obtain the saliency map.
2. According to claim 1, the novel weighted feature fusion CAM method based on information entropy using pooling and Gaussian upsampling is characterized in that: Input the input picture into the image classification model, save the picture whose maximum category index is the specified target index determined by the model, and perform forward propagation to obtain a feature map, including the following steps: Input N images in the input image dataset into the image classification model in sequence; After forward propagation, the output score F corresponding to each picture is obtained c (I), as the output before the Softmax layer; where the Softmax layer is used as the activation function of the output layer of the neural network; Specify the target category index c, and keep the picture whose maximum category index is the target category index determined by the image classification model as a valid picture to obtain a feature map; others are discarded as invalid pictures; the number of invalid pictures is d.
3. According to claim 1, the novel weighted feature fusion CAM method based on information entropy using pooling and Gaussian upsampling is characterized in that: The gradient matrix set g is: Among them, A is the feature map set.
4. According to claim 1, the novel weighted feature fusion CAM method based on information entropy using pooling and Gaussian upsampling is characterized in that: Gaussian upsampling is performed on each activation map in the feature map set to obtain Gaussian upsampling A Gaussian : Among them, x and y are two-dimensional points of a pixel, u,v=14,ω,h=224, and is the 2D Gaussian standard deviation.
5. According to claim 1, the novel weighted feature fusion CAM method based on information entropy using pooling and Gaussian upsampling is characterized in that: A pooling operation is performed on each activation map in the feature map set to obtain the lower pooling A pooling : A {pooling} =Pooling2d(A) Where x is the input matrix, (i, j) is the coordinate of the upper left corner of the pooling window, and s is the size of the pooling window.
6. The novel weighted feature fusion CAM method based on information entropy using pooling and Gaussian upsampling according to claim 1 is characterized in that: Based on information entropy, the information of activation map sets of three different scales is fused to obtain an optimized activation map set, including the following steps: Calculate the weight of the activation map at each scale based on information entropy Among them, p(a i ) is the random variable X taking value a i The probability of Based on the information entropy weight, pool A pooling , Gaussian upsampling A Gaussian And the feature map set A is weighted averaged to obtain the optimized activation map A modified : Where H1, H2, and H3 are the information entropy weights of activation maps of different scales.
7. The novel weighted feature fusion CAM method based on information entropy using pooling and Gaussian upsampling according to claim 1 is characterized in that: The initial mask M in the initial mask set k for: Among them, M k Represents the mask pattern of k channels; Refers to the weight of the kth channel of target category c; The initial mask M of group G l for: Among them, k is the number of channels of the target layer feature map, l∈[0,1,…,G-1], and e=k / G is the number of feature maps in each group.
8. The novel weighted feature fusion CAM method based on information entropy using pooling and Gaussian upsampling according to claim 1 is characterized in that: The disturbance image I l The calculation formula of ′ is: Among them, ⊙ is the dot multiplication operation, that is, the corresponding pixel positions are directly multiplied.
9. The novel weighted feature fusion CAM method based on information entropy using pooling and Gaussian upsampling according to claim 1 is characterized in that: The perturbation image I′ l and Gaussian blur image Input the image classification model to obtain the probability score and mask weight of the target category index The following steps are involved: All perturbation images I′ l Input into the image classification model to obtain the probability score F of the corresponding target category index c c (I′ l ); Gaussian blurred image Input into the image classification model to obtain the probability score of the corresponding target category index c The normalized mask M′ is calculated by the formula l Weight The following processing is performed on WPG-CAM using ReLU: Among them, ReLU is the activation function.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the novel weighted feature fusion CAM method based on information entropy using pooling and Gaussian upsampling as described in any one of claims 1 to 9 are implemented.
Citation Information
Cited By
Geochemical remote sensing image recognition method, device, equipment, medium and program product
CN120852993A
